You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import ccxt
exchange = ccxt.bitget()
symbol = "TONCOIN/USDT"
data = exchange.fetch_ticker(symbol)
print(json.dumps(data, indent=4, default=str))
throws error
crypto/bitget_demo_2.py", line 42, in <module>
data = exchange.fetch_ticker(symbol)
File "/Users/echen/opt/anaconda3/envs/cc-39/lib/python3.9/site-packages/ccxt/bitget.py", line 2620, in fetch_ticker
market = self.market(symbol)
File "/Users/echen/opt/anaconda3/envs/cc-39/lib/python3.9/site-packages/ccxt/base/exchange.py", line 4497, in market
raise BadSymbol(self.id + ' does not have market symbol ' + symbol)
ccxt.base.errors.BadSymbol: bitget does not have market symbol TONCOIN/USDT
I have to use TON/USDT
is this intended change of behavior
Code
The text was updated successfully, but these errors were encountered:
Hello @edwardchenchen,
Yes we did that override because most exchanges refer to it as TON and not TONCOIN. If you want you can revert it by doing this exchange.commonCurrencies['TONCOIN'] = 'TONCOIN' right after instantiating the exchange.
@edwardchenchen That's exactly what commonCurrencies is meant for, just make sure you set the overrides before start using the unified methods or calling load_markets
Operating System
ubuntu 2204
Programming Languages
Python
CCXT Version
4.3.4
Description
https://api.bitget.com/api/v2/spot/public/symbols?symbol=TONCOINUSDT
return
in ccxt 4.2.75
prints
however in ccxt 4.3.4
throws error
I have to use
TON/USDT
is this intended change of behavior
Code
The text was updated successfully, but these errors were encountered: