历史证券成交查询(businesshis_qry) 在线调试

历史数据获取:通过查询的开始时间和结束时间,可支持30天的历史记录查询。该接口获得的数据可对该账户做投资分析。

网关地址

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

URL

https://sandbox.hscloud.cn/secu/v1/businesshis_qry

是否需要业务登录

HTTP请求方式

GET,POST

请求参数

参数名 类型 必填 最大长度 默认值 中文名 描述
sort_direction String 0 返回排序方式
’0’-正序 ’1’-倒序 默认不送时为’0’-正序
start_date String 8 开始日期
示例:20200831
end_date String 8 截止日期
示例:20200831
position_str String 100 定位串
空格,表示取第一页
request_num Integer 10 50 请求行数

返回参数

参数名 类型 最大长度 默认值 中文名 描述
init_date Integer 8 交易日期
serial_no Integer 8 流水序号
exchange_type String 4 交易类别

【限制字典子项:9-特转A
2-深圳
A-特转B
D-沪B
H-深B
1-上海】

数据字典(243)

stock_account String 11 证券账号
stock_code String 16 证券代码
stock_name String 32 证券名称
entrust_bs String 1 买卖方向
business_price Float 11.4 成交价格
business_time Integer 8 成交时间
entrust_no Integer 8 委托编号
occur_amount Integer 10 发生数量
business_balance Float 16.2 成交金额
position_str String 100 定位串

正确返回示例

 {
    "data": [
        {
            "entrust_bs": "1",
            "init_date": "20200827",
            "business_name": "",
            "business_time": "133501",
            "stock_name": "恒生电子",
            "business_price": "108.6900",
            "exchange_type": "1",
            "stock_account": "A070960117",
            "entrust_no": "9",
            "position_str": "020200827000220000000007",
            "business_balance": "10869.00",
            "serial_no": "7",
            "stock_code": "600570",
            "occur_amount": "100"
        }
    ]
}