Move a resting order's price
https://app.skylit.ai/api/nexus/v1/trading/accounts/{account}/orders/{orderId}/modifyMoves a working limit or stop order (or a bracket's stop or target) to a new price, like dragging it on the Nexus chart. Only the price can change. To change the size, cancel the order and place a new one.
No live price answers 503 no_live_price and the order stays where it was. A test order can't be moved (400 test_modify_unavailable): cancel it and send a new test order at the new price.
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.orderIdstringuuidrequiredThe order's id, from the open, the working list or the history.
Request body
pricenumberrequiredThe order's new price, above 0.
testbooleanTest orders can't be moved, so
trueis always refused.
Responses
- 200
The order at its new price, with its bracket.
- 400
The request was refused before anything was traded. Codes:
bad_request,bad_contract,invalid_quantity,invalid_price,unsupported_asset_class,unsupported_order_type,only_market_orders,test_orders_unavailable,test_modify_unavailable. - 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. - 409
The order clashes with what you hold or sent before. Codes:
duplicate_position(withtradeId),trade_closed,open_position_limit,client_order_id_used,request_in_progress,account_locked,account_busy,account_ended,order_not_working. - 422
Read fine, but the market or the account says no. Codes:
market_closed,contract_expired,contract_not_offered,price_outside_market,insufficient_buying_power,account_not_tradable,account_ambiguous,reduce_only_would_open,order_refused. - 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
dataobjectA futures order. It's not a
Trade: futures keep their own book. Prices are in index points, money in cents.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.
Last updated