---
title: "accounts(query:)"
framework: financekit
role: symbol
role_heading: Instance Method
path: "financekit/financestore/accounts(query:)"
---

# accounts(query:)

Returns a list of accounts a person added to their Wallet that meet the criteria in the provided account query.

## Declaration

```swift
func accounts(query: AccountQuery) async throws -> [Account]
```

## Parameters

- `query`: An doc://com.apple.financekit/documentation/FinanceKit/AccountQuery that describes the kinds of accounts to look for.

## Return Value

Return Value An array of Account structures.

## See Also

### Accounts

- [accountHistory(since:isMonitoring:)](financekit/financestore/accounthistory(since:ismonitoring:).md)
- [AssetAccount](financekit/assetaccount.md)
- [LiabilityAccount](financekit/liabilityaccount.md)
- [Account](financekit/account.md)
