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>"
}
Preview an order to see costs, fees, and potential impact before placing
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>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Order preview generated successfully
The response is of type object
.
Was this page helpful?