HTTP · Account & wallet

Main ↔ Sub-account Transfers

Returns transfers between the main account and its sub-accounts.

GEThttps://api.koinsayang.com/api/v2/spot/account/sub-main-trans-record

Request parameters

NameTypeRequiredDescription
coin
query
stringOptionalCoin, e.g. USDT
subUid
query
stringOptionalSub-account UID
role
query
stringOptionalRole; see enumeration values: role
clientOid
query
stringOptionalClient order ID
startTime
query
stringOptionalQuery start time
endTime
query
stringOptionalQuery end time
idLessThan
query
stringOptionalLast ID from the previous query
limit
query
stringOptionalNumber of records, default 20, max 20

Response fields

FieldTypeDescription
coinstringCoin
statusstringTransaction status: successful
toTypestringTransfer account type
fromTypestringOutgoing transfer account type
sizestringTransaction amount
tsstringTrade time
clientOidstringClient order ID
transferIdstringTransfer ID
fromUserIdstringTransferring account
toUserIdstringReceiving account

Response example

200 · application/json
{
"code": "00000",
"msg": "success",
"requestTime": 1766135655171,
"data": [
{
"coin": "BTC",
"status": "Successful",
"toType": 2,
"fromType": 1,
"size": "1000000.00000000",
"ts": "1765975998859",
"clientOid": "f4e7e520-324c-49c2-9688-0ebd124096bf",
"transferId": "338",
"fromUserId": "1009178902657",
"toUserId": "1009178902657"
}
]
}