From 92f372dcc88552c3539b04a32564e62d416115dd Mon Sep 17 00:00:00 2001 From: jaredgoldman Date: Thu, 13 Apr 2023 21:52:40 -0400 Subject: [PATCH] Use proper value for init message --- piker/brokers/kucoin.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/piker/brokers/kucoin.py b/piker/brokers/kucoin.py index 39cd666c..5cf301a0 100644 --- a/piker/brokers/kucoin.py +++ b/piker/brokers/kucoin.py @@ -448,7 +448,8 @@ async def stream_quotes( for sym in symbols: token, ping_interval = await client._get_ws_token() pairs = await client.cache_pairs() - kucoin_sym = pairs[sym].symbol + pair = pairs[sym]: KucoinMktPair + kucoin_sym = pair.symbol init_msgs = { # pass back token, and bool, signalling if we're the writer @@ -456,8 +457,8 @@ async def stream_quotes( sym: { 'symbol_info': { 'asset_type': 'crypto', - 'price_tick_size': 0.0005, - 'lot_tick_size': 0.1, + 'price_tick_size': pair.baseIncrement, + 'lot_tick_size': pair.baseMinSize, }, 'shm_write_opts': {'sum_tick_vml': False}, 'fqsn': sym,