Skip to content

Commit 4e4d076

Browse files
committed
contract etf attr
1 parent 7888e5a commit 4e4d076

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 2.2.4 (2022-12-12)
2+
3+
14
## 2.2.4 (2022-12-09)
25
### new
36
- 资金流接口 `QuoteClient.get_capital_flow`

tigeropen/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
55
@author: gaoan
66
"""
7-
__VERSION__ = '2.2.4'
7+
__VERSION__ = '2.2.5'

tigeropen/trade/domain/contract.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ def __init__(self, symbol=None, currency=None, contract_id=None, sec_type=None,
1616
long_maintenance_margin=None, contract_month=None, identifier=None, primary_exchange=None,
1717
market=None, min_tick=None, trading_class=None, status=None, continuous=None, trade=None,
1818
marginable=None, close_only=None,
19-
last_trading_date=None, first_notice_date=None, last_bidding_close_time=None, tick_sizes=None):
19+
last_trading_date=None, first_notice_date=None, last_bidding_close_time=None, tick_sizes=None,
20+
is_etf=None, etf_leverage=None):
2021
self.contract_id = contract_id
2122
self.symbol = symbol
2223
self.currency = get_enum_value(currency)
@@ -77,6 +78,10 @@ def __init__(self, symbol=None, currency=None, contract_id=None, sec_type=None,
7778
self.first_notice_date = first_notice_date
7879
# 期货专有,竞价截止时间
7980
self.last_bidding_close_time = last_bidding_close_time
81+
# 是否是ETF
82+
self.is_etf = is_etf
83+
# ETF杠杆倍数
84+
self.etf_leverage = etf_leverage
8085

8186
@property
8287
def right(self):

0 commit comments

Comments
 (0)