---
title: User Positions
description: Query user positions in vaults
url: https://docs.intuition.systems/docs/v1/graphql-api/queries/vaults/user-positions
markdown_url: https://docs.intuition.systems/docs/v1/graphql-api/queries/vaults/user-positions.md
version: V1
llms_index: https://docs.intuition.systems/docs/v1/llms.txt
---

Query all positions held by a specific account.

## User Positions - Query Structure

```graphql
query GetUserPositions($accountId: String!, $limit: Int!) {
  positions(
    where: { account_id: { _eq: $accountId } }
    order_by: { shares: desc }
    limit: $limit
  ) {
    id
    shares
    vault {
      term_id
      current_share_price
      term {
        atom { label image }
        triple {
          subject { label }
          predicate { label }
          object { label }
        }
      }
    }
  }
}
```

## Interactive Example

    id: 'user-positions',
    title: 'User Positions',
    query: `query GetUserPositions($accountId: String!, $limit: Int!) {
  positions(
    where: { account_id: { _eq: $accountId } }
    order_by: { shares: desc }
    limit: $limit
  ) {
    id
    shares
    vault {
      term_id
      current_share_price
      market_cap

}`,
    variables: {
      accountId: '0x88D0aF73508452c1a453356b3Fac26525aEc23A2',
      limit: 20

];

## Best Practices

1. **Order by shares** to show largest positions first
2. **Include vault data** for context
3. **Use aggregates** for totals
4. **Filter by shares > 0** for active positions
