44
55@author: gaoan
66"""
7+ from tigeropen .common .model import BaseParams
78
89
9- class MarketParams :
10+ class MarketParams ( BaseParams ) :
1011 def __init__ (self ):
12+ super (MarketParams , self ).__init__ ()
1113 self ._market = None # 市场
1214 self ._sec_type = None # 交易品种
1315 self ._lang = None # 语言
@@ -346,8 +348,9 @@ def to_openapi_dict(self):
346348 return params
347349
348350
349- class SingleContractParams :
351+ class SingleContractParams ( BaseParams ) :
350352 def __init__ (self ):
353+ super (SingleContractParams , self ).__init__ ()
351354 self ._symbol = None
352355 self ._put_call = None # for option
353356 self ._expiry = None # for option and future
@@ -461,7 +464,7 @@ def to_openapi_dict(self):
461464 return params
462465
463466
464- class MultipleContractParams :
467+ class MultipleContractParams ( BaseParams ) :
465468 def __init__ (self ):
466469 super (MultipleContractParams , self ).__init__ ()
467470 self ._contracts = None # list of SingleQuoteParams
@@ -484,8 +487,9 @@ def to_openapi_dict(self):
484487 return params
485488
486489
487- class FutureExchangeParams :
490+ class FutureExchangeParams ( BaseParams ) :
488491 def __init__ (self ):
492+ super (FutureExchangeParams , self ).__init__ ()
489493 self ._exchange_code = None # 交易所
490494 self ._lang = None # 语言
491495
@@ -516,7 +520,7 @@ def to_openapi_dict(self):
516520 return params
517521
518522
519- class FutureTypeParams :
523+ class FutureTypeParams ( BaseParams ) :
520524 def __init__ (self ):
521525 self ._type = None # 期货品种
522526 self ._lang = None # 语言
@@ -548,8 +552,9 @@ def to_openapi_dict(self):
548552 return params
549553
550554
551- class FutureTradingTimeParams :
555+ class FutureTradingTimeParams ( BaseParams ) :
552556 def __init__ (self ):
557+ super (FutureTradingTimeParams , self ).__init__ ()
553558 self ._contract_code = None
554559 self ._trading_date = None
555560
@@ -674,8 +679,9 @@ def to_openapi_dict(self):
674679 return params
675680
676681
677- class DepthQuoteParams :
682+ class DepthQuoteParams ( BaseParams ) :
678683 def __init__ (self ):
684+ super (DepthQuoteParams , self ).__init__ ()
679685 self ._symbols = None
680686 self ._market = None
681687
0 commit comments