Questions? Join our Discord.
curl --request POST \
--url https://api.hotstuff.trade/info \
--header 'Content-Type: application/json' \
--data '{
"method": "accountInfo",
"params": {
"user": "0xxxx",
"collateralID": 1,
"includeHistory": true
}
}'
{
"account": {
"address": "0x42C183edba036906447372a7c81Eb89D0B9f2175",
"role": 0,
"margin_mode": "cross",
"multi_asset_mode": false,
"hedge_mode": false,
"referrer": "0x944Aa860FA3402bC93401c177ce255494b2C0C86",
"referral_codes": [
"HELLO"
],
"referral_timestamp": 1765207493207,
"created_at_block_timestamp": 1764946705982
},
"rewards": [
{
"Account": "0x42C183edba036906447372a7c81Eb89D0B9f2175",
"CollateralID": 1,
"Source": "referral_commission",
"IsSpot": false,
"Amount": "0",
"ClaimAmount": "3.764047",
"CreatedAt": 1768305424272
}
],
"history": [
{
"Account": "0x42C183edba036906447372a7c81Eb89D0B9f2175",
"CollateralID": 1,
"Source": "referral_commission",
"IsSpot": false,
"Amount": "0.101354",
"ClaimAmount": "0",
"CreatedAt": 1768305424272
}
]
}
Send POST request to /info with method: “accountInfo”
curl --request POST \
--url https://api.hotstuff.trade/info \
--header 'Content-Type: application/json' \
--data '{
"method": "accountInfo",
"params": {
"user": "0xxxx",
"collateralID": 1,
"includeHistory": true
}
}'
{
"account": {
"address": "0x42C183edba036906447372a7c81Eb89D0B9f2175",
"role": 0,
"margin_mode": "cross",
"multi_asset_mode": false,
"hedge_mode": false,
"referrer": "0x944Aa860FA3402bC93401c177ce255494b2C0C86",
"referral_codes": [
"HELLO"
],
"referral_timestamp": 1765207493207,
"created_at_block_timestamp": 1764946705982
},
"rewards": [
{
"Account": "0x42C183edba036906447372a7c81Eb89D0B9f2175",
"CollateralID": 1,
"Source": "referral_commission",
"IsSpot": false,
"Amount": "0",
"ClaimAmount": "3.764047",
"CreatedAt": 1768305424272
}
],
"history": [
{
"Account": "0x42C183edba036906447372a7c81Eb89D0B9f2175",
"CollateralID": 1,
"Source": "referral_commission",
"IsSpot": false,
"Amount": "0.101354",
"ClaimAmount": "0",
"CreatedAt": 1768305424272
}
]
}
curl --request POST \
--url https://api.hotstuff.trade/info \
--header 'Content-Type: application/json' \
--data '{
"method": "accountInfo",
"params": {
"user": "0xxxx",
"collateralID": 1,
"includeHistory": true
}
}'
{
"account": {
"address": "0x42C183edba036906447372a7c81Eb89D0B9f2175",
"role": 0,
"margin_mode": "cross",
"multi_asset_mode": false,
"hedge_mode": false,
"referrer": "0x944Aa860FA3402bC93401c177ce255494b2C0C86",
"referral_codes": [
"HELLO"
],
"referral_timestamp": 1765207493207,
"created_at_block_timestamp": 1764946705982
},
"rewards": [
{
"Account": "0x42C183edba036906447372a7c81Eb89D0B9f2175",
"CollateralID": 1,
"Source": "referral_commission",
"IsSpot": false,
"Amount": "0",
"ClaimAmount": "3.764047",
"CreatedAt": 1768305424272
}
],
"history": [
{
"Account": "0x42C183edba036906447372a7c81Eb89D0B9f2175",
"CollateralID": 1,
"Source": "referral_commission",
"IsSpot": false,
"Amount": "0.101354",
"ClaimAmount": "0",
"CreatedAt": 1768305424272
}
]
}