跳到主要内容

期权合约基础资料

期权合约基础资料提供单个合约详情与分页合约目录。

通用约定
  • Base URL:https://fuyao.aicubes.cn。
  • 必需请求头:X-api-key;认证与权限错误通过业务 code 表达。
  • 期权合约使用完整 thscode;接口返回统一 ApiResponse 信封。
  • Unix 时间戳均为毫秒;日期按 Asia/Shanghai 解释。金融数值与日期来源缺失时可为 null,列表无数据时返回 []。

期权合约详情​

GET /api/options/contracts/detail

MCP Tool:get_options_contracts_detail

请求参数​

参数类型必需默认值说明
thscodestring是—期权合约完整同花顺代码。

请求示例​

curl 'https://fuyao.aicubes.cn/api/options/contracts/detail?thscode=IO2601-C-4000.CFE' \
-H 'X-api-key: <your-api-key>'

响应示例​

{
"code": 0,
"message": "success",
"request_id": "request-id",
"data": {
"timestamp": 1789036800000,
"thscode": "IO2601-C-4000.CFE",
"ticker": "IO2601-C-4000",
"display_code": "IO2601-C-4000",
"name": "沪深300股指期权",
"variety_code": "IO",
"pinyin": null,
"list_date": "2026-01-01",
"end_date": "2026-01-16",
"last_trade_date": "2026-01-16",
"last_delivery_date": "2026-01-16",
"margin_rate": null,
"underlying_code": "IF2601",
"strike_price": 4000,
"exercise_style": "european",
"option_type": "call",
"trade_amount": 100
}
}

返回字段​

字段类型说明
timestamplong数据时间,毫秒时间戳。
thscode / ticker / display_codestring | null完整代码、纯代码与展示代码。
name / variety_code / pinyinstring | null合约名称、品种代码与拼音。
list_datestring | null合约上市日期;来源缺失时为 null。
end_datestring | null合约上市结束日期。
last_trade_date / last_delivery_datestring | null最后交易日与最后交割日;来源缺失时为 null。
margin_rate / strike_pricenumber | null保证金率与行权价。
trade_amountnumber | null合约交易单位数量。
underlying_codestring | null上游标的代码,不保证为规范 thscode。
exercise_stylestring | null行权方式:bermudan、american 或 european。
option_typestring | null期权方向:call 或 put。

期权合约基础信息列表​

GET /api/options/contracts/list

MCP Tool:get_options_contracts_list

从完整期权目录快照分页获取合约基础信息。

请求参数​

参数类型必需默认值说明
limitinteger否100单页条数,范围 1-1000。
offsetinteger否0分页偏移,最小为 0。

请求示例​

curl 'https://fuyao.aicubes.cn/api/options/contracts/list?limit=100&offset=0' \
-H 'X-api-key: <your-api-key>'

响应示例​

{
"code": 0,
"message": "success",
"request_id": "request-id",
"data": {
"timestamp": 1789036800000,
"total": 1,
"item": [
{
"thscode": "IO2601-C-4000.CFE",
"ticker": "IO2601-C-4000",
"name": "沪深300股指期权",
"exchange_code": "CFFEX",
"variety_code": "IO",
"list_date": "2026-01-01",
"end_date": "2026-01-16",
"last_trade_date": "2026-01-16",
"last_delivery_date": "2026-01-16"
}
]
}
}

返回字段​

字段类型说明
timestamplong数据时间,毫秒时间戳。
totalinteger合约总数。
item[]array合约基础信息列表。

响应 data.item[] 的每项包含 thscode、ticker、name、exchange_code、 variety_code、list_date、end_date、last_trade_date 与 last_delivery_date; 日期和来源缺失字段可为 null。