Binance Future Testnet : binance does not have market symbol X
See original GitHub issueMUST READ THIS BEFORE SUBMITTING ISSUES (read the links, then delete this message before submitting):
- https://github.com/ccxt/ccxt/wiki/FAQ
- https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-submit-an-issue
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:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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!
@safwen1 yes, the problem is fixed in CCXT, and CCXT Pro inherits from there. Thanks again for your feedback!