@@ -10,7 +10,6 @@ class FuturesAgg:
10
10
"""
11
11
12
12
ticker : Optional [str ] = None
13
- underlying_asset : Optional [str ] = None
14
13
open : Optional [float ] = None
15
14
high : Optional [float ] = None
16
15
low : Optional [float ] = None
@@ -26,7 +25,6 @@ class FuturesAgg:
26
25
def from_dict (d ):
27
26
return FuturesAgg (
28
27
ticker = d .get ("ticker" ),
29
- underlying_asset = d .get ("underlying_asset" ),
30
28
open = d .get ("open" ),
31
29
high = d .get ("high" ),
32
30
low = d .get ("low" ),
@@ -49,7 +47,7 @@ class FuturesContract:
49
47
50
48
ticker : Optional [str ] = None
51
49
product_code : Optional [str ] = None
52
- market_identifier_code : Optional [str ] = None
50
+ trading_venue : Optional [str ] = None
53
51
name : Optional [str ] = None
54
52
type : Optional [str ] = None
55
53
as_of : Optional [str ] = None
@@ -70,7 +68,7 @@ def from_dict(d):
70
68
return FuturesContract (
71
69
ticker = d .get ("ticker" ),
72
70
product_code = d .get ("product_code" ),
73
- market_identifier_code = d .get ("market_identifier_code " ),
71
+ trading_venue = d .get ("trading_venue " ),
74
72
name = d .get ("name" ),
75
73
type = d .get ("type" ),
76
74
as_of = d .get ("as_of" ),
@@ -98,15 +96,14 @@ class FuturesProduct:
98
96
product_code : Optional [str ] = None
99
97
name : Optional [str ] = None
100
98
as_of : Optional [str ] = None
101
- market_identifier_code : Optional [str ] = None
99
+ trading_venue : Optional [str ] = None
102
100
asset_class : Optional [str ] = None
103
101
asset_sub_class : Optional [str ] = None
104
102
clearing_channel : Optional [str ] = None
105
103
sector : Optional [str ] = None
106
104
sub_sector : Optional [str ] = None
107
105
type : Optional [str ] = None
108
106
last_updated : Optional [str ] = None
109
- otc_eligible : Optional [bool ] = None
110
107
price_quotation : Optional [str ] = None
111
108
settlement_currency_code : Optional [str ] = None
112
109
settlement_method : Optional [str ] = None
@@ -121,15 +118,14 @@ def from_dict(d):
121
118
product_code = d .get ("product_code" ),
122
119
name = d .get ("name" ),
123
120
as_of = d .get ("as_of" ),
124
- market_identifier_code = d .get ("market_identifier_code " ),
121
+ trading_venue = d .get ("trading_venue " ),
125
122
asset_class = d .get ("asset_class" ),
126
123
clearing_channel = d .get ("clearing_channel" ),
127
124
asset_sub_class = d .get ("asset_sub_class" ),
128
125
sector = d .get ("sector" ),
129
126
sub_sector = d .get ("sub_sector" ),
130
127
type = d .get ("type" ),
131
128
last_updated = d .get ("last_updated" ),
132
- otc_eligible = d .get ("otc_eligible" ),
133
129
price_quotation = d .get ("price_quotation" ),
134
130
settlement_currency_code = d .get ("settlement_currency_code" ),
135
131
settlement_method = d .get ("settlement_method" ),
@@ -222,7 +218,7 @@ class FuturesSchedule:
222
218
223
219
session_end_date : Optional [str ] = None
224
220
product_code : Optional [str ] = None
225
- market_identifier_code : Optional [str ] = None
221
+ trading_venue : Optional [str ] = None
226
222
product_name : Optional [str ] = None
227
223
schedule : Optional [List [FuturesScheduleEvent ]] = None
228
224
@@ -231,7 +227,7 @@ def from_dict(d):
231
227
return FuturesSchedule (
232
228
session_end_date = d .get ("session_end_date" ),
233
229
product_code = d .get ("product_code" ),
234
- market_identifier_code = d .get ("market_identifier_code " ),
230
+ trading_venue = d .get ("trading_venue " ),
235
231
product_name = d .get ("product_name" ),
236
232
schedule = [
237
233
FuturesScheduleEvent .from_dict (ev ) for ev in d .get ("schedule" , [])
@@ -241,7 +237,7 @@ def from_dict(d):
241
237
242
238
@modelclass
243
239
class FuturesMarketStatus :
244
- market_identifier_code : Optional [str ] = None
240
+ trading_venue : Optional [str ] = None
245
241
market_status : Optional [str ] = (
246
242
None # Enum: pre_open, open, close, pause, post_close_pre_open
247
243
)
@@ -250,7 +246,7 @@ class FuturesMarketStatus:
250
246
@staticmethod
251
247
def from_dict (d ):
252
248
return FuturesMarketStatus (
253
- market_identifier_code = d .get ("market_identifier_code " ),
249
+ trading_venue = d .get ("trading_venue " ),
254
250
market_status = d .get ("market_status" ),
255
251
product_code = d .get ("product_code" ),
256
252
)
0 commit comments