Weight: 5
Request Parameters
PARAMETER | TYPE | Req 'd | DESCRIPTION |
---|---|---|---|
startTime | STRING | Y | Start Time |
endTime | STRING | Y | End Time |
limit | STRING | Up to 500 | |
flowType | INTEGER | Value '1' (Trade, recent-7-day data) Value '2' (FEE, recent-7-day data) Value '32' (Funding FEE, recent-30-day data) Value '51' (USER_ACCOUNT_TRANSFER, recent-30-day data) Value '900' (CUSTODY_DEPOSIT, recent-30-day data) Value '904' (CUSTODY_WITHDRAW, recent-30-day data) | |
accountType | INTEGER | Value '1' Trading Account Record (Spot) Value '3' Trading Account Record (Contract) Value '5' Custody Account Record | |
timestamp | LONG | Y | Timestamp |
Response Content
PARAMETER | TYPE | Example values | DESCRIPTION |
---|---|---|---|
- | Object Array | Check Account transfer history | |
id | STRING | 1468775459672099840 | Unique ID of the transfer |
accountId | STRING | 1467298646903017216 | Account Number |
coin | STRING | USDC | Currency |
coinId | STRING | USDC | Currency ID |
coinName | STRING | USDC | Currency name |
flowTypeValue | INTEGER | 79 | Transfer Type value |
flowType | STRING | OPERATION_ACCOUNT_TRANSFER | Transfer name |
change | STRING (value) | 1000000 | Change |
total | STRING ([value) | 1000000 | Total |
created | STRING (decimal) | 1689856479058 | Create Timestamp |
Example how to use
Account Type | Account ID |
---|---|
Main Trading Account | 1649292498437183232 |
Custody Account | 1649292498437183235 |
Sub Trading Account | 1673782460192774144 |
Example 1: Transfer 10 USDT from Main Trading Account to Custody Account
POST https://api-glb.sim.hashkeydev.com/api/v1/account/assetTransfer?fromAccountId=1649292498437183232&toAccountId=1649292498437183235&coin=USDT&quantity=10&signature=7bbbdb853fb3c0743de5c7f905badf30b2f8715c6ef3059dd9e575cc4ba0be0f×tamp=1714557951154
Get account transaction history list Type = 51, accountType = 1. Only subject to master account API key, not available to sub account API key to query.
[
{
"id": "1676228025233055232",
"accountId": "1649292498437183232",
"coin": "USDT",
"coinId": "USDT",
"coinName": "USDT",
"flowTypeValue": 51,
"flowType": "USER_ACCOUNT_TRANSFER",
"flowName": "",
"change": "-10",
"total": "398026.95",
"created": "1714557952009"
}
]
Get account transaction history list Type = 51, accountType = 5. Only subject to master account API key, not available to sub account API key to query.
[
{
"id": "1676228025316941312",
"accountId": "1649292498437183235",
"coin": "USDT",
"coinId": "USDT",
"coinName": "USDT",
"flowTypeValue": 51,
"flowType": "USER_ACCOUNT_TRANSFER",
"flowName": "",
"change": "10",
"total": "25.05",
"created": "1714557952009"
}
]
Example 2: Transfer 15 USD from Main Trading Account to Sub Trading Account
POST https://api-glb.sim.hashkeydev.com/api/v1/account/assetTransfer?fromAccountId=1649292498437183232&toAccountId=1673782460192774144&coin=USDT&quantity=15&signature=50e919a9d9937f663d00a267d6121083dcda1f1faf777c27dcf08b3fc50fa3da×tamp=1714559004249
Get account transaction history list Type = 51, accountType = 1 with master account API key
[
{
"id": "1676236860475710976",
"accountId": "1649292498437183232",
"coin": "USDT",
"coinId": "USDT",
"coinName": "USDT",
"flowTypeValue": 51,
"flowType": "USER_ACCOUNT_TRANSFER",
"flowName": "",
"change": "-15",
"total": "398011.95",
"created": "1714559005252"
}
]
Get account transaction history list Type = 51, accountType = 1 with sub account API key
[
{
"id": "1676236860517654016",
"accountId": "1673782460192774144",
"coin": "USDT",
"coinId": "USDT",
"coinName": "USDT",
"flowTypeValue": 51,
"flowType": "USER_ACCOUNT_TRANSFER",
"flowName": "",
"change": "15",
"total": "100003",
"created": "1714559005252"
}
]
Type = 32 (Funding Fee)
Get account transaction history list Type = 32
[
{
"id": "1781831045596849920",
"accountId": "1700793761779449856",
"coin": "RENDER",
"coinId": "RENDER",
"coinName": "RENDER",
"flowTypeValue": 2,
"flowType": "FEE",
"flowName": "",
"change": "-0.000096",
"total": "3.076304",
"created": "1727146812992",
"symbol": "RENDERUSDT"
},
{
"id": "1781831045387134720",
"accountId": "1700793761779449856",
"coin": "RENDER",
"coinId": "RENDER",
"coinName": "RENDER",
"flowTypeValue": 2,
"flowType": "FEE",
"flowName": "",
"change": "-0.0036",
"total": "2.9964",
"created": "1727146812992",
"symbol": "RENDERUSDT"
},
{
"id": "1781831045613627136",
"accountId": "1700793761779449856",
"coin": "USDT",
"coinId": "USDT",
"coinName": "USDT",
"flowTypeValue": 1,
"flowType": "TRADE",
"flowName": "",
"change": "-0.51864",
"total": "32.0353805",
"created": "1727146812992",
"symbol": "RENDERUSDT"
},
{
"id": "1781831045588461312",
"accountId": "1700793761779449856",
"coin": "RENDER",
"coinId": "RENDER",
"coinName": "RENDER",
"flowTypeValue": 1,
"flowType": "TRADE",
"flowName": "",
"change": "0.08",
"total": "3.0764",
"created": "1727146812992",
"symbol": "RENDERUSDT"
},
{
"id": "1781831045395523328",
"accountId": "1700793761779449856",
"coin": "USDT",
"coinId": "USDT",
"coinName": "USDT",
"flowTypeValue": 1,
"flowType": "TRADE",
"flowName": "",
"change": "-19.446",
"total": "32.5540205",
"created": "1727146812992",
"symbol": "RENDERUSDT"
},
{
"id": "1781831045378746114",
"accountId": "1700793761779449856",
"coin": "RENDER",
"coinId": "RENDER",
"coinName": "RENDER",
"flowTypeValue": 1,
"flowType": "TRADE",
"flowName": "",
"change": "3",
"total": "3",
"created": "1727146812992",
"symbol": "RENDERUSDT"
}
]