curl "https://api.yield.xyz/v1/perps/balance?address=0x..." \
-H "x-api-key: your_api_key"
Get user’s trading account balance
curl "https://api.yield.xyz/v1/perps/balance?address=0x..." \
-H "x-api-key: your_api_key"
Documentation Index
Fetch the complete documentation index at: https://yieldxyz.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
curl "https://api.yield.xyz/v1/perps/balance?address=0x..." \
-H "x-api-key: your_api_key"
{
"balances": [
{
"provider": "hyperliquid",
"total": "10000",
"available": "8000",
"inPosition": "2000",
"unrealizedPnl": "150"
}
]
}