Skip to main content
List stock prices

Overview

Darvas covers every Nasdaq, NYSE, Cboe and OTC stock, each from its first session, and adds the latest bars after each session. A bar is a session’s open, high, low, close and volume; week, month and year bars join the sessions of their period, and their time is the first session. Bars are adjusted for splits, so a price before a split compares with one after it. adjusted_close is also adjusted for dividends, the figure to use for returns. Today’s bar appears after the session closes; the latest price during the session is at /prices/snapshot.

Example

Authorizations

X-API-KEY
string
header
required

A Darvas data API key: dvk_ and 43 characters.

Query Parameters

ticker
string
required

The stock's ticker as SEC lists it, such as AAPL or BRK-B, in any case; a share class may use a dot or a dash, BRK.B or BRK-B.

Maximum string length: 12
Pattern: ^[A-Za-z0-9][A-Za-z0-9.-]{0,11}$
interval
enum<string>
default:day

The length of a bar: day, week, month or year; without it, day.

Available options:
day,
week,
month,
year
start_date
string<date>

The first day, which also makes the oldest bar come first; without it, the stock's first session, with the newest bar first.

Maximum string length: 10
end_date
string<date>

The last day; without it, today.

Maximum string length: 10
order
enum<string>

desc for the newest bar first, asc for the oldest first. Without it, desc unless start_date is sent.

Available options:
desc,
asc
limit
integer<int32>
default:100

The most bars on a page, 1 to 1000; without it, 100.

Required range: 1 <= x <= 1000
cursor
string

The cursor from a previous next_page_url. It replaces every other parameter.

Maximum string length: 4096
Pattern: ^[A-Za-z0-9_-]+$

Response

List stock prices: one page.

The answer of GET /prices.

ticker
string
required

The stock asked for.

Pattern: ^[A-Z0-9][A-Z0-9.-]{0,11}$
Example:

"AAPL"

interval
enum<string>
required

The length of a bar.

Available options:
day,
week,
month,
year
Example:

"day"

order
enum<string>
required

desc when the newest bar comes first, asc when the oldest does.

Available options:
desc,
asc
Example:

"desc"

prices
object[]
required

This page's bars, in order.

Maximum array length: 1000
next_page_url
string<uri>

The next page, further on in order; absent on the last one.

Maximum string length: 2000
Example:

"https://api.darvas.app/v1/prices?cursor=eyJ0aWNrZXIiOiJBQVBMIn0"