期货持仓查询(futuposition_qry) 在线调试

期货持仓查询

网关地址

沙箱环境调用地址: https://sandbox.hscloud.cn
数据核查类生产调用地址: https://api.hscloud.cn
仿真业务接口生产调用地址: https://vopen.hscloud.cn
其余生产调用地址: https://open.hscloud.cn

URL

https://sandbox.hscloud.cn/futu/v1/futuposition_qry

是否需要业务登录

HTTP请求方式

GET,POST

请求参数

参数名 类型 必填 最大长度 默认值 中文名 描述
futu_exch_type String 4 交易类别
futures_account String 12 交易编码
futu_code String 30 合约代码
entrust_bs String 1 买卖方向
sort_direction String 1 返回排序方式
0:正序;1:倒序
query_mode String 1 查询模式
0 过滤持仓为0的数据 1 不过滤持仓为0的数据
request_num Integer 10 50 请求行数
hedge_flag String 1 区分投机套保标志
futu_product_type String 1 产品类别
暂不支持

数据字典(1137)

position_str String 100 定位串

返回参数

参数名 类型 最大长度 默认值 中文名 描述
futu_exch_type String 4 交易类别
futures_account String 12 交易编码
futu_code String 30 合约代码
money_type String 3 币种类别

【限制字典子项:0-人民币
2-港 币
1-美 元】

数据字典(122)

entrust_bs String 1 买卖方向
begin_amount Integer 10 期初数量
enable_amount Integer 10 可用数量
real_enable_amount Integer 10 当日开仓可用数量
hold_income_float Float 16.2 持仓浮动盈亏
hold_income Float 16.2 期货盯市盈亏
hold_margin Float 16.2 持仓保证金
average_price Float 12.6 平均价
futu_last_price Float 12.6 最新价格
hedge_type String 1 投机/套保类型
real_amount Integer 10 成交数量
real_open_balance Float 16.2 回报开仓金额
old_open_balance Float 16.2 老仓持仓成交额
real_current_amount Float 16.2 今总持仓
old_current_amount Integer 10 老仓持仓数量
futu_product_type String 1 产品类别
期权产品使用

数据字典(1137)

position_str String 100 定位串

正确返回示例

{
    "data": [
        {
            "hold_income": "-900.00",
            "old_current_amount": "2.00",
            "futu_name": "苹果010",
            "futu_exch_type": "F1",
            "position_str": "0000000001",
            "old_open_balance": "136370.00",
            "entrust_bs": "1",
            "hedge_type": "0",
            "futu_product_type": "1",
            "average_price": "6818.500000",
            "fopt_type": "",
            "exercise_price": "",
            "money_type": "0",
            "begin_amount": "2.00",
            "futu_code": "AP010",
            "hold_income_float": "-3950.00",
            "real_current_amount": "0",
            "real_amount": "2.00",
            "futures_account": "80003989",
            "underlying_code": "",
            "futu_last_price": "6621.000000",
            "real_enable_amount": "0",
            "real_open_balance": "0",
            "enable_amount": "2.00",
            "hold_margin": "21331.20"
        }
   ]
}