Added note to exception when missing field in SpotPair class

nix-headless-fix
Nelson Torres 2024-05-22 00:08:47 -03:00 committed by Tyler Goodlet
parent 0c0b7116e3
commit 5314cb79d4
1 changed files with 5 additions and 1 deletions

View File

@ -433,7 +433,11 @@ class Client:
item['filters'] = filters item['filters'] = filters
pair_type: Type = PAIRTYPES[venue] pair_type: Type = PAIRTYPES[venue]
try:
pair: Pair = pair_type(**item) pair: Pair = pair_type(**item)
except Exception as e:
e.add_note(f'\nDon\'t panic, check out this https://binance-docs.github.io/apidocs/spot/en/#exchange-information')
raise
pair_table[pair.symbol.upper()] = pair pair_table[pair.symbol.upper()] = pair
# update an additional top-level-cross-venue-table # update an additional top-level-cross-venue-table