> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rhinestone.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# getPerpPositions

> List an account's open Hyperliquid perpetual positions.

## Import

```ts theme={null}
import { getPerpPositions } from '@rhinestone/sdk/hypercore'
```

## Usage

```ts theme={null}
const perpPositions = await getPerpPositions(account)
```

## Parameters

<ParamField path="account" type="`0x${string}`" required>
  the account holding the positions — the smart account itself,
  since that is what the intent delivers collateral to
</ParamField>

<ParamField path="options" type="HyperliquidConfig">
  where to reach Hyperliquid's info endpoint
</ParamField>

## Returns

<ResponseField name="perpPositions" type="PerpPosition[]">
  one entry per open position; empty when the account holds none
</ResponseField>

## See also

* [getPerpPosition](/sdk-reference/hyper-core/get-perp-position)
