Repair normalize method logic to only error on lookup failure

kraken_ws_orders
Tyler Goodlet 2022-08-05 11:04:31 -04:00
parent ef5829a6b7
commit d280a592b1
1 changed files with 1 additions and 2 deletions

View File

@ -509,10 +509,9 @@ class Client:
the 'AssetPairs' endpoint, see methods above. the 'AssetPairs' endpoint, see methods above.
''' '''
ticker = cls._ntable[ticker]
symlen = len(ticker) symlen = len(ticker)
if symlen != 6: if symlen != 6:
ticker = cls._ntable[ticker]
else:
raise ValueError(f'Unhandled symbol: {ticker}') raise ValueError(f'Unhandled symbol: {ticker}')
return ticker.lower() return ticker.lower()