kraken: raise `SymbolNotFound` on symbology query errors

basic_buy_bot
Tyler Goodlet 2023-06-12 20:25:09 -04:00
parent 8220bd152e
commit d173d373cb
1 changed files with 4 additions and 1 deletions

View File

@ -638,7 +638,10 @@ class Client:
the 'AssetPairs' endpoint, see methods above.
'''
return cls._ntable[ticker].lower()
try:
return cls._ntable[ticker].lower()
except KeyError as ke:
raise SymbolNotFound(f'kraken has no {ke.args[0]}')
@acm