๐Token Perp Positions
Retrieve current perpetual positions for a specific token on Hyperliquid. Shows active positions with detailed metrics including entry price, mark price, leverage, PnL, and liquidation price.
Key Features:
Hyperliquid perpetual contracts only (no chain field needed)
Real-time position tracking with live PnL calculations
Leverage and margin information
Smart money filtering capabilities
Support for both Long and Short positions
What it helps to answer:
What are the current perp positions for a specific token?
Which addresses have the largest positions by value?
What are the unrealized gains/losses on current positions?
What leverage levels are traders using?
Which smart money wallets are holding positions?
API key for authentication
Request model for TGM perp positions endpoint.
This endpoint provides perp positions data for a specific token.
Token symbol
BTCLabel type filter
all_tradersExample: all_tradersPossible values: Additional filters to apply to the query.
{"include_smart_money_labels":["Smart HL Perps Trader","Fund"],"position_value_usd":{"min":10000},"side":["Long"],"upnl_usd":{"min":0}}Custom sort order to override the endpoint's default ordering.
Examples:
- [{"field": "position_value_usd", "direction": "DESC"}] - Sort by position value USD descending
- [{"field": "upnl_usd", "direction": "ASC"}] - Sort by unrealized PnL ascending
- [{"field": "leverage", "direction": "DESC"}] - Sort by leverage descending
TGM perp positions data
Bad Request
Unauthorized
Forbidden
Not Found
Unprocessable Entity
Too Many Requests
Internal Server Error
POST /api/v1/tgm/perp-positions HTTP/1.1
Host: api.nansen.ai
apiKey: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 284
{
"token_symbol": "BTC",
"label_type": "all_traders",
"pagination": {
"page": 1,
"per_page": 10
},
"filters": {
"include_smart_money_labels": [
"Smart HL Perps Trader",
"Fund"
],
"position_value_usd": {
"min": 10000
},
"side": [
"Long"
],
"upnl_usd": {
"min": 0
}
},
"order_by": [
{
"field": "address",
"direction": "ASC"
}
]
}{
"data": [
{
"address": "0x1234567890123456789012345678901234567890",
"address_label": "Smart Money",
"side": "Long",
"position_value_usd": 50000,
"position_size": 1.5,
"leverage": "5X",
"leverage_type": "cross",
"entry_price": 50000,
"mark_price": 50500,
"liquidation_price": 45000,
"funding_usd": 10.5,
"upnl_usd": 500
}
],
"pagination": {
"page": 1,
"per_page": 10,
"is_last_page": true
}
}Last updated
Was this helpful?