> For the complete documentation index, see [llms.txt](https://docs.notional.finance/v3-technical-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.notional.finance/v3-technical-docs/subgraph-guides/notional-v3-subgraphs/fetch-notional-accounts.md).

# Fetch Notional Accounts

## Get a list of account Ids

This query can be used to get a list of Notional account addresses:

```
{
  accounts(first: 1000, where:{ systemAccountType: None}) {
    id
  }
}
```

## Get an Account current positions and balances

This query can be used to get the current balances of a given Notional account:

```
{
  accounts(where:{id:"0x4e8014ff5bace498dab1a9e2b5c3f4240bc059b6"}) {
    id
    balances {
      token{symbol}
      snapshots(first:1, orderBy:blockNumber, orderDirection:desc) {
        currentBalance
      }
    }
  }
}
```
