LUCIT-Systems-and-Development / unicorn-binance-websocket-api

A Python SDK by LUCIT to use the Binance Websocket API`s (com+testnet, com-margin+testnet, com-isolated_margin+testnet, com-futures+testnet, com-coin_futures, us, tr, dex/chain+testnet) in a simple, fast, flexible, robust and fully-featured way.
https://unicorn-binance-websocket-api.docs.lucit.tech/
Other
683 stars 164 forks source link

Give streams a name #60

Closed oliver-zehentleitner closed 4 years ago

oliver-zehentleitner commented 4 years ago

Is your feature request related to a problem? Please describe. To identify streams its cool to have labels and show them instead of the stream_id in print_summary()

Describe the solution you'd like

  1. Add a parameter like create_stream("trade", "btcusdt", stream_label="trades")
  2. Add a method to get and set/rm the label of a stream.
  3. If stream_label is not None then show it instead of the stream_id in print_summary()
  4. Change the column name "stream_id" to "stream_id/stream_label"
  5. Add/modify docstrings

Describe alternatives you've considered

Additional context

oliver-zehentleitner commented 4 years ago

Added