Skip to content

Commit f3be4ac

Browse files
committed
remove inhritance of object
1 parent 1ea1d9e commit f3be4ac

File tree

18 files changed

+42
-42
lines changed

18 files changed

+42
-42
lines changed

tigeropen/common/response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"""
77

88

9-
class TigerResponse(object):
9+
class TigerResponse:
1010
def __init__(self):
1111
self.code = None
1212
self.message = None

tigeropen/examples/tinyquant/data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
COLUMNS = ['symbol', 'time', 'open', 'high', 'low', 'close', 'volume']
1010

1111

12-
class BarManager(object):
12+
class BarManager:
1313
def __init__(self):
1414
self.curr_bar = None
1515
self.data_bar = pd.DataFrame(columns=COLUMNS)
@@ -18,7 +18,7 @@ def __init__(self):
1818
self.last_timestamp = None
1919

2020

21-
class BarUtil(object):
21+
class BarUtil:
2222
def __init__(self):
2323
self.bar_manager = {}
2424
self.timezone = pytz.timezone(MARKET.TIMEZONE)

tigeropen/fundamental/request/model.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22

33

4-
class FinancialDailyParams(object):
4+
class FinancialDailyParams:
55
def __init__(self):
66
self._symbols = None
77
self._market = None
@@ -82,7 +82,7 @@ def to_openapi_dict(self):
8282
return params
8383

8484

85-
class FinancialReportParams(object):
85+
class FinancialReportParams:
8686
def __init__(self):
8787
self._symbols = None
8888
self._market = None
@@ -139,7 +139,7 @@ def to_openapi_dict(self):
139139
return params
140140

141141

142-
class CorporateActionParams(object):
142+
class CorporateActionParams:
143143
def __init__(self):
144144
self._symbols = None
145145
self._market = None
@@ -208,7 +208,7 @@ def to_openapi_dict(self):
208208
return params
209209

210210

211-
class IndustryParams(object):
211+
class IndustryParams:
212212
def __init__(self):
213213
self._industry_level = None
214214
self._industry_id = None

tigeropen/quote/domain/bar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"""
77

88

9-
class Bar(object):
9+
class Bar:
1010
def __init__(self):
1111
self.time = None
1212
self.open = None

tigeropen/quote/domain/market_status.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"""
77

88

9-
class MarketStatus(object):
9+
class MarketStatus:
1010
def __init__(self, market, status, open_time, trading_status):
1111
self.market = market
1212
self.status = status

tigeropen/quote/domain/quote_brief.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"""
77

88

9-
class HourTrading(object):
9+
class HourTrading:
1010
def __init__(self):
1111
self.trading_session = None # 盘前/盘后
1212
self.latest_price = None # 最新价
@@ -26,7 +26,7 @@ def __repr__(self):
2626
return "HourTrading(%s)" % self.__dict__
2727

2828

29-
class QuoteBrief(object):
29+
class QuoteBrief:
3030
def __init__(self):
3131
# contract info
3232
self.symbol = None # 股票代号

tigeropen/quote/domain/tick.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"""
77

88

9-
class TradeTick(object):
9+
class TradeTick:
1010
def __init__(self):
1111
self.index = None
1212
self.timestamp = None

tigeropen/quote/domain/timeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"""
77

88

9-
class Timeline(object):
9+
class Timeline:
1010
def __init__(self):
1111
self.latest_time = None
1212
self.price = None

tigeropen/quote/request/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from tigeropen.common.consts import OPEN_API_SDK_VERSION
1111

1212

13-
class OpenApiRequest(object):
13+
class OpenApiRequest:
1414
def __init__(self, method, biz_model=None):
1515
self._method = method
1616
self._biz_model = biz_model

tigeropen/quote/request/model.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"""
77

88

9-
class MarketParams(object):
9+
class MarketParams:
1010
def __init__(self):
1111
self._market = None # 市场
1212
self._sec_type = None # 交易品种
@@ -346,7 +346,7 @@ def to_openapi_dict(self):
346346
return params
347347

348348

349-
class SingleContractParams(object):
349+
class SingleContractParams:
350350
def __init__(self):
351351
self._symbol = None
352352
self._put_call = None # for option
@@ -461,7 +461,7 @@ def to_openapi_dict(self):
461461
return params
462462

463463

464-
class MultipleContractParams(object):
464+
class MultipleContractParams:
465465
def __init__(self):
466466
super(MultipleContractParams, self).__init__()
467467
self._contracts = None # list of SingleQuoteParams
@@ -484,7 +484,7 @@ def to_openapi_dict(self):
484484
return params
485485

486486

487-
class FutureExchangeParams(object):
487+
class FutureExchangeParams:
488488
def __init__(self):
489489
self._exchange_code = None # 交易所
490490
self._lang = None # 语言
@@ -516,7 +516,7 @@ def to_openapi_dict(self):
516516
return params
517517

518518

519-
class FutureTypeParams(object):
519+
class FutureTypeParams:
520520
def __init__(self):
521521
self._type = None # 期货品种
522522
self._lang = None # 语言
@@ -548,7 +548,7 @@ def to_openapi_dict(self):
548548
return params
549549

550550

551-
class FutureTradingTimeParams(object):
551+
class FutureTradingTimeParams:
552552
def __init__(self):
553553
self._contract_code = None
554554
self._trading_date = None
@@ -674,7 +674,7 @@ def to_openapi_dict(self):
674674
return params
675675

676676

677-
class DepthQuoteParams(object):
677+
class DepthQuoteParams:
678678
def __init__(self):
679679
self._symbols = None
680680
self._market = None

0 commit comments

Comments
 (0)