question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`stream_buffer_name` vs `stream_label` in `binance_websocket_api_manager.create_stream()`

See original GitHub issue

Could anyone explain me the difference between stream_buffer_name and stream_label parameters in binance_websocket_api_manager.create_stream()?

What’s the point of having both parameters instead of only one of them?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
oliver-zehentleitnercommented, Jan 4, 2021
1reaction
oliver-zehentleitnercommented, Jan 4, 2021

stream_label is the name/label you choose for the stream and can be used with get_stream_id_by_label() and is shown in print_summary() which helps you to identify it in the view and should be unique (one stream, one label)

stream_buffer_name is the name of the buffer you want to use. you can use one buffer for all streams or just one buffer for one stream. for example you can create 2 streams to stream all trades. Since there are more than 1024 trading pairs, not all subscriptions fit into one stream, so you have to create 2 streams: stream_label=“trades_1” and stream_label=“trades_2” but both use stream_buffer_name=“trades”

edit: https://oliver-zehentleitner.github.io/unicorn-binance-websocket-api/unicorn_binance_websocket_api.html#unicorn_binance_websocket_api.unicorn_binance_websocket_api_manager.BinanceWebSocketApiManager.create_stream

  • stream_label (str) – provide a stream_label to identify the stream
  • stream_buffer_name (bool or str) – If False the data is going to get written to the default stream_buffer, set to True to read the data via pop_stream_data_from_stream_buffer(stream_id) or provide a string to create and use a shared stream_buffer and read it via pop_stream_data_from_stream_buffer(‘string’).
Read more comments on GitHub >

github_iconTop Results From Across the Web

`stream_buffer_name` vs `stream_label` in ... - GitHub
stream_label is the name/label you choose for the stream and can be used with get_stream_id_by_label() and is shown in print_summary() which ...
Read more >
Setting up Stream Labels | Streamlabs
Below are some quick easy steps to get started with using stream labels · Open your streaming software and click to add a...
Read more >
Streamlabs on Twitter: "@TheQilot Where it says "Label ...
... but when someone follows to doesn't update and say the new followers name ... the label that is supposed to accompany that...
Read more >
python/LUCIT-Systems-and-Development/unicorn-binance ...
__init__(self) self.name = "unicorn-binance-websocket-api" self.version ... back to the buffer :type stream_data: raw stream_data or unicorn_fied stream ...
Read more >
unicorn-binance-websocket-api - PyPI
Monitor the status of the created BinanceWebSocketApiManager() instance within your code with get_monitoring_status_plain() and specific streams with ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found