跳到主要内容

查询所有子账户划转记录

类型: GET

描述: /v4/user/account/broker-sub/transfer-records

使用经纪商母账户的 API Key 签名调用,查询经纪商名下一个或全部子账户的划转记录。

参数

名称类型是否必填默认值描述取值范围
subAccountIdlong-子账户 id;不传则查询全部子账户经纪商名下子账户
currencyIdlong-币种 id有效币种 id
startTimelong-开始时间毫秒时间戳
endTimelong-结束时间毫秒时间戳
cursorlong-上一页返回的 nextCursor,首页不传-
limitint20每页条数1-100

记录按划转流水号 id 倒序返回。directionin 表示转入子账户,out 表示从子账户转出;billType 中 17 表示转入,18 表示转出。

请求示例

curl -X GET '{baseUrl}/v4/user/account/broker-sub/transfer-records?subAccountId=2354789012345&limit=20' \
-H 'validate-algorithms: HmacSHA256' \
-H 'validate-appkey: {accessKey}' \
-H 'validate-recvwindow: 60000' \
-H 'validate-timestamp: {timestamp}' \
-H 'validate-signature: {signature}'

响应示例

Response
{
"rc": 0,
"mc": "SUCCESS",
"ma": [],
"result": {
"items": [
{
"id": 88761234500,
"subAccountId": 2354789012345,
"accountId": 2354700000001,
"toAccountId": 2354789012345,
"billType": 17,
"currencyId": 11,
"amount": "100.00000000",
"direction": "in",
"createTime": 1784639157333
}
],
"hasNext": false,
"nextCursor": null
},
"success": true
}