---
title: "Read bucketed real trade-price history and volume for a single pool."
method: GET
path: "/v1/analytics/pools/{poolId}/price-chart"
tags: ["Analytics"]
---

# Read bucketed real trade-price history and volume for a single pool.

`GET /v1/analytics/pools/{poolId}/price-chart`

## Request

- Base URL: `https://api.galaxyswap.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.galaxyswap.io/v1/analytics/pools/{poolId}/price-chart`
- Auth: none declared
- TypeScript: <https://skmtc.dev/galaxyswap/apis/galaxyswap-backend-api/docs/v1/analytics/pools/:poolId/price-chart/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `poolId` string, required

## Query parameters

- `timeFrame` '24H' | '7D' | '30D'

## Response `200`

Default Response

- object
  - `networkId` string, required
  - `contractAddress` string, required
  - `chart` object, required
    - `poolId` string, required
    - `poolType` 'shielded' | 'unshielded' | 'mixed' | 'stableUnshielded', required
    - `tokenA` string, required
    - `tokenB` string, required
    - `asOf` string, date-time, required
    - `timeFrame` '24H' | '7D' | '30D', required
    - `points` object[], required
      - `startTime` string, date-time, required
      - `endTime` string, date-time, required
      - `closePriceTokenA` string, nullable, required
      - `closePriceTokenB` string, nullable, required
      - `volumeTokenA` string, required
      - `volumeTokenB` string, required
      - `tradeCount` integer, required

## Other responses

- `400`: Default Response
- `404`: Default Response

---

[API](https://skmtc.dev/galaxyswap/apis/galaxyswap-backend-api.md) - [All operations](https://skmtc.dev/galaxyswap/apis/galaxyswap-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/galaxyswap/apis/galaxyswap-backend-api/revisions/92312969b6ef?raw)
