kraken: raise `SymbolNotFound` on symbology query errors
parent
8220bd152e
commit
d173d373cb
|
@ -638,7 +638,10 @@ class Client:
|
||||||
the 'AssetPairs' endpoint, see methods above.
|
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
|
@acm
|
||||||
|
|
Loading…
Reference in New Issue