fix unknown kraken symbol raised error
parent
0da02aa260
commit
099bf260f5
|
@ -174,7 +174,8 @@ class Client:
|
||||||
resp = await self._public('AssetPairs', pairs)
|
resp = await self._public('AssetPairs', pairs)
|
||||||
err = resp['error']
|
err = resp['error']
|
||||||
if err:
|
if err:
|
||||||
raise BrokerError(err)
|
symbolname = pairs['pair'] if pair else None
|
||||||
|
raise SymbolNotFound(f'kraken: {symbolname}')
|
||||||
|
|
||||||
pairs = resp['result']
|
pairs = resp['result']
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue