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 Future Testnet : binance does not have market symbol X

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: Ubuntu
  • Programming Language version: Python
  • CCXT version: 1.38.20
exchange_data = {
                'timeout': 10000,
                'enableRateLimit': True,
                'options': {
                    'defaultType': 'future',
                }
            }

exchange = getattr(ccxt, 'binance')(exchange_data)

# To use Future testnet API ( https://testnet.binancefuture.com/ )
exchange.urls['api']['fapiPublic'] = exchange.urls['test']['fapiPublic']
exchange.urls['api']['fapiPrivate'] = exchange.urls['test']['fapiPrivate']
exchange.urls['api']['fapiPrivateV2'] = exchange.urls['test']['fapiPrivateV2']

last_price = float((await exchange.fetch_ticker('ETH/USDT'))['last'])

Error : binance does not have market symbol ETH/USDT

The same code works if we are using Binance Future production API. The testnet used to work too in previous Binance versions ( or maybe previous CCXT versions ? )

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
safwen1commented, Nov 26, 2020

@kroitor Our CCXT pro subscription is over so I won’t be able to make that update. However updating the free CCXT seems to fix it. Cheers!

0reactions
kroitorcommented, Nov 26, 2020

@safwen1 yes, the problem is fixed in CCXT, and CCXT Pro inherits from there. Thanks again for your feedback!

Read more comments on GitHub >

github_iconTop Results From Across the Web

ccxt.base.errors.BadSymbol: binance does not have market ...
Currently, I am getting Error of Binance testnet ccxt.base.errors.BadSymbol: binance does not have market symbol BTC/USDT, what is the issue, while the sam....
Read more >
How to Test My Functions on Binance Testnet
Log in to your Binance testnet account on the Binance Futures Testnet. If you don't have a testnet account, click [Create].
Read more >
Change Log – Binance API Documentation - GitHub Pages
Rejected/unsuccessful orders are not guaranteed to have X-MBX-ORDER-COUNT-** headers in the response. The order rate limit is counted against each account.
Read more >
Testnet Binance Future : Invalid API-key, IP, or permissions for ...
in my case, there was not option testnet=True flagged. Now, it works. api_key = 'x' api_secret = 'x'. client = Client(api_key, api_secret ...
Read more >
Binance API — python-binance 0.2.0 documentation
If last_id is specified, start with the trade after it. This is meant for updating a pre-existing local trade data cache. Only allows...
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