---
title: "Get instrument OHLC prices"
method: GET
path: "/instruments/{instrument_id}/venues/{venue_id}/prices/ohlc"
tags: ["Price Data"]
---

# Get instrument OHLC prices

`GET /instruments/{instrument_id}/venues/{venue_id}/prices/ohlc`

## Request

- Base URL: `https://sandbox.upvest.co`
- URL: `https://sandbox.upvest.co/instruments/{instrument_id}/venues/{venue_id}/prices/ohlc`
- Auth: OAuth 2 (client credentials, token URL `https://sandbox.upvest.co/auth/token`, scopes: `prices:read`)

Returns OHLC prices for the instrument at the specified venue for the chosen time period.

If requested interval is `1d`, then the response also includes days with 0 volume. In these cases `open`, `high`, `low` are empty (`""`), but `close` is provided. If requested interval is smaller than `1d`, then the intervals with 0 volume are omitted from the response.

**NOTE**: Please note that in live mode we provide the latest prices that we receive from our data provider. However, it is to be expected that such updates will only take place on trading days.

## Query parameters

- `start_date` string, date
- `end_date` string, date
- `adjusted_for` 'NONE' | 'ALL'
- `interval` string

## Response `200`

OK

- object: Paginated list of end-of-day prices. Contains a `data` array of end-of-day price objects and a `meta` object with offset/limit pagination metadata.
  - `data` object[], required: The end-of-day prices in this page of results.
    - `currency` 'EUR' | 'GBP': Alphabetic three-letter [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code. * EUR — Euro. * GBP — Pound Sterling.
    - `time` string, date-time: The date and time indicating start of the interval. [RFC 3339-5](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6), [ISO8601 UTC](https://www.iso.org/iso-8601-date-and-time-format.html)
    - `open` string
    - `close` string
    - `high` string
    - `low` string
    - `volume` string
  - `meta` object, required: Offset/limit pagination metadata for this page of results.
    - `count` integer: Count of the resources returned in the response.

## Other responses

- `400`: Bad Request. The incoming request had a malformed parameter/object.
- `401`: Unauthorized. The caller has not been authenticated.
- `403`: Forbidden. The caller has been authenticated but is not allowed to take the requested action.
- `404`: Not Found. The requested resource could not be found.
- `406`: Not Acceptable. The resource does not have a current representation that would be acceptable to the user agent. "Accept" header defined unsupported value.
- `429`: Too Many Requests. The caller has exceeded their quota for the time period and has been throttled.
- `500`: Internal Server Error. The service encountered an unexpected error.
- `503`: Service Unavailable. The service handling for this request cannot be reached at this time.
- `504`: Gateway Timeout. The service gateway has reached its internal timeout.

---

[API](https://skmtc.dev/upvest/apis/upvest-investment-api.md) · [All operations](https://skmtc.dev/upvest/apis/upvest-investment-api/llms.txt) · [OpenAPI document](https://skmtc.dev/upvest/apis/upvest-investment-api/revisions/ca69534b631d?raw)
