Well that was easy, convert tick/lot step sizes to `float`
parent
482fc1da10
commit
fb91e27651
|
@ -452,8 +452,8 @@ async def stream_quotes(
|
||||||
|
|
||||||
# XXX: after manually inspecting the response format we
|
# XXX: after manually inspecting the response format we
|
||||||
# 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'] = float(syminfo.filters[0]['tickSize'])
|
||||||
si['lot_tick_size'] = syminfo.filters[2]['stepSize']
|
si['lot_tick_size'] = float(syminfo.filters[2]['stepSize'])
|
||||||
si['asset_type'] = 'crypto'
|
si['asset_type'] = 'crypto'
|
||||||
|
|
||||||
symbol = symbols[0]
|
symbol = symbols[0]
|
||||||
|
|
Loading…
Reference in New Issue