For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Support Center
OverviewAPIResources
OverviewAPIResources
  • REST API Endpoints
    • GETGet Timestamp
    • GETO IDC User Info
      • POSTCancel Order
      • GETCommand Dependents
      • GETCommand Item
      • GETCommand Items
      • GETCommand L Dependents
      • GETCommand List
      • GETCommand Report Dependents
      • GETCommand Report Item
      • GETCommand Report Items
      • GETCommand Report L Dependents
      • GETCommand Report List
      • POSTDry Run
      • GETExecution Report Dependents
      • GETExecution Report Item
      • GETExecution Report Items
      • GETExecution Report L Dependents
      • GETExecution Report List
      • GETFill Dependents
      • GETFill Fee Dependents
      • GETFill Fee Item
      • GETFill Fee Items
      • GETFill Fee L Dependents
      • GETFill Fee List
      • GETFill Item
      • GETFill Items
      • GETFill L Dependents
      • GETFill List
      • POSTInterrupt Order Strategy
      • POSTLiquidate Position
      • POSTLiquidate Positions
      • POSTModify Order
      • POSTModify Order Strategy
      • GETOrder Dependents
      • GETOrder Item
      • GETOrder Items
      • GETOrder L Dependents
      • GETOrder List
      • GETOrder Strategy Dependents
      • GETOrder Strategy Item
      • GETOrder Strategy Items
      • GETOrder Strategy L Dependents
      • GETOrder Strategy Link Dependents
      • GETOrder Strategy Link Item
      • GETOrder Strategy Link Items
      • GETOrder Strategy Link L Dependents
      • GETOrder Strategy Link List
      • GETOrder Strategy List
      • GETOrder Version Dependents
      • GETOrder Version Item
      • GETOrder Version Items
      • GETOrder Version L Dependents
      • GETOrder Version List
      • POSTPlace OCO
      • POSTPlace OSO
      • POSTPlace Order
      • POSTStart Order Strategy
Support Center
LogoLogo
REST API EndpointsOrders

Dry Run

POST
https://demo-d.tradovateapi.com/v1/order/dryrun
POST
/v1/order/dryrun
1const url = 'https://demo-d.tradovateapi.com/v1/order/dryrun';
2const options = {
3 method: 'POST',
4 headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
5 body: '{"accountId":1,"orders":[{"contractId":1,"action":"Buy","orderQty":1,"orderType":"Limit"}]}'
6};
7
8try {
9 const response = await fetch(url, options);
10 const data = await response.json();
11 console.log(data);
12} catch (error) {
13 console.error(error);
14}
200Successful
1{
2 "errorText": "string",
3 "rejectReason": "AccountClosed",
4 "comment": "string",
5 "details": {
6 "beforeInitialMarginReq": 1.1,
7 "beforeInitialFullMarginReq": 1.1,
8 "beforeOpenCollateralReq": 1.1,
9 "beforeNetPos": 1,
10 "isExitOrder": true,
11 "initialMarginReq": 1.1,
12 "initialFullMarginReq": 1.1,
13 "openCollateralReq": 1.1,
14 "totalCash": 1.1,
15 "futuresOpenPnL": 1.1,
16 "optionsOpenPnL": 1.1,
17 "riskCredit": 1.1,
18 "netLiqValue": 1.1,
19 "futureCommAndFees": 1.1,
20 "totalCashRequired": 1.1,
21 "excess": 1.1,
22 "hypoLongPos": 1,
23 "hypoShortPos": 1
24 },
25 "fees": {
26 "clearingFee": 1.1,
27 "clearingCurrencyId": 1,
28 "exchangeFee": 1.1,
29 "exchangeCurrencyId": 1,
30 "nfaFee": 1.1,
31 "nfaCurrencyId": 1,
32 "brokerageFee": 1.1,
33 "brokerageCurrencyId": 1,
34 "ipFee": 1.1,
35 "ipCurrencyId": 1,
36 "commission": 1.1,
37 "commissionCurrencyId": 1,
38 "orderRoutingFee": 1.1,
39 "orderRoutingCurrencyId": 1,
40 "commissionNotionalValueBPS": 1.1
41 }
42}
Was this page helpful?
Previous

Execution Report Dependents

Next
Built with

Authentication

AuthorizationBearer

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

Request

This endpoint expects an object.
accountIdlongRequired
orderslist of objectsRequired

Response

DryRunResponse
errorTextstring<=8192 characters

Non-empty if the request failed

rejectReasonenum
AccountClosed, AdvancedTrailingStopUnsupported, AnotherCommandPending, BackMonthProhibited, ExecutionProviderNotConfigured, ExecutionProviderUnavailable, InvalidContract, InvalidPrice, KeyInformationDocumentRequired, LiquidationOnly, LiquidationOnlyBeforeExpiration, MaxOrderQtyIsNotSpecified, MaxOrderQtyLimitReached, MaxPosLimitMisconfigured, MaxPosLimitReached, MaxTotalPosLimitReached, MultipleAccountPlanRequired, NoQuote, NotEnoughLiquidity, OtherExecutionRelated, ParentRejected, RiskCheckTimeout, SSFRiskDisclosureAcknowledgmentRequired, SessionClosed, Success, TooLate, TradingLocked, TrailingStopNonOrderQtyModify, Unauthorized, UnknownReason, Unsupported
commentstring<=8192 characters
detailsobject
feesobject