查询期货会员建仓过程

SkillDev tools

Queries a single futures member's position changes for a specified contract/date range, and estimates daily and cumulative profit/loss combined with contract quotes. Use when the user mentions "会员建仓过程", "期货会员持仓盈亏", "会员净持仓变化", or "member build process". Supports filtering by exchange/member/contract,

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the 查询期货会员建仓过程 skill

What this skill tells your AI

The instructions your AI receives, as published by ftshare-lab/ftshare-skill in ftshare-market-data/sub-skills/member-build-process/SKILL.md and read by ahel’s review.

接口说明

项目说明
接口名称查询期货会员建仓过程
外部接口GET /api/v2/market/data/member-build-process
请求方式GET
适用场景查询单个期货会员在指定合约和日期区间内的持仓变化,并结合合约行情估算每日及累计盈亏

请求参数

参数名类型是否必填描述取值示例备注
exchangestring交易所代码DCESHFE/DCE/CZCE
member_namestring会员名称永安期货中文,URL 编码后传入
instrument_idstring合约代码a2609-
start_datestring起始日期20260701YYYYMMDD 或 YYYY-MM-DD,默认 20260101
end_datestring结束日期20260721YYYYMMDD 或 YYYY-MM-DD,默认当天
contract_multiplierfloat合约乘数10不传时按品种默认表推导
pageint页码1默认 1
page_sizeint每页条数50默认 50,最大 200

执行方式

# 查某会员某合约某区间建仓过程
python <RUN_PY> member-build-process --exchange DCE --member_name 永安期货 --instrument_id a2609 --start_date 20260701 --end_date 20260721
# 指定合约乘数
python <RUN_PY> member-build-process --exchange SHFE --member_name 永安期货 --instrument_id rb2601 --contract_multiplier 10 --all

<RUN_PY> 为主 SKILL.md 同级的 run.py 绝对路径。

响应结构

返回 code/message/data,记录位于 data.records

{
  "code": 200,
  "message": "success",
  "data": {
    "pageNum": 1, "pageSize": 50, "total": 15, "pages": 1,
    "records": [
      {
        "trade_date": "2026-07-21", "exchange": "DCE", "instrument_id": "a2609",
        "product_name": "豆一", "member_name": "永安期货",
        "volume_rank": 1, "value": 10000, "change": 100,
        "long_rank": 2, "long_value": 5000, "long_change": 200,
        "short_rank": null, "short_value": null, "short_change": null,
        "net_position": 5000, "observed_side": "long",
        "open_price": "4200", "high_price": "4220", "low_price": "4180", "close_price": "4210",
        "settlement_price": "4205", "pre_settlement_price": "4198",
        "volume": "12345", "open_interest": "45678", "open_interest_change": "-100",
        "contract_multiplier": 10,
        "estimated_net_change": 100,
        "estimated_position_cost": 42000000.0,
        "estimated_daily_pnl": 5000.0, "estimated_daily_pnl_wan": 0.5,
        "estimated_cumulative_pnl": 25000.0, "estimated_cumulative_pnl_wan": 2.5
      }
    ]
  }
}

records 字段

字段类型说明
trade_datestring交易日
exchange / instrument_id / product_name / member_namestring交易所 / 合约代码 / 品种名称 / 会员名称
volume_rank / value / changeint/null成交排名 / 成交量 / 变化
long_rank / long_value / long_changeint/null多头排名 / 持仓量 / 变化
short_rank / short_value / short_changeint/null空头排名 / 持仓量 / 变化
net_positionint/null净持仓
observed_sidestring观察方向
open_price / high_price / low_price / close_pricestring/null当日开高低收
settlement_price / pre_settlement_pricestring/null结算价 / 前结算价
volume / open_interest / open_interest_changestring/null合约成交量 / 持仓量 / 持仓量变化
contract_multiplierfloat/null合约乘数
estimated_net_changeint/null估算净持仓变化
estimated_position_costfloat/null估算持仓成本
estimated_daily_pnl / estimated_daily_pnl_wanfloat/null估算当日盈亏 / 万元
estimated_cumulative_pnl / estimated_cumulative_pnl_wanfloat/null估算累计盈亏 / 万元

注意事项

  • exchange/member_name/instrument_id 三者为必填。
  • contract_multiplier 不传时按品种默认表推导;不同品种乘数不同,影响盈亏估算结果。
  • 多数价格/数量字段以字符串返回,估算字段为 float。
  • page_size 最大 200。

Signals

GitHub stars
64
Forks
13
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
member-build-process
Source
github.com/ftshare-lab/ftshare-skill