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

Response

200
application/json

Order preview generated successfully

The response is of type object.