Use proper value for init message

small_kucoin_fixes
jaredgoldman 2023-04-13 21:52:40 -04:00
parent b00abd0e51
commit 92f372dcc8
1 changed files with 4 additions and 3 deletions

View File

@ -448,7 +448,8 @@ async def stream_quotes(
for sym in symbols: for sym in symbols:
token, ping_interval = await client._get_ws_token() token, ping_interval = await client._get_ws_token()
pairs = await client.cache_pairs() pairs = await client.cache_pairs()
kucoin_sym = pairs[sym].symbol pair = pairs[sym]: KucoinMktPair
kucoin_sym = pair.symbol
init_msgs = { init_msgs = {
# pass back token, and bool, signalling if we're the writer # pass back token, and bool, signalling if we're the writer
@ -456,8 +457,8 @@ async def stream_quotes(
sym: { sym: {
'symbol_info': { 'symbol_info': {
'asset_type': 'crypto', 'asset_type': 'crypto',
'price_tick_size': 0.0005, 'price_tick_size': pair.baseIncrement,
'lot_tick_size': 0.1, 'lot_tick_size': pair.baseMinSize,
}, },
'shm_write_opts': {'sum_tick_vml': False}, 'shm_write_opts': {'sum_tick_vml': False},
'fqsn': sym, 'fqsn': sym,