wisespace-io / binance-rs

Rust Library for the Binance API
Other
649 stars 295 forks source link

Add support to combined streams #60

Closed gabriel-milan closed 3 years ago

gabriel-milan commented 3 years ago

Initially implemented on https://github.com/0x53A/binance-rs/commit/ed9342f5770d62a890829fa83178af57d5be09b0 but then adapted to fit current version. Works fine on gabriel-milan/btrader.

Refers to https://github.com/wisespace-io/binance-rs/issues/15 and https://github.com/wisespace-io/binance-rs/issues/48 (and probably https://github.com/wisespace-io/binance-rs/issues/56).

https://github.com/wisespace-io/binance-rs/issues/15 mentions that it works just by using the current implementation, but I had few issues while trying with around 780 symbols. Official API reference: https://github.com/binance/binance-spot-api-docs/blob/master/web-socket-streams.md#general-wss-information

wisespace-io commented 3 years ago

@gabriel-milan Thank you for the contribution. I never had time to implement combined streams. Nice addition to the crate