spotClearinghouseState
Get the spot clearinghouse state for a single user.
spotClearinghouseState gives you a wallet's spot token balances on Hyperliquid in a single API request.
You provide a wallet address, and it returns every token the wallet holds, its total balance, the amount on hold in open orders, and its cost basis.
POST Request
Field
Type
Description
type
string
Must be "spotClearinghouseState"
user
string
Ethereum address (0x-prefixed, 42 characters)
curl -X POST https://api.hydromancer.xyz/info \
-H "Authorization: Bearer $HYDROMANCER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "spotClearinghouseState",
"user": "0x0000000000000000000000000000000000000000"
}'import requests
import os
response = requests.post(
'https://api.hydromancer.xyz/info',
json={
'type': 'spotClearinghouseState',
'user': '0x0000000000000000000000000000000000000000'
},
headers={
'Authorization': f'Bearer {os.environ.get("HYDROMANCER_API_KEY")}',
'Content-Type': 'application/json'
}
)
print(response.json())Response Fields
Field
Type
Description
balances
array
Array of spot balance objects
balances[n].coin
string
Coin symbol
balances[n].token
int
Token index
balances[n].total
string
Total balance
balances[n].hold
string
Amount on hold
balances[n].entryNtl
string
Entry notional
Last updated