(20241231) Too many thing happening...

This commit is contained in:
2024-12-31 07:34:49 +00:00
parent f67263320e
commit a07c762586
13 changed files with 406 additions and 162 deletions
+8 -2
View File
@@ -173,10 +173,16 @@ class CoreAuthTokenModel(BaseModel):
default = "pending"
)
syncFreq: Literal[60, 300, 900, 1500] = Field(
syncFreq: Literal[None, 60, 300, 900, 1500] = Field(
description = "the no. of seconds after which to poll for updates from the client (if applicable)",
frozen = False,
default = 300
default = None
)
lastSyncTs: AwareDatetime | None = Field(
description = "the time at which this client's updates were last polled",
frozen = False,
default = None
)
# ┏┓ ┏•
+3 -1
View File
@@ -375,7 +375,9 @@ class TradingTick(BaseModel):
"qty": self.qty,
"chg": self.chg,
"pChg": self.pChg,
"totVol": self.totVol
"totVol": self.totVol,
"tradeTs": self.tradeTs.timestamp(),
"tradeTz": self.tradeTz
}
@staticmethod