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

# Retrieve Chart

`GET /bars`

> **Deprecated.**

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.net/drivewealth/apis/authentication-apis.md) · [All operations](https://skmtc.net/drivewealth/apis/authentication-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/drivewealth/authentication-apis/revisions/9fced6d0ac41/schema)
