File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1248,6 +1248,7 @@ def _fetch_symbol_info(self, url):
1248
1248
"delivery_month" : v .get ("delivery_month" ),
1249
1249
"delivery_year" : v .get ("delivery_year" ),
1250
1250
"option_class" : v .get ("option_class" , "" ),
1251
+ "product_id" : v .get ("product_id" , "" ),
1251
1252
} for k , v in rsp .json ().items ()
1252
1253
}
1253
1254
Original file line number Diff line number Diff line change @@ -171,7 +171,8 @@ async def _send_snapshot(self):
171
171
"expire_datetime" : quote .get ("expire_datetime" ),
172
172
"delivery_month" : quote .get ("delivery_month" ),
173
173
"delivery_year" : quote .get ("delivery_year" ),
174
- "option_class" : quote .get ("option_class" ),
174
+ "option_class" : quote .get ("option_class" , "" ),
175
+ "product_id" : quote .get ("product_id" , "" ),
175
176
}
176
177
self ._diffs .append ({
177
178
"quotes" : quotes ,
Original file line number Diff line number Diff line change @@ -149,6 +149,8 @@ def __init__(self, api):
149
149
self .delivery_year = 0
150
150
#: 期权方向
151
151
self .option_class = ""
152
+ #: 合约id
153
+ self .product_id = ""
152
154
153
155
def _instance_entity (self , path ):
154
156
super (Quote , self )._instance_entity (path )
You can’t perform that action at this time.
0 commit comments