Use proper value for init message
parent
b00abd0e51
commit
92f372dcc8
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue