curl "https://api.yield.xyz/v1/perps/positions?address=0x..." \
-H "x-api-key: your_api_key"
Get user’s open positions
curl "https://api.yield.xyz/v1/perps/positions?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/positions?address=0x..." \
-H "x-api-key: your_api_key"
| Parameter | Type | Description |
|---|---|---|
address | string | User’s wallet address |
provider | string | Filter by provider |
{
"positions": [
{
"id": "pos_123",
"market": "BTC-USD-PERP",
"provider": "hyperliquid",
"side": "LONG",
"size": "0.5",
"entryPrice": "42000",
"currentPrice": "43000",
"leverage": 10,
"unrealizedPnl": "500",
"liquidationPrice": "38000"
}
]
}