---
title: "Get Price History (TradingView)"
method: GET
path: "/v1/perps/history"
tags: ["Market Data"]
---

# Get Price History (TradingView)

`GET /v1/perps/history`

Returns historical bar data in TradingView UDF format, as required by the TradingView charting library: a single object with parallel arrays keyed `t`, `o`, `h`, `l`, `c`, and `v` (values are numbers), plus a status field `s`. For a standard array-of-objects representation with full field names (`open`, `high`, `low`, `close`, `volume`), use `GET /v1/perps/candles` (Get Candles).

## Query parameters

- `symbol` string, required
- `resolution` string, required
- `from` integer, required
- `to` integer, required

## Response `200`

TradingView UDF history response

- object — TradingView UDF history response with parallel arrays of OHLCV data.
  - `s` string — Status ('ok' or 'no_data')
  - `t` integer[] — Array of Unix timestamps
  - `o` number[] — Array of open prices
  - `h` number[] — Array of high prices
  - `l` number[] — Array of low prices
  - `c` number[] — Array of close prices
  - `v` number[] — Array of volumes

## Other responses

- `400` — Bad request. The request was malformed or failed validation.
- `429` — Rate limit exceeded. Slow down request frequency.
- `500` — Internal server error.

---

[API](https://skmtc.net/ondoperps/apis/ondo-perps-rest-api.md) · [All operations](https://skmtc.net/ondoperps/apis/ondo-perps-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ondoperps/ondo-perps-rest-api/revisions/39df6b2fa672/schema)
