---
title: "Get volume graph data for a pool"
method: GET
path: "/v1/trade/graph-data"
tags: ["trade"]
---

# Get volume graph data for a pool

`GET /v1/trade/graph-data`

## Request

- Base URL: `https://swap-backend.stage.defi.ovh.gala.com`
- URL: `https://swap-backend.stage.defi.ovh.gala.com/v1/trade/graph-data`
- Auth: none declared
- TypeScript: <https://skmtc.dev/gala/apis/gala-defi-backend-api/docs/v1/trade/graph-data/get.ts> (a function with typed inputs; its response is checked against the schema)

Works for a pool on either contract (poolHash accepts a legacy hash or v2:<ref>).

## Query parameters

- `actualDate` string, required
- `duration` '1d' | '1w' | '1M' | '1y', required
- `poolHash` string, required

## Response `200`

- TradeGraphDataResponseDto
  - `status` number, required
  - `error` false, required
  - `message` string
  - `data` TradeGraphDataPointResponseDto[], required
    - `volume` number, required
    - `startDate` string, required
    - `endDate` string, required
    - `displayTime` string, required

## Other responses

- `400`
- `default`: An error response using the shared backend error envelope.

---

[API](https://skmtc.dev/gala/apis/gala-defi-backend-api.md) - [All operations](https://skmtc.dev/gala/apis/gala-defi-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gala/apis/gala-defi-backend-api/revisions/84f8184e2828?raw)
