Skip to content

Commit 1941a55

Browse files
committed
Merge branch 'feature_contract_etf' into 'dev'
Feature contract etf See merge request server/openapi/openapi-python-sdk!145
2 parents 1fe617e + 317f845 commit 1941a55

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
## 2.2.5 (2022-12-12)
2+
### New
3+
- `TradeClient.get_contract` 返回的合约对象 `tigeropen.trade.domain.contract.Contract` 新增属性: `is_etf`, `etf_leverage`
4+
5+
16
## 2.2.4 (2022-12-09)
2-
### new
7+
### New
38
- 资金流接口 `QuoteClient.get_capital_flow`
49
- 资金分布接口 `QuoteClient.get_capital_distribution`
510
- 港股经纪商接口 `QuoteClient.get_stock_broker`

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)