Modifies an existing open order by replacing it with updated parameters such as price or quantity. This operation cancels the original order and submits a new one atomically, maintaining order continuity.
Use Case: Adjust limit prices or order quantities in response to market movements without losing queue position unnecessarily.
OAuth2 Bearer token: obtain an access token from the token endpoint and send it in the Authorization header.
Replace payload: origClOrdId, accountId, symbol, side, and updated fields (qty, price, timeInForce, etc.).
Original client order ID to replace
1 - 100"ORDER-123456"
Account identifier
1 - 50"TEST-ACCOUNT-001"
Trading symbol
1 - 20"AAPL"
New client identifier
50Order side
BUY, SELL, SELL_SHORT, BUY_TO_COVER "BUY"
Order type
MARKET, LIMIT, STOP, STOP_LIMIT "LIMIT"
New order quantity
"20"
New limit price
"148.50"
New stop price
"145.00"
Time in force
DAY, GTC, IOC, FOK, EXTENDED_HOURS, AT_THE_OPENING, AT_THE_CLOSE "DAY"
Replace request submitted successfully
Whether the replace was accepted
true
New client order ID
"ORDER-123457"
Original client order ID
"ORDER-123456"
Order status
"REPLACED"
Order quantity
"20"
Order price
"150.00"
Additional text/message
Transaction timestamp