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

# Portfolio Get Deposits Withdrawals

> Retrieve deposit and withdrawal history for a portfolio

Retrieves deposit and withdrawal history for a portfolio.

<ParamField path="portfolioId" type="string" required>
  The unique identifier of the portfolio
</ParamField>

<ParamField query="limit" type="number" default="100">
  Number of transactions to return
</ParamField>

<ParamField query="offset" type="number" default="0">
  Pagination offset
</ParamField>

<ParamField query="resolutionSize" type="string" default="ALL">
  Time range for transactions ("ALL", "DAY", "WEEK")
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://api.glider.fi/v1/portfolio/port_abc123/transactions/deposits-withdrawals?limit=10&resolutionSize=ALL' \
    --header 'X-API-KEY: your_api_key_here'
  ```

  ```javascript JavaScript theme={null}
  const portfolioId = "port_abc123";
  const response = await fetch(
    `https://api.glider.fi/v1/portfolio/${portfolioId}/transactions/deposits-withdrawals?limit=10&resolutionSize=ALL`,
    {
      method: "GET",
      headers: {
        "X-API-KEY": "your_api_key_here",
      },
    }
  );

  const transactions = await response.json();
  console.log(`Total transactions: ${transactions.data.totalCount}`);
  console.log(`Recent transactions: ${transactions.data.entries.length}`);
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "success": true,
    "data": {
      "entries": [
        {
          "id": "tx_abc123",
          "strategy_instance_id": "port_abc123",
          "chain_id": 8453,
          "asset_id": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE:8453",
          "symbol": "ETH",
          "decimals": 18,
          "event_type": "deposit",
          "token_amount": "0.5",
          "raw_token_amount": "500000000000000000",
          "price_usd": "1500",
          "total_usd_value": "750.00",
          "transaction_hash": "0xTransactionHash123",
          "block_number": 12345678,
          "block_timestamp": 1684670096,
          "block_group_id": "block_abc123",
          "wallet_address": "0xUserWalletAddress"
        },
        {
          "id": "tx_def456",
          "strategy_instance_id": "port_abc123",
          "chain_id": 8453,
          "asset_id": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913:8453",
          "symbol": "USDC",
          "decimals": 6,
          "event_type": "deposit",
          "token_amount": "300",
          "raw_token_amount": "300000000",
          "price_usd": "1",
          "total_usd_value": "300.00",
          "transaction_hash": "0xTransactionHash456",
          "block_number": 12345679,
          "block_timestamp": 1684670412,
          "block_group_id": "block_def456",
          "wallet_address": "0xUserWalletAddress"
        }
      ],
      "totalCount": 2,
      "success": true
    },
    "correlationId": "corr_abc123",
    "requestId": "req_xyz789",
    "timestamp": "2023-05-21T13:45:12.345Z"
  }
  ```
</ResponseExample>
