(20250407) Added support for Indices by removing the constaint for having a trade timestamp since indices cannot be traded directly and won't have a trade timestamp.
This commit is contained in:
@@ -388,7 +388,7 @@ class TradingTick(BaseModel):
|
||||
"vwap": self.vwap,
|
||||
"totVol": self.totVol,
|
||||
"rcvdTs": self.rcvdTs.timestamp(),
|
||||
"tradeTs": self.tradeTs.timestamp(),
|
||||
"tradeTs": None if self.tradeTs is None else self.tradeTs.timestamp(),
|
||||
"tradeTz": self.tradeTz,
|
||||
"exchgTs": self.exchgTs.timestamp(),
|
||||
"exchgTz": self.exchgTz
|
||||
|
||||
Reference in New Issue
Block a user