Skip to main content
POST
Get positions
This is a read that uses POST with a JSON body. Send address and at least one of providerId or providerIds (up to 10); when both are set, results include all listed providers. Each position carries pendingActions, pre-filled actions you can pass to Execute an action. Field meanings are in Position fields.

Authorizations

x-api-key
string
header
required

Body

application/json
address
string
required

User wallet address

Example:

"0x1234..."

providerId
enum<string>

Single provider identifier. At least one of providerId or providerIds must be provided.

Available options:
hyperliquid,
hyperliquid-xyz
Example:

"hyperliquid"

providerIds
enum<string>[]

Filter by multiple providers (CSV, repeated query params, or JSON array). At least one of providerId or providerIds must be provided. When both providerId and providerIds are set, results include all listed providers.

Available options:
hyperliquid,
hyperliquid-xyz
Example:

Response

User positions

marketId
string
required

Market ID

Example:

"hyperliquid-eth-usdc"

side
enum<string>
required

Position side

Available options:
long,
short
Example:

"long"

size
string
required

Position size in base asset

Example:

"0.215"

entryPrice
number
required

Entry price

Example:

4000

markPrice
number
required

Current mark price

Example:

3975

leverage
number
required

Leverage multiplier

Example:

20

marginMode
enum<string>
required

Margin mode

Available options:
cross,
isolated
Example:

"isolated"

margin
number
required

Margin amount

Example:

43

unrealizedPnl
number
required

Unrealized PnL from price movement

Example:

5.38

funding
number
required

Net cumulative funding received (positive) or paid (negative) since open

Example:

-1.24

liquidationPrice
number
required

Liquidation price

Example:

4200

pendingActions
object[]
required

Available actions for this position