Use trade_data_ts for trade message receival
parent
f67ffeb70f
commit
672c01f13a
|
@ -586,13 +586,13 @@ async def stream_messages(ws: NoBsWs, sym: str) -> AsyncGenerator[NoBsWs, dict]:
|
|||
yield 'trade', {
|
||||
'symbol': sym,
|
||||
'last': trade_data.price,
|
||||
'brokerd_ts': trade_data.time,
|
||||
'brokerd_ts': trade_data_ts,
|
||||
'ticks': [
|
||||
{
|
||||
'type': 'trade',
|
||||
'price': float(trade_data.price),
|
||||
'size': float(trade_data.size),
|
||||
'broker_ts': trade_data.time,
|
||||
'broker_ts': trade_data_ts,
|
||||
}
|
||||
],
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue