---
title: "Get historical price bars"
method: GET
path: "/api/v1/prices/{symbol}/history"
tags: ["Trading Market Data"]
---

# Get historical price bars

`GET /api/v1/prices/{symbol}/history`

## Request

- Base URL: `https://rwa-api.anchored.finance/rwa/trading`
- URL: `https://rwa-api.anchored.finance/rwa/trading/api/v1/prices/{symbol}/history`
- Auth: one of:
  - API key in header `x-api-key`
  - API key in header `x-api-nonce`
  - API key in header `x-api-ts`
  - API key in header `x-api-sign`
  - API key in header `x-api-chain-id`
  - API key in header `x-api-p`
- TypeScript: <https://skmtc.dev/synfutures/apis/anchored-trading-partner-api/docs/api/v1/prices/:symbol/history/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `symbol` string, required

## Query parameters

- `startTime` integer
- `endTime` integer, required
- `interval` '1Min' | '3Min' | '5Min' | '15Min' | '1H' | '1D' | '1W', required
- `adjustment` 'raw' | 'split' | 'dividend' | 'spin-off' | 'all'
- `limit` integer

## Response `200`

OK

- BaseResponseListHistoricalBarRespDto: Base Response
  - `code` integer: if not 200, it means error
  - `errMsg` string: if code not 200,this is error message
  - `data` HistoricalBarRespDto[]: if code is 200,this is data
    - `open` number: open price
    - `high` number: high price
    - `low` number: low price
    - `close` number: close price
    - `volume` number: volume
    - `timestamp` integer: bar timestamp (unix seconds)
  - `uuid` string: every request has a uuid
  - `t` integer: server time

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/synfutures/apis/anchored-trading-partner-api.md) - [All operations](https://skmtc.dev/synfutures/apis/anchored-trading-partner-api/llms.txt) - [OpenAPI document](https://skmtc.dev/synfutures/apis/anchored-trading-partner-api/revisions/8df20ab57300?raw)
