Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KQ.m@CZCE.RI的主力合约错误 #387

Open
baoshuang opened this issue Sep 15, 2020 · 1 comment
Open

KQ.m@CZCE.RI的主力合约错误 #387

baoshuang opened this issue Sep 15, 2020 · 1 comment

Comments

@baoshuang
Copy link

In [3]: q=api.get_quote("KQ.m@CZCE.RI")

In [4]: q
Out[4]: <tqsdk.objs.Quote object at 0x0000025122AC7CC8>, D({'datetime': '2020-09-14 14:59:59.000002', 'ask_price1': nan, 'ask_volume1': 0, 'bid_price1': nan, 'bid_volume1': 0, 'ask_price2': nan, 'ask_volume2': 0, 'bid_price2': nan, 'bid_volume2': 0, 'ask_price3': nan, 'ask_volume3': 0, 'bid_price3': nan, 'bid_volume3': 0, 'ask_price4': nan, 'ask_volume4': 0, 'bid_price4': nan, 'bid_volume4': 0, 'ask_price5': nan, 'ask_volume5': 0, 'bid_price5': nan, 'bid_volume5': 0, 'last_price': nan, 'highest': nan, 'lowest': nan, 'open': nan, 'close': nan, 'average': nan, 'volume': 0, 'amount': 0.0, 'open_interest': 0, 'settlement': 2902.0, 'upper_limit': 3048.0, 'lower_limit': 2756.0, 'pre_open_interest': 0, 'pre_settlement': 2902.0, 'pre_close': 2902.0, 'price_tick': 1, 'price_decs': 0, 'volume_multiple': 20, 'max_limit_order_volume': 0, 'max_market_order_volume': 0, 'min_limit_order_volume': 0, 'min_market_order_volume': 0, 'underlying_symbol': 'CZCE.RI009', 'strike_price': nan, 'ins_class': 'FUTURE_CONT', 'instrument_id': 'KQ.m@CZCE.RI', 'expired': False, 'trading_time': <tqsdk.objs.TradingTime object at 0x0000025122AC77C8>, D({'day': [], 'night': []}), 'expire_datetime': nan, 'delivery_month': 0, 'delivery_year': 0, 'option_class': '', 'product_id': ''})

In [5]: q.underlying_symbol
Out[5]: 'CZCE.RI009'

In [6]: ri009=api.get_quote("CZCE.RI009")
In [8]: ri009.expired
Out[8]: True

@baoshuang
Copy link
Author

文华当前RI主力是RI2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant