Skip to main content
Read every stock price

Overview

The latest price of every stock with a positive price and a bar in the last ten days, each as /prices/snapshot gives it, or of the stocks tickers names. Pages hold 100 stocks, or up to 1,000 with limit, in sort order: by ticker, or the biggest gain, loss or price first. Follow next_page_url for the rest; each page is one call and costs one credit.

Example

Authorizations

X-API-KEY
string
header
required

A Darvas data API key: dvk_ and 43 characters.

Query Parameters

tickers
string

Only these stocks: up to 100 tickers, comma separated, in any case, such as AAPL,MSFT,BRK.B. A ticker without a price is left out.

Maximum string length: 1400
Pattern: ^[A-Za-z0-9., -]{1,1400}$
sort
enum<string>
default:ticker

The order of the stocks: ticker (A to Z), day_change_percent_desc (biggest gain first), day_change_percent_asc (biggest loss first), price_desc or price_asc. A stock without a change comes last. Without it, ticker.

Available options:
ticker,
day_change_percent_desc,
day_change_percent_asc,
price_desc,
price_asc
limit
integer<int32>
default:100

The most stocks 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

Read every stock price: one page.

The answer of GET /prices/snapshot/market.

sort
enum<string>
required

The order of the stocks on the page.

Available options:
ticker,
day_change_percent_desc,
day_change_percent_asc,
price_desc,
price_asc
Example:

"ticker"

snapshots
object[]
required

This page's stocks, in sort order.

Maximum array length: 1000
next_page_url
string<uri>

The next page; absent on the last one.

Maximum string length: 6000
Example:

"https://api.darvas.app/v1/prices/snapshot/market?cursor=eyJzb3J0IjoidGlja2VyIn0"