持仓查询(query_position) 在线调试
境外期货持仓查询
网关地址
沙箱环境调用地址: | https://sandbox.hscloud.cn |
数据核查类生产调用地址: | https://api.hscloud.cn |
其余生产调用地址: | https://open.hscloud.cn |
URL
https://sandbox.hscloud.cn/ovfutu/v1/query_position |
---|
是否需要业务登录
否 |
---|
HTTP请求方式
POST |
---|
支持格式
JSON |
---|
请求参数
参数名 | 类型 | 必填 | 最大长度 | 默认值 | 中文名 | 描述 |
---|---|---|---|---|---|---|
user_token | String | 是 | 255 | 通讯会话 |
|
|
fund_account | String | 是 | 18 | 资金账号 |
|
|
query_mode | String | 否 | 1 | '0'--明细 | 查询模式 |
'0'-明细 '1'-汇总
|
返回参数
参数名 | 类型 | 最大长度 | 默认值 | 中文名 | 描述 |
---|---|---|---|---|---|
futu_exch_type | String | 8 | 交易类别 |
交易类别(期货)
【限制字典子项:COMEX-纽约商业交易所 |
|
commodity_type | String | 10 | 品种代码类别 | ||
contract_code | String | 32 | 合约代码 |
YYmm
|
|
options_type | String | 1 | 期权类型 | ||
strike_price | Float | 10 | 执行价 |
|
|
entrust_bs | String | 1 | 买卖方向 | ||
current_amount | Integer | 10 | 当前数量 |
|
|
cost_price | Float | 19.4 | 开仓均价 |
|
|
currency_code | String | 16 | 币种 | ||
amount_per_hand | Integer | 10 | 合约乘数 |
|
|
futu_last_price | Float | 19.4 | 最新价 |
最新价(期货)
|
|
hold_balance | Float | 19.4 | 持仓金额 |
|