gateio / gatews

Gate Websocket V4 SDK
91 stars 35 forks source link

request payload does not follow json schema #9

Closed ShrimpyPhil closed 3 years ago

ShrimpyPhil commented 3 years ago

Hi,

I am sending the following request through the API v4:

{ "time": "1626964798", "channel": "spot.trades", "event": "subscribe", "payload": [ "LTC_USDT" ] }

I get the following response: { "time": 1626965030, "channel": "", "event": "", "error": {"code": 1, "message": "request payload does not follow json schema" }, "result": null }

(please ignore timestamps, I may have pulled the message from a different try, but same message each time)

I get the same message if I send a spot.ping with no payload.

Any advice on what I am doing wrong?

ShrimpyPhil commented 3 years ago

This has been resolved. The "time" value does not like having quotes. Sorry to bother you.