Rate Limit: 300 requests per 60 seconds
Tip:
You can create order by websocket after login.
Request
demo
{
"id": "XXX",
"action": "replace_order",
"args":
{
"orderId": "XXXX",
"replaceQty": "1000",
"replacePrice": "60000"
}
}
Field name | Type | Necessary | Remarks |
---|---|---|---|
id | String | N | client request id |
action | String | Y | place_order |
args | Object | Y | request params |
> orderId | String | Y | Order ID |
> replaceQty | String | N | Replace order qty |
> replacePrice | String | N | Replace order price |
Response
Success example:
{
"id": "XXXX",
"event": "replace_order",
"code": "200000",
"msg": "",
"data": {
"orderId": "XXXXX",
"orderState": "XXXXX"
}
}
Fail example:
{
"id":"***",
"event": "error",
"code": "60009",
"msg": "ReplaceOrder failed."
}
Field name | Type | Remarks |
---|---|---|
id | String | client request id |
event | String | Event |
code | String | Code |
msg | String | Msg |
data | Object | response data |
> orderId | String | Order ID |
> orderState | String | Order State |