Preview Order / WhatIf Order
Preview Order / WhatIf Order
This endpoint allows you to preview order without actually submitting the order and you can get commission information in the response. Also supports bracket orders.
Note: Please be aware that /whatif orders are also effected by our message suppression endpoint.
Clients must query /iserver/marketdata/snapshot for the instrument prior to requesting the /whatif endpoint.
POST /iserver/account/{accountId}/orders/whatif
Request Object
The body content of the /whatif endpoint will follow the same structure as the standard /iserver/account/{accountId}/orders endpoint.
See the Place Order section for more details.
Python
Abap
Response Object
amount: Object.
Contains the details about the order cost.
{
amount: String.
Returns the cost of the base order.
commission: String.
Returns the commission cost of the base order.
total: String.
Returns the total cost of the order.
},
equity: Object.
Contains the details about the order’s impact on your equity.
{
current: String.
Returns the current equity of the account.
change: String.
Returns the equity impact from the order.
after: String.
Returns the equity after the order is traded.
},
initial: Object.
Contains the details about the order’s impact on your initial margin.
{
current: String.
Returns the current initial margin value.
change: String.
Returns the amount the initial margin will change by.
after: String.
Returns the initial margin value after the order.
},
maintenance: Object.
Contains the details about the order’s impact on your maintenance margin.
{
current: String.
Returns the current maintenance margin value.
change: String.
Returns the amount the maintenance margin will change by.
after: String.
Returns the maintenance margin value after the transaction.
},
position: Object.
Contains the details about the order’s impact on your current position.
{
current: String.
Returns the cost of the base order.
change: String.
Returns the cost of the base order.
after: String.
Returns the cost of the base order.
},
warn: String.
Returns any potential warning message from placing this order.
Returns null if no warning is possible.
error: String.
Returns any potential error message from placing this order.
Returns null if no error is possible.

