API Reference

Replace Order

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 nameTypeNecessaryRemarks
idStringNclient request id
actionStringYplace_order
argsObjectYrequest params
> orderIdStringYOrder ID
> replaceQtyStringNReplace order qty
> replacePriceStringNReplace 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 nameTypeRemarks
idStringclient request id
eventStringEvent
codeStringCode
msgStringMsg
dataObjectresponse data
> orderIdStringOrder ID
> orderStateStringOrder State