refactor redundant code
parent
a117177759
commit
2bdbe0f20e
|
@ -449,15 +449,9 @@ class Client:
|
||||||
|
|
||||||
for instrument in mkt_pairs:
|
for instrument in mkt_pairs:
|
||||||
pair_type: Type = PAIRTYPES[venue]
|
pair_type: Type = PAIRTYPES[venue]
|
||||||
try:
|
|
||||||
pair: Pair = pair_type(**mkt_pairs[instrument].to_dict())
|
pair: Pair = pair_type(**mkt_pairs[instrument].to_dict())
|
||||||
except Exception as e:
|
|
||||||
e.add_note(
|
|
||||||
"\nDon't panic, prolly stupid binance changed their symbology schema again..\n"
|
|
||||||
'Check out their API docs here:\n\n'
|
|
||||||
'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
|
||||||
|
|
Loading…
Reference in New Issue