Skip to main content
POST
/
v1
/
orders
/
preview
Preview Order
curl --request POST \
  --url https://api.tradearies.dev/v1/orders/preview \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "account": "<string>",
  "symbol": "<string>",
  "quantity": 123,
  "orderType": "<string>",
  "tradeAction": "<string>",
  "timeInForce": "<string>",
  "route": "<string>",
  "limitPrice": "<string>",
  "stopPrice": "<string>",
  "legs": [
    {
      "symbol": "<string>",
      "ratioQuantity": "<string>",
      "tradeAction": "<string>",
      "positionEffect": "<string>"
    }
  ]
}'
{
  "commission": "<string>",
  "cost": "<string>",
  "buyingPowerImpact": "<string>",
  "fees": "<string>",
  "optionFees": "<string>",
  "optionRequirement": "<string>",
  "optionPremium": "<string>",
  "marginRequirement": "<string>",
  "numDayTrades": 123,
  "warnDescription": "<string>",
  "warnRuleId": 123,
  "rejectReason": "<string>"
}

Authorizations

X-API-Key
string
header
required
Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
account
string
required

Account ID

symbol
string
required

Trading symbol

quantity
integer
required

Order quantity

orderType
string
required

Order type (MARKET, LIMIT, STOP, STOP_LIMIT)

tradeAction
string
required

Trade action (BUY, SELL)

timeInForce
string
required

Time in force (DAY, GTC, IOC, FOK)

route
string

Order routing destination

limitPrice
string

Limit price for limit orders

stopPrice
string

Stop price for stop orders

legs
object[]

Legs for multi-leg orders

Response

Order preview generated successfully

commission
string

Commission cost

cost
string

Total cost

buyingPowerImpact
string

Impact on buying power

fees
string

Trading fees

optionFees
string

Option-specific fees

optionRequirement
string

Option margin requirement

optionPremium
string

Option premium

marginRequirement
string

Margin requirement

numDayTrades
integer

Number of day trades

warnDescription
string

Warning description if applicable

warnRuleId
integer

Warning rule ID if applicable

rejectReason
string

Rejection reason if applicable

I