证券持仓查询(stockposition_qry) 在线调试
账户中的持仓证券数据
网关地址
沙箱环境调用地址: | https://sandbox.hscloud.cn |
数据核查类生产调用地址: | https://api.hscloud.cn |
仿真业务接口生产调用地址: | https://vopen.hscloud.cn |
其余生产调用地址: | https://open.hscloud.cn |
URL
https://sandbox.hscloud.cn/secu/v1/stockposition_qry |
---|
是否需要业务登录
是 |
---|
HTTP请求方式
GET,POST |
---|
请求参数
参数名 | 类型 | 必填 | 最大长度 | 默认值 | 中文名 | 描述 |
---|---|---|---|---|---|---|
exchange_type | String | 否 | 4 | 交易类别 | 【限制字典子项:A-特转B |
|
stock_account | String | 否 | 11 | 证券账号 |
空,表示查所有
|
|
stock_code | String | 否 | 16 | 证券代码 |
空,表示查所有
|
|
position_str | String | 否 | 100 | 定位串 |
空格,表示取第一页
|
|
request_num | Integer | 否 | 10 | 50 | 请求行数 |
返回参数
参数名 | 类型 | 最大长度 | 默认值 | 中文名 | 描述 |
---|---|---|---|---|---|
exchange_type | String | 4 | 交易类别 |
【限制字典子项:A-特转B |
|
stock_account | String | 11 | 证券账号 |
|
|
stock_code | String | 16 | 证券代码 |
|
|
stock_name | String | 32 | 证券名称 |
|
|
current_amount | Integer | 10 | 当前数量 |
|
|
enable_amount | Integer | 10 | 可用数量 |
|
|
cost_price | Float | 11.4 | 成本价 |
|
|
income_balance | Float | 16.2 | 盈亏金额 |
|
|
position_str | String | 100 | 定位串 |
|
|
money_type | String | 3 | 币种类别 |
【限制字典子项:2-港 币 |
正确返回示例
{ "data":[ { "market_value":"10848.00", "stock_name":"恒生电子", "money_type":"0", "exchange_type":"1", "stock_account":"A070960117", "current_amount":"100", "frozen_amount":"0", "position_str":"0002200000000007096011700010000000000A070960117600570", "income_balance":"-28.19", "stock_code":"600570", "enable_amount":"0", "last_price":"108.4800", "cost_price":"108.762" } ] }