Add "crypto" type to binance and kraken symbols
parent
dfb9c55944
commit
6be6f25797
|
@ -418,6 +418,7 @@ async def stream_quotes(
|
||||||
# just directly pick out the info we need
|
# just directly pick out the info we need
|
||||||
si['price_tick_size'] = syminfo.filters[0]['tickSize']
|
si['price_tick_size'] = syminfo.filters[0]['tickSize']
|
||||||
si['lot_tick_size'] = syminfo.filters[2]['stepSize']
|
si['lot_tick_size'] = syminfo.filters[2]['stepSize']
|
||||||
|
si['asset_type'] = 'crypto'
|
||||||
|
|
||||||
symbol = symbols[0]
|
symbol = symbols[0]
|
||||||
|
|
||||||
|
|
|
@ -439,6 +439,7 @@ async def stream_quotes(
|
||||||
syminfo = si.dict()
|
syminfo = si.dict()
|
||||||
syminfo['price_tick_size'] = 1 / 10**si.pair_decimals
|
syminfo['price_tick_size'] = 1 / 10**si.pair_decimals
|
||||||
syminfo['lot_tick_size'] = 1 / 10**si.lot_decimals
|
syminfo['lot_tick_size'] = 1 / 10**si.lot_decimals
|
||||||
|
syminfo['asset_type'] = 'crypto'
|
||||||
sym_infos[sym] = syminfo
|
sym_infos[sym] = syminfo
|
||||||
ws_pairs[sym] = si.wsname
|
ws_pairs[sym] = si.wsname
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue