fix unknown kraken symbol raised error

ems_hotfixes
Konstantine Tsafatinos 2021-06-01 18:01:45 -04:00
parent 0da02aa260
commit 099bf260f5
1 changed files with 2 additions and 1 deletions

View File

@ -174,7 +174,8 @@ class Client:
resp = await self._public('AssetPairs', pairs)
err = resp['error']
if err:
raise BrokerError(err)
symbolname = pairs['pair'] if pair else None
raise SymbolNotFound(f'kraken: {symbolname}')
pairs = resp['result']