(20241228) Payments module revamped!
This commit is contained in:
@@ -155,6 +155,10 @@ class TradingTick(BaseModel):
|
||||
description = "the symbol of the instrument"
|
||||
)
|
||||
|
||||
name: str = Field(
|
||||
description = "the name of the co./underlying"
|
||||
)
|
||||
|
||||
exchange: Literal["NSE", "NFO", "BSE", "BFO", "MCX", "CDS", "BCD"] = Field(
|
||||
description = "the exchange on which this instrument is traded",
|
||||
frozen = True
|
||||
@@ -357,6 +361,7 @@ class TradingTick(BaseModel):
|
||||
"segment": self.segment,
|
||||
"type": self.type,
|
||||
"symbol": self.symbol,
|
||||
"name": self.name,
|
||||
"expiry": date_time.to_timezone(
|
||||
self.expiryTs,
|
||||
timezone = self.expiryTz
|
||||
@@ -398,6 +403,7 @@ class TradingTick(BaseModel):
|
||||
modelled_ticks.append(
|
||||
TradingTick(
|
||||
symbol = tick_lookup["symbol"],
|
||||
name = tick_lookup["name"],
|
||||
exchange = tick_lookup["exchange"],
|
||||
exchangeToken = tick_lookup["exchangeToken"],
|
||||
broker = "zerodhaKite",
|
||||
|
||||
Reference in New Issue
Block a user