> ## 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 Assets

> Retrieve asset information for a portfolio

Retrieves detailed asset information for a portfolio.

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

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://api.glider.fi/v1/portfolio/port_abc123/assets' \
    --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}/assets`,
    {
      method: "GET",
      headers: {
        "X-API-KEY": "your_api_key_here",
      },
    }
  );

  const assets = await response.json();
  console.log(`Portfolio value: $${assets.data.totalValueUsd}`);
  console.log(`Assets: ${assets.data.assets.length}`);

  // Example: Log all assets and their allocations
  assets.data.assets.forEach(asset => {
    console.log(`${asset.symbol}: $${asset.valueUsd} (${asset.allocation}%)`);
  });
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "success": true,
    "data": {
      "portfolioId": "port_abc123",
      "totalValueUsd": "1053.75",
      "lastUpdated": "2023-05-21T13:45:12.345Z",
      "assets": [
        {
          "assetId": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE:8453",
          "symbol": "ETH",
          "name": "Ethereum",
          "valueUsd": "750.00",
          "balance": "0.5",
          "price": "1500",
          "allocation": "71.2",
          "chainId": "8453",
          "tokenAddress": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
          "decimals": 18,
          "logoUrl": "https://assets.glider.fi/icons/eth.png"
        },
        {
          "assetId": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913:8453",
          "symbol": "USDC",
          "name": "USD Coin",
          "valueUsd": "303.75",
          "balance": "303.75",
          "price": "1",
          "allocation": "28.8",
          "chainId": "8453",
          "tokenAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "decimals": 6,
          "logoUrl": "https://assets.glider.fi/icons/usdc.png"
        }
      ]
    },
    "correlationId": "corr_abc123",
    "requestId": "req_xyz789",
    "timestamp": "2023-05-21T13:45:12.345Z"
  }
  ```
</ResponseExample>
