WebSocket API error codes

Error message return format

{
  "id": "id generate by client",
  "status": "error",
  "err-code": "err-code",
  "err-msg": "err-message",
  "ts": 1487152091345
}

Note: "ts" is the timestamp generated by the error message, unit: milliseconds

err-msg describe
invalid topic market.invalidsymbol.kline.1min wrong symbol
invalid topic market.btccny.kline.3min wrong topic
unsub with not subbed topic market.btccny.trade.detail Unsubscribe from an unsubscribed topic
unsub with not subbed topic not-exists-topic Unsubscribe from a non-existing topic
invalid topic market.invalidsymbol.trade.detail wrong symbol

 

 

                                    

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325135785&siteId=291194637