gateio / gatews

Gate Websocket V4 SDK
89 stars 35 forks source link

Order book timestamps semantics #37

Closed LKresta closed 1 year ago

LKresta commented 1 year ago

Hello there,

I have a question regarding order book notifications coming from WebSocket API (https://www.gate.io/docs/developers/futures/ws/en/#legacy-order-book-notification, https://www.gate.io/docs/developers/futures/ws/en/#order-book-update-notification). There's a timestamp provided in the notification - "t", comment says it's "Order book generation timestamp in milliseconds". Does this timestamp represent the time when the change occurred "in engine" or does it represent the time when the notification was dispatched from your end? I assume the former but wanted to double-check.

Thanks!

revilwang commented 1 year ago

Like futures.book_ticker #36 , it's the former one.

LKresta commented 1 year ago

Awesome, thank you!

Sorry to mix topics but since you are insta-responding here I was wondering whether https://github.com/gateio/rest-v4 is still alive? I posted a question re. REST API there the other day (https://github.com/gateio/rest-v4/issues/15), throught it being better place for REST question than here..?

revilwang commented 1 year ago

You can ask REST related questions in gateapi-xxx repositories like gateio/gateapi-python

LKresta commented 1 year ago

Will do, thanks!