---
title: "Time-bucketed volume for a new-contract pool"
method: GET
path: "/v2/trade/graph-data"
tags: ["trade-v2"]
---

# Time-bucketed volume for a new-contract pool

`GET /v2/trade/graph-data`

## Request

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

Time-bucketed volume for a new-contract pool

## Query parameters

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

## Response `200`

- TradeV2GraphDataResponseDto
  - `status` number, required
  - `message` string, required
  - `error` boolean, required
  - `data` TradeV2GraphDataPointResponseDto[], 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)
