wisespace-io / binance-rs

Rust Library for the Binance API
Other
665 stars 297 forks source link

Add support for BookTickerEvent #37

Closed daifukunem closed 4 years ago

daifukunem commented 4 years ago

This should work for both <symbol>@bookTicker and !bookTicker streams.

It's not the most elegant solution but seeing as there's no eventType in the payload the easiest way was to validate the schema.

wisespace-io commented 4 years ago

I see, unfortunately they didn't add an event type. Thank you for the contribution.