match_main_contract
Retrieve the main futures contract for a given exchange (CZCE, DCE, SHFE, CFFEX, GFEX) from Sina Finance, returning the active contract as a string.
Instructions
新浪财经-期货-主力合约 https://vip.stock.finance.sina.com.cn/quotes_service/view/qihuohangqing.html#titlePos_1 :param symbol: choice of {'czce', 'dce', 'shfe', 'cffex', 'gfex'} :type symbol: str :return: 主力合约的字符串 :rtype: str
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | No | cffex |