@@ -10,7 +10,6 @@ class FuturesAgg:
1010 """
1111
1212 ticker : Optional [str ] = None
13- underlying_asset : Optional [str ] = None
1413 open : Optional [float ] = None
1514 high : Optional [float ] = None
1615 low : Optional [float ] = None
@@ -26,7 +25,6 @@ class FuturesAgg:
2625 def from_dict (d ):
2726 return FuturesAgg (
2827 ticker = d .get ("ticker" ),
29- underlying_asset = d .get ("underlying_asset" ),
3028 open = d .get ("open" ),
3129 high = d .get ("high" ),
3230 low = d .get ("low" ),
@@ -49,7 +47,7 @@ class FuturesContract:
4947
5048 ticker : Optional [str ] = None
5149 product_code : Optional [str ] = None
52- market_identifier_code : Optional [str ] = None
50+ trading_venue : Optional [str ] = None
5351 name : Optional [str ] = None
5452 type : Optional [str ] = None
5553 as_of : Optional [str ] = None
@@ -70,7 +68,7 @@ def from_dict(d):
7068 return FuturesContract (
7169 ticker = d .get ("ticker" ),
7270 product_code = d .get ("product_code" ),
73- market_identifier_code = d .get ("market_identifier_code " ),
71+ trading_venue = d .get ("trading_venue " ),
7472 name = d .get ("name" ),
7573 type = d .get ("type" ),
7674 as_of = d .get ("as_of" ),
@@ -98,15 +96,14 @@ class FuturesProduct:
9896 product_code : Optional [str ] = None
9997 name : Optional [str ] = None
10098 as_of : Optional [str ] = None
101- market_identifier_code : Optional [str ] = None
99+ trading_venue : Optional [str ] = None
102100 asset_class : Optional [str ] = None
103101 asset_sub_class : Optional [str ] = None
104102 clearing_channel : Optional [str ] = None
105103 sector : Optional [str ] = None
106104 sub_sector : Optional [str ] = None
107105 type : Optional [str ] = None
108106 last_updated : Optional [str ] = None
109- otc_eligible : Optional [bool ] = None
110107 price_quotation : Optional [str ] = None
111108 settlement_currency_code : Optional [str ] = None
112109 settlement_method : Optional [str ] = None
@@ -121,15 +118,14 @@ def from_dict(d):
121118 product_code = d .get ("product_code" ),
122119 name = d .get ("name" ),
123120 as_of = d .get ("as_of" ),
124- market_identifier_code = d .get ("market_identifier_code " ),
121+ trading_venue = d .get ("trading_venue " ),
125122 asset_class = d .get ("asset_class" ),
126123 clearing_channel = d .get ("clearing_channel" ),
127124 asset_sub_class = d .get ("asset_sub_class" ),
128125 sector = d .get ("sector" ),
129126 sub_sector = d .get ("sub_sector" ),
130127 type = d .get ("type" ),
131128 last_updated = d .get ("last_updated" ),
132- otc_eligible = d .get ("otc_eligible" ),
133129 price_quotation = d .get ("price_quotation" ),
134130 settlement_currency_code = d .get ("settlement_currency_code" ),
135131 settlement_method = d .get ("settlement_method" ),
@@ -222,7 +218,7 @@ class FuturesSchedule:
222218
223219 session_end_date : Optional [str ] = None
224220 product_code : Optional [str ] = None
225- market_identifier_code : Optional [str ] = None
221+ trading_venue : Optional [str ] = None
226222 product_name : Optional [str ] = None
227223 schedule : Optional [List [FuturesScheduleEvent ]] = None
228224
@@ -231,7 +227,7 @@ def from_dict(d):
231227 return FuturesSchedule (
232228 session_end_date = d .get ("session_end_date" ),
233229 product_code = d .get ("product_code" ),
234- market_identifier_code = d .get ("market_identifier_code " ),
230+ trading_venue = d .get ("trading_venue " ),
235231 product_name = d .get ("product_name" ),
236232 schedule = [
237233 FuturesScheduleEvent .from_dict (ev ) for ev in d .get ("schedule" , [])
@@ -241,7 +237,7 @@ def from_dict(d):
241237
242238@modelclass
243239class FuturesMarketStatus :
244- market_identifier_code : Optional [str ] = None
240+ trading_venue : Optional [str ] = None
245241 market_status : Optional [str ] = (
246242 None # Enum: pre_open, open, close, pause, post_close_pre_open
247243 )
@@ -250,7 +246,7 @@ class FuturesMarketStatus:
250246 @staticmethod
251247 def from_dict (d ):
252248 return FuturesMarketStatus (
253- market_identifier_code = d .get ("market_identifier_code " ),
249+ trading_venue = d .get ("trading_venue " ),
254250 market_status = d .get ("market_status" ),
255251 product_code = d .get ("product_code" ),
256252 )
0 commit comments