What's resting on the account
https://app.skylit.ai/api/nexus/v1/trading/accounts/{account}/orders/workingEvery order resting on the account: limit and stop orders, and the stops and targets of brackets, whether a key placed them (source: "api") or you placed them in Nexus (no source).
Authorization
Authorization: Bearer <your API key>Required. A missing header returns 401; an invalid, revoked or expired key returns 403.
Path parameters
accountstringrequiredpractice,evaluationorfunded(when you have exactly one running), or a futures account id from capabilities.
Responses
- 200
The resting orders.
meta.countis how many. - 401
No key, or a key that isn't valid. Codes:
missing_api_key,invalid_api_key. - 403
The key works but the account can't do this. Codes:
account_suspended,nexus_access_denied,futures_access_denied. - 404
Not on your account. Codes:
trade_not_found,account_not_found,order_not_found. - 429
Over a rate limit. Wait
Retry-Afterseconds, then retry. Code:rate_limited. - 503
Try again in a moment (honour
Retry-Afterwhen it's sent). Codes:stale_quote,no_live_price,rules_pending,unavailable,auth_unavailable,access_check_unavailable,api_keys_unavailable,trades_api_disabled.
Response fields
dataobject[]idstringuuidassetClassstringfuturessourcestringapiwhen a key placed it. Left out on an order you placed in Nexus.accountobjectsymbolstringThe contract, like
NQZ26.sidestringbuysellquantityintegerrolestringentryclosestop_losstake_profitorderTypestringmarketlimitstopstatusstringheldis a stop or target waiting for its entry to fill.workingheldfilledcancelledrejectedstatusReasonstringWhy it was cancelled or rejected.
limitPricenumberstopPricenumbertrailingDistancenumberA trailing stop: how far behind the price it follows, in points.
fillPricenumberplacedAtstringdate-timefilledAtstringdate-timeparentIdstringuuidOn a stop or target: the entry it was placed with.
bracketobject[]The stop and target placed with this order, each a
FuturesOrderwith its own id.clientOrderIdstringkeyIdstringThe public id of the key that placed it.
commissionCentsintegerrealizedPnlCentsintegerGross realized P/L of this fill. 0 on a fill that only opened.
testbooleantrueon a test order.
metaobjectcountinteger
Last updated