Skip to Content
Trading

Move order

Send
/
Serverwss://streams.fast.onetrading.com

Repositions an existing limit order in the book without a full cancel and replace, in a single network packet. Only the price can be adjusted, not the amount. Identify the order by order_id or client_id.

The optional reserve_price set on Create Order is the maximum price the order can be moved to; a move beyond it fails with MATCHING_MOVE_FAILED_PRICE_OVER_RISK_LIMIT. Specifying reserve_price locks in that amount. It has no effect on futures instruments.

Move orders are validated like Create Order requests. An error from the exchange names the order by the order_id or client_id you sent, rather than echoing the whole request in payload.

Nothing is sent in reply to an accepted request itself: the outcome arrives as an Order Moved event on the TRADING channel. Before the request reaches the exchange, it can be refused with AUTHENTICATION_REQUIRED, NOT_SUBSCRIBED_TO_TRADING_CHANNEL or RATE_LIMITED; if it cannot be passed on, it is answered with INTERNAL_ERROR.

Private. Create, move and cancel orders, and receive a feed of order updates based on the trading activity in your account. You must be authenticated (token with the Trade permission) and subscribed to this channel to send trading messages. Order requests share one rate limit per account (see Rate limits).

Authorization

apiToken
headerAuthorizationBearer <token>

API token sent in the AUTHENTICATE message (not as a header). Generate it in the One Trading UI with the Trade permission; a valid token authorises all private channels for the connection.

Code Sample
const payload = {  "type": "MOVE_ORDER",  "order": {    "order_id": "ac233037-7483-409e-942f-8f4bb38f373c",    "instrument_code": "BTC_EUR",    "price": "85100"  }};const socket = new WebSocket("wss://streams.fast.onetrading.com/");socket.addEventListener("open", () => {  socket.send(JSON.stringify(payload));});

Messages

Identify the order by order_id or client_id. Only the price can be adjusted, not the amount.

application/json
  1. payload
type*string
order*

Move by order ID

{  "type": "MOVE_ORDER",  "order": {    "order_id": "ac233037-7483-409e-942f-8f4bb38f373c",    "instrument_code": "BTC_EUR",    "price": "85100"  }}

Reply

Receive

Sent back on the same channel.