This commit is contained in:
Oleg Sheynin
2025-08-02 01:49:09 +00:00
parent 73f36ddcea
commit 7ab09669b4
6 changed files with 49 additions and 10 deletions
+2 -2
View File
@@ -52,11 +52,11 @@ class PtMktDataClient(NamedObject):
if message_type == "md_aggregate":
aggr = message.get("md_aggregate", {})
await self.live_strategy_.on_mkt_data_update(aggr)
# print(f"[{aggr['tstmp'][:19]}] *** RLTM *** {message}")
# print(f"[{aggr['tstamp'][:19]}] *** RLTM *** {message}")
elif message_type == "historical_md_aggregate":
aggr = message.get("historical_data", {})
await self.live_strategy_.on_mkt_data_hist_snapshot(aggr)
# print(f"[{aggr['tstmp'][:19]}] *** HIST *** {aggr}")
# print(f"[{aggr['tstamp'][:19]}] *** HIST *** {aggr}")
else:
Log.info(f"Unknown message type: {message_type}")