python-binance icon indicating copy to clipboard operation
python-binance copied to clipboard

TypeError: get_orderbook_tickers() got an unexpected keyword argument 'symbol'

Open brianivander opened this issue 3 years ago • 1 comments

Describe the bug TypeError: get_orderbook_tickers() got an unexpected keyword argument 'symbol'

To Reproduce client.get_orderbook_tickers(symbol='BTCUSDT')

Expected behavior using symbol parameter should be able to get the orderbook ticker only for that symbol

Environment (please complete the following information):

  • Python version: 3.8.10
  • Virtual Env: Jupyter Notebook
  • OS: Ubuntu 20:04.4 LTS
  • python-binance version: v1.0.15

Logs or Additional context

brianivander avatar Feb 27 '22 03:02 brianivander

Maybe there is some history about this API, since python-binance split this API into two methods: get_orderbook_ticker() and get_orderbook_tickers().

The plural form will call ticker/bookTicker API without any param, while the singular one is what you want.

halfelf avatar Mar 04 '22 02:03 halfelf