Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /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"
Get user’s open positions
address
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" } ] }