Query Sub Account Transfer History(SPOT)
HTTP Request
GET /sapi/v1/broker/transfer
Request Parameters
Name | Type | Mandatory | Description |
---|---|---|---|
fromId | STRING | NO | |
toId | STRING | NO | |
clientTranId | STRING | NO | client transfer id |
showAllStatus | ENUM | NO | true or false, default: false |
startTime | LONG | NO | |
endTime | LONG | NO | |
page | INT | NO | |
limit | INT | NO | default 500, max 500 |
recvWindow | LONG | NO | |
timestamp | LONG | YES |
Caution:
- If showAllStatus is true, the status in response will show four types: INIT,PROCESS,SUCCESS,FAILURE.
- If showAllStatus is false, the status in response will show three types: INIT,PROCESS,SUCCESS.
- Either fromId or toId must be sent. Return fromId equal master account by default.
Query scope is limited to 100 days:
- Both startTime and endTime are provided: If it exceeds, the endTime will be re-calculated 100 days after the startTime.
- Neither startTime nor endTime are provided: Calculate 100 days before today.
- endTime is not provided: Calculate 100 days after startTime.
- startTime is not provided: Calculate 100 days before endTime.
Example Response
[
{
"fromId":"1",
"toId":"2",
"asset":"BTC",
"qty":"1",
"time":1544433328000,
"txnId":"2966662589",
"clientTranId":"abc",
"status": "SUCCESS" // Status Type:INIT,PROCESS,SUCCESS
},
{
"fromId":"1",
"toId":"2",
"asset":"ETH",
"qty":"2",
"time":1544433328000,
"txnId":"296666999",
"clientTranId":"",
"status": "SUCCESS"
}
]