Well that was easy, convert tick/lot step sizes to `float`

l1_precision_fix
Tyler Goodlet 2022-05-11 10:41:03 -04:00
parent 482fc1da10
commit fb91e27651
1 changed files with 2 additions and 2 deletions

View File

@ -452,8 +452,8 @@ async def stream_quotes(
# XXX: after manually inspecting the response format we
# just directly pick out the info we need
si['price_tick_size'] = syminfo.filters[0]['tickSize']
si['lot_tick_size'] = syminfo.filters[2]['stepSize']
si['price_tick_size'] = float(syminfo.filters[0]['tickSize'])
si['lot_tick_size'] = float(syminfo.filters[2]['stepSize'])
si['asset_type'] = 'crypto'
symbol = symbols[0]