证券持仓查询(stockposition_qry) 在线调试

账户中的持仓证券数据

网关地址

沙箱环境调用地址: https://sandbox.hscloud.cn
数据核查类生产调用地址: https://api.hscloud.cn
其余生产调用地址: https://open.hscloud.cn

URL

https://sandbox.hscloud.cn/hk/v1/stockposition_qry

是否需要业务登录

HTTP请求方式

GET,POST

支持格式

JSON

请求参数

参数名 类型 必填 最大长度 默认值 中文名 描述
exchange_type String 4 交易类别

【限制字典子项:K-香港市场】

数据字典(243)

stock_account String 11 证券账号
stock_code String 16 证券代码
query_direction String 1 1 查询方向
0倒序,1顺序(默认倒序)
query_mode String 1 查询模式
0 明细 1 汇总
request_num Integer 10 请求行数
position_str String 100 定位串

返回参数

参数名 类型 最大长度 默认值 中文名 描述
stock_name_gb String 32 股票名称[简体]
exchange_type String 4 交易类别

【限制字典子项:K-香港市场】

数据字典(243)

stock_account String 11 证券账号
stock_code String 16 证券代码
stock_name String 32 证券名称
current_amount Integer 10 当前数量
cost_price Float 11.4 成本价
enable_amount Integer 10 可用数量
market_value Float 16.2 证券市值
uncome_sell_amount Integer 10 未回卖出数量
uncome_buy_amount Integer 10 未回买入数量
real_buy_amount Integer 10 回报买入数量
real_sell_amount Integer 10 回报卖出数量
hand_flag String 1 手标志
money_type String 3 币种类别

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

数据字典(122)

margin_balance Float 16.2 履约金
margin_ratio Float 16.4 履约保障比
av_buy_price Float 11.4 买入均价
keep_cost_price Float 11.4 保本价
close_price Float 11.4 昨收盘
income_balance Float 16.2 盈亏金额
position_str String 100 定位串

正确返回示例

    
提交工单

提交成功

确定