Send REPLACE_ORDER after login. Both the new price and quantity are required. The response event is REPLACE_ORDER_ACK.
Arguments
| Field | Type | Required | Description |
|---|---|---|---|
brokerClientId | string | Yes | Account ID identifying the client account for the request. |
orderNo | string | Yes | Order number returned by Place an order. |
price | string | Yes | New price. Send together with qty. |
qty | integer | Yes | New quantity. |
Request
{
"action": "REPLACE_ORDER",
"id": "req-004",
"args": {
"brokerClientId": "client001",
"orderNo": "23818",
"price": "183.00",
"qty": 200
}
}
Response
{
"event": "REPLACE_ORDER_ACK",
"id": "req-004",
"code": 0,
"message": "success",
"data": {
"orderNo": "23818",
"status": "0"
}
}
