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.

binance watch ticker

See original GitHub issue

MUST READ THIS BEFORE SUBMITTING ISSUES (read the links, then delete this message before submitting):

Make sure your local version of CCXT is up to date. Check by comparing the output of ccxt.version to https://github.com/ccxt/ccxt/blob/master/package.json#L3

  • OS:
  • Programming Language version:
  • CCXT version:
binance = ccxtpro.binance({'options': {'defaultType': 'future'}})

price = await binance.watchTicker('KSM/USDT')
Hi all, 

Just tried to run watchTicker on binance, but all bid, ask value come back as None. Is this a bug?

thank you, 

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
pickmonecommented, Apr 6, 2022

works, Thanks!

0reactions
kroitorcommented, Apr 6, 2022

but this is what i get as return, which doesn’t seem to include bids and asks. But I guess this is just a Binance issue then.

Exactly.

@kroitor On another note, I see on Binance Futures API Doc, there is another channel: @bookTicker, which according to the doc returns the best bid and asks.

Yes, and you can use that with CCXT Pro:

binance = ccxtpro.binance({
    'options': {
        'defaultType': 'future',
        'watchTicker': {
            'name': 'bookTicker',
        },
    }
})

# or

binance = ccxtpro.binanceusdm({'options': {'watchTicker': {'name': 'bookTicker'}}})

Let us know if that does not help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cryptocurrency Market | Coin Prices & Market Cap - Binance
Binance cryptocurrency market - The easiest way to know the last prices, coin market cap, token price charts, and 24h change of bitcoin...
Read more >
BNB (BNB) live coin price, charts, markets & liquidity
Track current BNB prices in real-time with historical BNB USD charts, liquidity, and volume. Get top exchanges, markets, and more.
Read more >
Binance Coin (BNB) Latest Prices, Charts & Data - Nasdaq
Binance Coin (BNB) prices - Nasdaq offers cryptocurrency prices & market activity data for US and ... 7 Cryptos to Watch Amid Congressional...
Read more >
Crypto Stocks Continue Drop as Binance Walks ... - CoinDesk
Concerns around FTX's health along with the broader crypto ecosystem spilled into the stock market Wednesday.
Read more >
Coinbase stock plunges on news of Binance-FTX merger ...
Shares of Coinbase Global Inc. tumbled in active trading Tuesday as the cryptocurrency platform faced concerns over increased competition ...
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