Skip to content

Conversation

mpskowron
Copy link

I tried to start a depth stream, but I was getting this error:
Error: invalid length 2, expected struct Bids with 3 elements at line 1 column 112
After removing field named "ignore" from model.Asks and model.Bids structs the error dissapears.
Additionally, I added the possibility to set update speed as in binance documentation to one of: 100ms, 1000ms. Please review :)

"{}",
match self {
Self::Default => "",
Self::Slow => "@1000ms",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems arbitrary. Are these two values the only accepted ones by Binance? Could you please link their documentation?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants