API Reference

Get Account Transaction History List

Weight: 5

Request Parameters

PARAMETERTYPEReq 'dDESCRIPTION
startTimeSTRINGYStart Time
endTimeSTRINGYEnd Time
limitSTRINGUp to 500
flowTypeINTEGERValue '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)
accountTypeINTEGERValue '1' Trading Account Record (Spot)
Value '3' Trading Account Record (Contract)
Value '5' Custody Account Record
timestampLONGYTimestamp

Response Content


PARAMETERTYPEExample valuesDESCRIPTION
-Object ArrayCheck Account transfer history
idSTRING1468775459672099840Unique ID of the transfer
accountIdSTRING1467298646903017216Account Number
coinSTRINGUSDCCurrency
coinIdSTRINGUSDCCurrency ID
coinNameSTRINGUSDCCurrency name
flowTypeValueINTEGER79Transfer Type value
flowTypeSTRINGOPERATION_ACCOUNT_TRANSFERTransfer name
changeSTRING (value)1000000Change
totalSTRING ([value)1000000Total
createdSTRING (decimal)1689856479058Create Timestamp

Example how to use

Account TypeAccount ID
Main Trading Account1649292498437183232
Custody Account1649292498437183235
Sub Trading Account1673782460192774144

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&timestamp=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&timestamp=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"
    }
]
Language
Credentials
Header
Click Try It! to start a request and see the response here!