查询资金流水
查询资金流水
描述
该接口用于获取资金流入/流出方向、资金类别、资金金额、发生时间、关联股票代码和资金流水说明信息。
HTTP请求
- GET /api/v3/stockplus/asset/cash-flow
- 权限: 统一账户管理权限(只读)
请求示例
curl "https://api.bitget.com/api/v3/stockplus/asset/cash-flow?startTime=1650037563&endTime=1650747581" \
-H "ACCESS-KEY:your apiKey" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:zh-CN" \
-H "Content-Type: application/json"
请求参数
| 参数名 | 参数类型 | 是否必须 | 描述 |
|---|---|---|---|
| startTime | Number | 是 | 开始时间,时间戳(秒),例如:1650037563 |
| endTime | Number | 是 | 结束时间,时间戳(秒),例如:1650747581 |
| businessType | String | 否 | 资金类别Cash - 现金Stock - 股票Fund - 基金 |
| symbol | String | 否 | 股票代码,例如:AAPL.US |
| page | Number | 否 | 起始页码。默认:1。范围:>=1 |
| size | Number | 否 | 每页条数。默认:50。范围:1~10000 |
返回示例
{
"code": "00000",
"msg": "success",
"requestTime": 1740000000000,
"data": {
"list": [
{
"transactionFlowName": "买入 AAPL.US",
"direction": "Out",
"businessType": "Unknown",
"balance": -1500.00,
"currency": "USD",
"businessTime": "2024-12-16T10:00:00Z",
"symbol": "AAPL.US",
"description": "买入10股AAPL.US"
},
{
"transactionFlowName": "Deposit Cash",
"direction": "In",
"businessType": "Unknown",
"balance": 100000.00,
"currency": "USD",
"businessTime": "2024-12-15T06:10:57Z",
"symbol": null,
"description": ""
}
]
}
}
返回参数
| 返回字段 | 参数类型 | 字段说明 |
|---|---|---|
| list | List<Object> | 资金流水信息 |
| > transactionFlowName | String | 流水名称 |
| > direction | String | 方向In - 流入Out - 流出 |
| > businessType | String | 资金类别Cash - 现金Stock - 股票Fund - 基金 |
| > balance | Number | 金额 |
| > currency | String | 币种 |
| > businessTime | String | 业务时间(ISO 8601) |
| > symbol | String | 关联股票代码(可能为 null) |
| > description | String | 资金流水说明(可能为空字符串) |