Skip to main content
GET
Get historical OHLCV prices
This route returns OHLCV bars for a ticker over a date range, sourced from Monid’s DefiLlama /equities/v1/ohlcv endpoint. The provider gives daily bars. Week, month, and year bars are aggregated locally from those daily bars, and time on every bar is the bar’s end date in UTC.

What this answers

  • What a stock’s open, high, low, close, and volume were on a given day, or across a range of days.

Coverage

Query rules

ticker, start_date, and end_date are all required. This is stricter than the Financial Datasets schema, which lets both dates default (one year before end_date, and today, respectively) when omitted. This server does not compute those defaults, so both are required here. interval accepts day, week, month, or year. Second- and minute-level intervals from the Financial Datasets schema are not implemented and answer 400. interval_multiplier must be 1, multi-bar intervals like “every 5 days” are not implemented.

Worked example

curl
Response

Authorizations

X-API-KEY
string
header
required

The caller's own Monid API key (get one at https://monid.ai?fpr=dhruv-15136b). Passed straight through to Monid on every call, so usage bills the caller's own wallet — this is never a shared server-side credential, and the server never logs or stores it. Missing, empty, or malformed values answer 401 unauthorized before any paid call is attempted.

Query Parameters

ticker
string
required

Uppercase-normalized ticker symbol (1-20 letters/digits/dots/hyphens).

interval
enum<string>
default:day

Bar interval. The FD schema also lists second/minute; both answer 400 bad_request here.

Available options:
day,
week,
month,
year
interval_multiplier
enum<integer>
default:1

Must be 1 (default). Any other value answers 400 bad_request: multi-bar intervals are not implemented.

Available options:
1
start_date
string<date>
required

Start date (YYYY-MM-DD), inclusive. Functionally required (see description).

end_date
string<date>
required

End date (YYYY-MM-DD), inclusive. Functionally required (see description).

cursor
string

Opaque base64url pagination cursor from a previous response's next_page_url. Omit for the first page.

Response

Real AAPL daily bars captured from our own live API (docs/our-live-samples/prices.json).

Wrapped prices envelope: {"ticker": "...", "prices": [...], "next_page_url": "..."}. Page size is 100 records.

prices
Price · object[]
required
ticker
string

Uppercase ticker symbol echoed from the request.

next_page_url
string<uri>

Absolute URL for the next page, present only when more records remain. Built from an opaque base64url cursor over this deployment's own host (never a fixed facade base).