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.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
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 "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