Merge pull request #191 from iamzoltan/unknown_kraken_symbol

fix unknown kraken symbol raised error
ems_hotfixes
goodboy 2021-06-09 19:22:52 -04:00 committed by GitHub
commit ee65382d97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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'{symbolname}.kraken')
pairs = resp['result'] pairs = resp['result']