Added note to exception when missing field in SpotPair class

fix-binance-venues
Nelson Torres 2024-05-22 00:08:47 -03:00
parent a4550afe90
commit 31653277a4
1 changed files with 5 additions and 1 deletions

View File

@ -433,7 +433,11 @@ class Client:
item['filters'] = filters
pair_type: Type = PAIRTYPES[venue]
try:
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
# update an additional top-level-cross-venue-table