---
title: Deposits & Redemptions
description: Query deposit and redemption transaction history
url: https://docs.intuition.systems/docs/v1/graphql-api/queries/vaults/deposits-redemptions
markdown_url: https://docs.intuition.systems/docs/v1/graphql-api/queries/vaults/deposits-redemptions.md
version: V1
llms_index: https://docs.intuition.systems/docs/v1/llms.txt
---

Query transaction history for deposits and redemptions.

## Deposits & Redemptions - Query Structure

```graphql
query GetTransactionHistory($termId: String!, $curveId: numeric!, $limit: Int!) {
  deposits(
    where: {
      term_id: { _eq: $termId }
      curve_id: { _eq: $curveId }
    }
    order_by: { created_at: desc }
    limit: $limit
  ) {
    id
    sender_id
    assets_after_fees
    shares
    created_at
  }
  redemptions(
    where: {
      term_id: { _eq: $termId }
      curve_id: { _eq: $curveId }
    }
    order_by: { created_at: desc }
    limit: $limit
  ) {
    id
    receiver_id
    assets
    shares
    created_at
  }
}
```

## Best Practices

1. **Filter by term and curve** for specific vault
2. **Order by created_at** for chronological history
3. **Use limit** to paginate results
4. **Combine deposits and redemptions** for full history
