14
14
########################################################################
15
15
Boolean = sgqlc .types .Boolean
16
16
17
+
18
+ class Category (sgqlc .types .Enum ):
19
+ __schema__ = ins_schema
20
+ __choices__ = ('AGRICULTURAL' , 'CHEMICAL' , 'COAL' , 'EQUITY_INDEX' , 'FERROUS' , 'GRAIN' , 'GREASE' , 'LIGHT_INDUSTRY' , 'NONFERROUS_METALS' , 'OIL' , 'PRECIOUS_METALS' , 'SOFT_COMMODITY' , 'TREASURY_BOND' )
21
+
22
+
17
23
class Class (sgqlc .types .Enum ):
18
24
__schema__ = ins_schema
19
25
__choices__ = ('BOND' , 'COMBINE' , 'CONT' , 'FUND' , 'FUTURE' , 'INDEX' , 'OPTION' , 'SPOT' , 'STOCK' )
@@ -39,11 +45,12 @@ class Int64(sgqlc.types.Scalar):
39
45
########################################################################
40
46
class basic (sgqlc .types .Interface ):
41
47
__schema__ = ins_schema
42
- __field_names__ = ('price_tick ' , 'derivatives ' , 'trading_time ' , 'trading_day ' , 'instrument_name ' , 'english_name ' , 'price_decs ' , 'class_ ' , 'instrument_id ' , 'exchange_id ' , 'derivative ' )
48
+ __field_names__ = ('trading_time ' , 'instrument_name ' , 'instrument_id ' , 'derivative ' , 'ins_id ' , 'derivatives ' , 'exchange_id ' , 'instrument_name_wh ' , 'trading_day ' , 'english_name ' , 'price_decs' , 'class_' , 'py_wh' , 'price_tick ' )
43
49
price_tick = sgqlc .types .Field (Float , graphql_name = 'price_tick' )
44
50
derivatives = sgqlc .types .Field ('derivativeConnection' , graphql_name = 'derivatives' , args = sgqlc .types .ArgDict ((
45
51
('class_' , sgqlc .types .Arg (sgqlc .types .list_of (Class ), graphql_name = 'class' , default = None )),
46
52
('exchange_id' , sgqlc .types .Arg (sgqlc .types .list_of (String ), graphql_name = 'exchange_id' , default = None )),
53
+ ('expired' , sgqlc .types .Arg (Boolean , graphql_name = 'expired' , default = None )),
47
54
('timestamp' , sgqlc .types .Arg (Int64 , graphql_name = 'timestamp' , default = None )),
48
55
))
49
56
)
@@ -55,13 +62,17 @@ class basic(sgqlc.types.Interface):
55
62
class_ = sgqlc .types .Field (String , graphql_name = 'class' )
56
63
instrument_id = sgqlc .types .Field (String , graphql_name = 'instrument_id' )
57
64
exchange_id = sgqlc .types .Field (String , graphql_name = 'exchange_id' )
65
+ ins_id = sgqlc .types .Field (String , graphql_name = 'ins_id' )
66
+ instrument_name_wh = sgqlc .types .Field (String , graphql_name = 'instrument_name_wh' )
67
+ py_wh = sgqlc .types .Field (String , graphql_name = 'py_wh' )
68
+ price_tick = sgqlc .types .Field (Float , graphql_name = 'price_tick' )
58
69
derivative = sgqlc .types .Field ('derivativeConnection' , graphql_name = 'derivative' , args = sgqlc .types .ArgDict ((
59
70
('class_' , sgqlc .types .Arg (Class , graphql_name = 'class' , default = None )),
60
71
('exchange_id' , sgqlc .types .Arg (String , graphql_name = 'exchange_id' , default = None )),
72
+ ('expired' , sgqlc .types .Arg (Boolean , graphql_name = 'expired' , default = None )),
61
73
))
62
74
)
63
75
64
-
65
76
class derivative (sgqlc .types .Interface ):
66
77
__schema__ = ins_schema
67
78
__field_names__ = ('underlying' ,)
@@ -94,6 +105,7 @@ class rootQuery(sgqlc.types.Type):
94
105
('expired' , sgqlc .types .Arg (Boolean , graphql_name = 'expired' , default = None )),
95
106
('has_night' , sgqlc .types .Arg (Boolean , graphql_name = 'has_night' , default = None )),
96
107
('has_derivatives' , sgqlc .types .Arg (Boolean , graphql_name = 'has_derivatives' , default = None )),
108
+ ('categories' , sgqlc .types .Arg (sgqlc .types .list_of (Category ), graphql_name = 'categories' , default = None )),
97
109
))
98
110
)
99
111
symbol_info = sgqlc .types .Field (sgqlc .types .list_of ('allClassUnion' ), graphql_name = 'symbol_info' , args = sgqlc .types .ArgDict ((
@@ -110,7 +122,7 @@ class rootQuery(sgqlc.types.Type):
110
122
111
123
class securities (sgqlc .types .Interface ):
112
124
__schema__ = ins_schema
113
- __field_names__ = ('status ' , 'public_float_share_quantity ' , 'currency ' , 'face_value ' , 'first_trading_day ' , 'first_trading_datetime ' , 'buy_volume_unit ' , 'sell_volume_unit ' )
125
+ __field_names__ = ('currency ' , 'face_value ' , 'first_trading_day ' , 'first_trading_datetime ' , 'buy_volume_unit ' , 'sell_volume_unit ' , 'status ' , 'public_float_share_quantity ' )
114
126
status = sgqlc .types .Field (String , graphql_name = 'status' )
115
127
public_float_share_quantity = sgqlc .types .Field (Int64 , graphql_name = 'public_float_share_quantity' )
116
128
currency = sgqlc .types .Field (String , graphql_name = 'currency' )
@@ -123,14 +135,21 @@ class securities(sgqlc.types.Interface):
123
135
124
136
class tradeable (sgqlc .types .Interface ):
125
137
__schema__ = ins_schema
126
- __field_names__ = ('quote_multiple ' , 'pre_close ' , 'upper_limit ' , 'lower_limit ' , 'volume_multiple ' )
138
+ __field_names__ = ('volume_multiple ' , 'quote_multiple ' , 'pre_close ' , 'upper_limit ' , 'lower_limit ' )
127
139
quote_multiple = sgqlc .types .Field (Float , graphql_name = 'quote_multiple' )
128
140
pre_close = sgqlc .types .Field (Float , graphql_name = 'pre_close' )
129
141
upper_limit = sgqlc .types .Field (Float , graphql_name = 'upper_limit' )
130
142
lower_limit = sgqlc .types .Field (Float , graphql_name = 'lower_limit' )
131
143
volume_multiple = sgqlc .types .Field (Float , graphql_name = 'volume_multiple' )
132
144
133
145
146
+ class categoryInfo (sgqlc .types .Type ):
147
+ __schema__ = ins_schema
148
+ __field_names__ = ('id' , 'name' )
149
+ id = sgqlc .types .Field (String , graphql_name = 'id' )
150
+ name = sgqlc .types .Field (String , graphql_name = 'name' )
151
+
152
+
134
153
class tradingTime (sgqlc .types .Type ):
135
154
__schema__ = ins_schema
136
155
__field_names__ = ('day' , 'night' )
@@ -147,13 +166,23 @@ class bond(sgqlc.types.Type, basic, tradeable, securities):
147
166
148
167
class combine (sgqlc .types .Type , basic ):
149
168
__schema__ = ins_schema
150
- __field_names__ = ('expire_datetime' , 'expired' , 'leg1' , 'leg2' , 'max_limit_order_volume' , 'max_market_order_volume' , 'product_id' )
169
+ __field_names__ = ('close_max_limit_order_volume' , 'close_max_market_order_volume' , 'close_min_limit_order_volume' , 'close_min_market_order_volume' , 'expire_datetime' , 'expired' , 'leg1' , 'leg2' , 'max_limit_order_volume' , 'max_market_order_volume' , 'min_limit_order_volume' , 'min_market_order_volume' , 'open_max_limit_order_volume' , 'open_max_market_order_volume' , 'open_min_limit_order_volume' , 'open_min_market_order_volume' , 'product_id' )
170
+ close_max_limit_order_volume = sgqlc .types .Field (Int , graphql_name = 'close_max_limit_order_volume' )
171
+ close_max_market_order_volume = sgqlc .types .Field (Int , graphql_name = 'close_max_market_order_volume' )
172
+ close_min_limit_order_volume = sgqlc .types .Field (Int , graphql_name = 'close_min_limit_order_volume' )
173
+ close_min_market_order_volume = sgqlc .types .Field (Int , graphql_name = 'close_min_market_order_volume' )
151
174
expire_datetime = sgqlc .types .Field (Int64 , graphql_name = 'expire_datetime' )
152
175
expired = sgqlc .types .Field (Boolean , graphql_name = 'expired' )
153
176
leg1 = sgqlc .types .Field ('allClassUnion' , graphql_name = 'leg1' )
154
177
leg2 = sgqlc .types .Field ('allClassUnion' , graphql_name = 'leg2' )
155
178
max_limit_order_volume = sgqlc .types .Field (Int , graphql_name = 'max_limit_order_volume' )
156
179
max_market_order_volume = sgqlc .types .Field (Int , graphql_name = 'max_market_order_volume' )
180
+ min_limit_order_volume = sgqlc .types .Field (Int , graphql_name = 'min_limit_order_volume' )
181
+ min_market_order_volume = sgqlc .types .Field (Int , graphql_name = 'min_market_order_volume' )
182
+ open_max_limit_order_volume = sgqlc .types .Field (Int , graphql_name = 'open_max_limit_order_volume' )
183
+ open_max_market_order_volume = sgqlc .types .Field (Int , graphql_name = 'open_max_market_order_volume' )
184
+ open_min_limit_order_volume = sgqlc .types .Field (Int , graphql_name = 'open_min_limit_order_volume' )
185
+ open_min_market_order_volume = sgqlc .types .Field (Int , graphql_name = 'open_min_market_order_volume' )
157
186
product_id = sgqlc .types .Field (String , graphql_name = 'product_id' )
158
187
159
188
@@ -170,7 +199,12 @@ class fund(sgqlc.types.Type, basic, tradeable, securities):
170
199
171
200
class future (sgqlc .types .Type , basic , tradeable ):
172
201
__schema__ = ins_schema
173
- __field_names__ = ('commission' , 'delivery_month' , 'delivery_year' , 'expire_datetime' , 'expired' , 'margin' , 'max_limit_order_volume' , 'max_market_order_volume' , 'mmsa' , 'pre_open_interest' , 'product_id' , 'product_short_name' , 'settlement_price' )
202
+ __field_names__ = ('categories' , 'close_max_limit_order_volume' , 'close_max_market_order_volume' , 'close_min_limit_order_volume' , 'close_min_market_order_volume' , 'commission' , 'delivery_month' , 'delivery_year' , 'expire_datetime' , 'expired' , 'margin' , 'max_limit_order_volume' , 'max_market_order_volume' , 'min_limit_order_volume' , 'min_market_order_volume' , 'mmsa' , 'open_max_limit_order_volume' , 'open_max_market_order_volume' , 'open_min_limit_order_volume' , 'open_min_market_order_volume' , 'pre_open_interest' , 'product_id' , 'product_short_name' , 'product_short_name_wh' , 'settlement_price' )
203
+ categories = sgqlc .types .Field (sgqlc .types .list_of (categoryInfo ), graphql_name = 'categories' )
204
+ close_max_limit_order_volume = sgqlc .types .Field (Int , graphql_name = 'close_max_limit_order_volume' )
205
+ close_max_market_order_volume = sgqlc .types .Field (Int , graphql_name = 'close_max_market_order_volume' )
206
+ close_min_limit_order_volume = sgqlc .types .Field (Int , graphql_name = 'close_min_limit_order_volume' )
207
+ close_min_market_order_volume = sgqlc .types .Field (Int , graphql_name = 'close_min_market_order_volume' )
174
208
commission = sgqlc .types .Field (Float , graphql_name = 'commission' )
175
209
delivery_month = sgqlc .types .Field (Int , graphql_name = 'delivery_month' )
176
210
delivery_year = sgqlc .types .Field (Int , graphql_name = 'delivery_year' )
@@ -179,10 +213,17 @@ class future(sgqlc.types.Type, basic, tradeable):
179
213
margin = sgqlc .types .Field (Float , graphql_name = 'margin' )
180
214
max_limit_order_volume = sgqlc .types .Field (Int , graphql_name = 'max_limit_order_volume' )
181
215
max_market_order_volume = sgqlc .types .Field (Int , graphql_name = 'max_market_order_volume' )
216
+ min_limit_order_volume = sgqlc .types .Field (Int , graphql_name = 'min_limit_order_volume' )
217
+ min_market_order_volume = sgqlc .types .Field (Int , graphql_name = 'min_market_order_volume' )
182
218
mmsa = sgqlc .types .Field (Boolean , graphql_name = 'mmsa' )
219
+ open_max_limit_order_volume = sgqlc .types .Field (Int , graphql_name = 'open_max_limit_order_volume' )
220
+ open_max_market_order_volume = sgqlc .types .Field (Int , graphql_name = 'open_max_market_order_volume' )
221
+ open_min_limit_order_volume = sgqlc .types .Field (Int , graphql_name = 'open_min_limit_order_volume' )
222
+ open_min_market_order_volume = sgqlc .types .Field (Int , graphql_name = 'open_min_market_order_volume' )
183
223
pre_open_interest = sgqlc .types .Field (Int64 , graphql_name = 'pre_open_interest' )
184
224
product_id = sgqlc .types .Field (String , graphql_name = 'product_id' )
185
225
product_short_name = sgqlc .types .Field (String , graphql_name = 'product_short_name' )
226
+ product_short_name_wh = sgqlc .types .Field (String , graphql_name = 'product_short_name_wh' )
186
227
settlement_price = sgqlc .types .Field (Float , graphql_name = 'settlement_price' )
187
228
188
229
@@ -194,15 +235,25 @@ class index(sgqlc.types.Type, basic):
194
235
195
236
class option (sgqlc .types .Type , basic , tradeable , derivative ):
196
237
__schema__ = ins_schema
197
- __field_names__ = ('call_or_put' , 'exercise_type' , 'expire_datetime' , 'expired' , 'last_exercise_datetime' , 'last_exercise_day' , 'max_limit_order_volume' , 'max_market_order_volume' , 'pre_open_interest' , 'product_short_name' , 'settlement_price' , 'strike_price' )
238
+ __field_names__ = ('call_or_put' , 'close_max_limit_order_volume' , 'close_max_market_order_volume' , 'close_min_limit_order_volume' , 'close_min_market_order_volume' , ' exercise_type' , 'expire_datetime' , 'expired' , 'last_exercise_datetime' , 'last_exercise_day' , 'max_limit_order_volume' , 'max_market_order_volume' , 'min_limit_order_volume' , 'min_market_order_volume' , 'open_max_limit_order_volume' , 'open_max_market_order_volume' , 'open_min_limit_order_volume' , 'open_min_market_order_volume ' , 'pre_open_interest' , 'product_short_name' , 'settlement_price' , 'strike_price' )
198
239
call_or_put = sgqlc .types .Field (String , graphql_name = 'call_or_put' )
240
+ close_max_limit_order_volume = sgqlc .types .Field (Int , graphql_name = 'close_max_limit_order_volume' )
241
+ close_max_market_order_volume = sgqlc .types .Field (Int , graphql_name = 'close_max_market_order_volume' )
242
+ close_min_limit_order_volume = sgqlc .types .Field (Int , graphql_name = 'close_min_limit_order_volume' )
243
+ close_min_market_order_volume = sgqlc .types .Field (Int , graphql_name = 'close_min_market_order_volume' )
199
244
exercise_type = sgqlc .types .Field (String , graphql_name = 'exercise_type' )
200
245
expire_datetime = sgqlc .types .Field (Int64 , graphql_name = 'expire_datetime' )
201
246
expired = sgqlc .types .Field (Boolean , graphql_name = 'expired' )
202
247
last_exercise_datetime = sgqlc .types .Field (Int64 , graphql_name = 'last_exercise_datetime' )
203
248
last_exercise_day = sgqlc .types .Field (Int64 , graphql_name = 'last_exercise_day' )
204
249
max_limit_order_volume = sgqlc .types .Field (Int , graphql_name = 'max_limit_order_volume' )
205
250
max_market_order_volume = sgqlc .types .Field (Int , graphql_name = 'max_market_order_volume' )
251
+ min_limit_order_volume = sgqlc .types .Field (Int , graphql_name = 'min_limit_order_volume' )
252
+ min_market_order_volume = sgqlc .types .Field (Int , graphql_name = 'min_market_order_volume' )
253
+ open_max_limit_order_volume = sgqlc .types .Field (Int , graphql_name = 'open_max_limit_order_volume' )
254
+ open_max_market_order_volume = sgqlc .types .Field (Int , graphql_name = 'open_max_market_order_volume' )
255
+ open_min_limit_order_volume = sgqlc .types .Field (Int , graphql_name = 'open_min_limit_order_volume' )
256
+ open_min_market_order_volume = sgqlc .types .Field (Int , graphql_name = 'open_min_market_order_volume' )
206
257
pre_open_interest = sgqlc .types .Field (Int64 , graphql_name = 'pre_open_interest' )
207
258
product_short_name = sgqlc .types .Field (String , graphql_name = 'product_short_name' )
208
259
settlement_price = sgqlc .types .Field (Float , graphql_name = 'settlement_price' )
@@ -294,9 +345,16 @@ class allClassUnion(sgqlc.types.Union):
294
345
future_frag .settlement_price ()
295
346
future_frag .max_market_order_volume ()
296
347
future_frag .max_limit_order_volume ()
348
+ future_frag .min_market_order_volume ()
349
+ future_frag .min_limit_order_volume ()
350
+ future_frag .open_max_market_order_volume ()
351
+ future_frag .open_max_limit_order_volume ()
352
+ future_frag .open_min_market_order_volume ()
353
+ future_frag .open_min_limit_order_volume ()
297
354
future_frag .margin ()
298
355
future_frag .commission ()
299
356
future_frag .mmsa ()
357
+ future_frag .categories ()
300
358
301
359
option_frag = Fragment (option , 'option' )
302
360
option_frag .pre_open_interest ()
@@ -307,6 +365,12 @@ class allClassUnion(sgqlc.types.Union):
307
365
option_frag .settlement_price ()
308
366
option_frag .max_market_order_volume ()
309
367
option_frag .max_limit_order_volume ()
368
+ option_frag .min_market_order_volume ()
369
+ option_frag .min_limit_order_volume ()
370
+ option_frag .open_max_market_order_volume ()
371
+ option_frag .open_max_limit_order_volume ()
372
+ option_frag .open_min_market_order_volume ()
373
+ option_frag .open_min_limit_order_volume ()
310
374
option_frag .strike_price ()
311
375
option_frag .call_or_put ()
312
376
option_frag .exercise_type ()
@@ -317,6 +381,12 @@ class allClassUnion(sgqlc.types.Union):
317
381
combine_frag .expire_datetime ()
318
382
combine_frag .max_market_order_volume ()
319
383
combine_frag .max_limit_order_volume ()
384
+ combine_frag .min_market_order_volume ()
385
+ combine_frag .min_limit_order_volume ()
386
+ combine_frag .open_max_market_order_volume ()
387
+ combine_frag .open_max_limit_order_volume ()
388
+ combine_frag .open_min_market_order_volume ()
389
+ combine_frag .open_min_limit_order_volume ()
320
390
combine_frag .leg1 ().__as__ (basic ).instrument_id ()
321
391
combine_frag .leg2 ().__as__ (basic ).instrument_id ()
322
392
0 commit comments