---
title: "Retrieve Chart"
method: GET
path: "/bars"
tags: ["Charts"]
---

# Retrieve Chart

`GET /bars`

## Request

- Base URL: `https://bo-api.drivewealth.io/back-office`
- URL: `https://bo-api.drivewealth.io/back-office/bars`
- Auth: HTTP bearer

Fetch historical bars for a given instrument over a given time period.

## Query parameters

- `instrumentID` string, required
- `compression` '0' | '1' | '4' | '8' | '9' | '10', required
- `dateStart` string, required
- `dateEnd` string, required
- `tradingDays` string

## Response `200`

Fetching Chart details was successful.

- Bars
  - `instrumentID` string, uuid: A unique ID created by DriveWealth to identify a specific instrument.
  - `compression` 0 | 1 | 4 | 8 | 9 | 10: The compression value represents the time increments of the chart data. Refer to the compression table for the value descriptions.
  - `dateStart` string: The start date of the chart data.
  - `dateEnd` string: The end date of the chart data.
  - `data` string: The `data` attribute holds each chart value separated by a pipe '|'. Each data set is preceded by the date, followed by the pricing data in the following order: Open, High, Low, Close, Volume.

## Other responses

- `400`: Bad Request
- `500`: Internal Server Error

---

[API](https://skmtc.dev/drivewealth/apis/market-data-apis.md) - [All operations](https://skmtc.dev/drivewealth/apis/market-data-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/drivewealth/apis/market-data-apis/revisions/a216b3f560c8?raw)
