Backfill history
Page through all the history, save it to a file and resume if it stops.
Read the use case →Get prices and company events for listed stocks, with market cap and valuation ratios included.
curl "https://api.dino.markets/v1/equities/XNAS:MSFT/bars?interval=1d&start=2026-11-06&end=2026-11-10" \ -H "Authorization: Bearer $DINO_API_KEY"
{ "id": "XNAS:MSFT", "currency": "USD", "adjusted": true, "bars": [ { "date": "2026-11-06", "timestamp": "2026-11-06T14:30:00Z", "open": "525.69", "high": "538.33", "low": "524.47", "close": "530.61", "volume": "26956400" }, { "date": "2026-11-09", "timestamp": "2026-11-09T14:30:00Z", "open": "544.49", "high": "548.28", "low": "538.70", "close": "545.18", "volume": "25295600" }, { "date": "2026-11-10", "timestamp": "2026-11-10T14:30:00Z", "open": "543.41", "high": "545.18", "low": "526.36", "close": "533.42", "volume": "37240669" } ], "next_cursor": null }
/v1/equities/searchListings whose ticker or name starts with q, any case: an exact ticker first, then other tickers, then names.
qrequiredStart of a ticker or of a company name, any case, at least 2 characters (for example ms or micro). Order: the exact ticker, other tickers, the start of a name, then the start of a later word of a name; US primary listings first within each.
countryoptionalOnly listings in this country, three letters (USA, KOR).
typeoptionalOnly this kind of listing.
cursoroptionalnext_cursor of the previous page, with the same other parameters.
resultslist of objectAt most 50 a page.
next_cursorstringPass it back to read the next page. Null on the last page.
/v1/equities/{id}The listing (symbol, name, type, exchange, country, currency), the company's sector, industry and website, and company_id when the listing matches a company.
idrequiredListing id: the exchange's four-letter code, a colon and the ticker, for example XNAS:MSFT or XNYS:BRK.B. A bare US ticker such as MSFT also works when it names one US listing; the answer carries the canonical id. Share classes use a dot (BRK.B); BRK-B is accepted.
idstringCanonical listing id.
symbolstringTicker on that exchange.
micstringThe exchange's four-letter code.
countrystringCountry of the listing, three letters.
sectorstringSector. Left out for Japan listings, which carry no profile text.
industrystringIndustry. Left out for Japan listings.
websitestringThe company's website. Left out for Japan listings.
logo_urlstringOur own copy of the company's logo. Left out when we have none.
company_idstringThe id of the company the listing belongs to, when it matches one cleanly.
/v1/equities/{id}/priceLatest price of one listing.
idrequiredListing id: the exchange's four-letter code, a colon and the ticker, for example XNAS:MSFT or XNYS:BRK.B. A bare US ticker such as MSFT also works when it names one US listing; the answer carries the canonical id. Share classes use a dot (BRK.B); BRK-B is accepted.
idstringCanonical listing id returned for the requested stock.
symbolstringTicker used for this stock on its exchange.
currencystringCurrency for every price field, with pence converted to pounds.
pricestringLast stock price, returned as a decimal string in currency.
previous_closestringPrevious session's close, omitted when that value is unknown.
changestringPrice minus previous_close, omitted whenever previous_close is omitted.
change_percentstringChange since previous_close in percent; 1.5 means 1.5%.
volumestringShares traded today, omitted when unknown.
market_sessionone of pre, open, post, closedExchange state at timestamp: pre, open, post or closed; only US exchanges have pre and post.
timestampdate-timeTime the price was valid, in UTC with whole seconds.
/v1/equities/pricesLatest price of each listed id.
idsrequiredComma-separated listing ids, at most 50 after duplicates are removed. Each id follows the same rules as the single-price route. One call is counted for each id that returns a price.
priceslist of objectOne price per id that resolved, by id.
errorslist of objectIds that returned no price. They are not charged.
/v1/equities/moversThe top 25 US stocks and ETFs by direction: gainers, losers or active (most traded by value among the day's biggest gainers and losers, not the whole market).
marketoptionalMarket to rank. Only us for now; another market is 404 not_covered.
directionoptionalgainers (biggest rise), losers (biggest fall) or active (most traded by value among the day's biggest gainers and losers, not the whole market). Anything else is 400 invalid_query.
marketalways "us"The market ranked.
directionone of gainers, losers, activeThe ranking asked for.
moverslist of objectUp to 25, best first. Only ordinary shares and ETFs priced at $1 or more, with at least 100,000 shares and $1 million traded today.
timestampdate-timeWhen the newest price in the list was valid (UTC).
/v1/equities/{id}/barsDaily (1d) or one-minute (1m) bars, oldest first, adjusted for splits and dividends.
idrequiredListing id: the exchange's four-letter code, a colon and the ticker, for example XNAS:MSFT or XNYS:BRK.B. A bare US ticker such as MSFT also works when it names one US listing; the answer carries the canonical id. Share classes use a dot (BRK.B); BRK-B is accepted.
intervaloptional1d (one bar per session) or 1m (one-minute bars). Anything else is 400 invalid_interval.
startoptionalFirst bar. 1d: a date (YYYY-MM-DD), inclusive; left out means the oldest bar there is. 1m: a UTC time (YYYY-MM-DDTHH:MM:SSZ, or a date for 00:00 UTC), inclusive; left out means one day before end.
endoptionalLast bar. 1d: a date, inclusive; left out means the latest session whose bar is out. 1m: a UTC time, exclusive; left out means now, or five days after start. At most 5 days between start and end for 1m (400 range_too_large).
cursoroptionalnext_cursor of the previous page, with the same other parameters. A cursor stops working when the prices behind it changed (a split or dividend): 409 cursor_expired.
idstringCanonical listing id.
currencystringCurrency of every price. Pence become pounds.
adjustedbooleanAlways true: prices are adjusted for splits and dividends. A page and the next one always agree; if a split or dividend changes the history between two pages, the cursor stops working (409 cursor_expired) instead of mixing the two.
startstringNever sent: start is not moved.
endstringNever sent: daily bars are not cut.
barslist of objectAt most 5,000 bars a page.
next_cursorstringPass it back to read the next page. Null on the last page.
/v1/equities/{id}/dividendsCash dividends of one listing, newest ex-date first, paged.
idrequiredListing id: the exchange's four-letter code, a colon and the ticker, for example XNAS:MSFT or XNYS:BRK.B. A bare US ticker such as MSFT also works when it names one US listing; the answer carries the canonical id. Share classes use a dot (BRK.B); BRK-B is accepted.
cursoroptionalidstringCanonical listing id.
dividendslist of objectNewest ex-date first. May include announced future rows.
next_cursorstringPass as cursor for the next page; null on the last page.
/v1/equities/{id}/splitsShare splits of one listing, newest first.
idrequiredListing id: the exchange's four-letter code, a colon and the ticker, for example XNAS:MSFT or XNYS:BRK.B. A bare US ticker such as MSFT also works when it names one US listing; the answer carries the canonical id. Share classes use a dot (BRK.B); BRK-B is accepted.
idstringCanonical listing id.
splitslist of objectNewest first.
/v1/equities/{id}/earningsPast earnings reports of one listing (dated today or earlier at the exchange), with estimate, actual and surprise, newest first, paged.
idrequiredListing id: the exchange's four-letter code, a colon and the ticker, for example XNAS:MSFT or XNYS:BRK.B. A bare US ticker such as MSFT also works when it names one US listing; the answer carries the canonical id. Share classes use a dot (BRK.B); BRK-B is accepted.
cursoroptionalidstringCanonical listing id.
earningslist of objectPast reports only, newest first. Upcoming report dates are not included yet.
next_cursorstringPass as cursor for the next page; null on the last page.
/v1/equities/{id}/valuationMarket cap (latest price times shares outstanding), P/E (latest price over trailing 12-month diluted EPS from company reports, GAAP or IFRS as reported), P/S (market cap over trailing 12-month revenue), P/B (market cap over total equity of the latest balance sheet) and dividend yield (trailing 12-month dividends per share over the price, in percent) of one US or Korean listing, with the inputs and the dates they are as of.
idrequiredListing id: the exchange's four-letter code, a colon and the ticker, for example XNAS:MSFT or XNYS:BRK.B. A bare US ticker such as MSFT also works when it names one US listing; the answer carries the canonical id. Share classes use a dot (BRK.B); BRK-B is accepted.
idstringCanonical listing id.
currencystringCurrency of market_cap and of the price behind pe_ratio.
market_capstringLatest price times shares_outstanding, in currency, whole units. Left out when a split happened after shares_as_of, when the company has several share classes without a count for each, and for a depositary receipt or foreign filer. Korea has no market cap yet: its listings show P/E only for now.
pe_ratiostringLatest price divided by eps_ttm, 2 places. Left out when eps_ttm is negative or under 0.01, when the reporting currency is not currency, when a split happened after eps_period_end, and for a depositary receipt.
ps_ratiostringPrice to sales: market_cap divided by revenue_ttm, 2 places. Left out whenever market_cap is, when revenue is not above 0, and when it is reported in another currency than currency.
pb_ratiostringPrice to book: market_cap divided by total_equity, 2 places. Left out whenever market_cap is, when total equity is 0 or negative, and when it is reported in another currency than currency.
dividend_yieldstringDividends per share of the last 12 months over the latest price, in percent (0.71 means 0.71%), 2 places. Left out when no dividend is on file for those 12 months (a company that pays none included), when a split happened after dividends_period_end, when the dividends are in another currency than currency, and for a depositary receipt.
shares_outstandingstringShares outstanding of the company's main common share class. Left out for a listing that is another class, such as a preferred line, which has no count here.
shares_as_ofdateDate shares_outstanding is counted at. Shown whenever the count is.
eps_ttmstringTrailing 12-month diluted EPS from company reports (GAAP or IFRS as reported); the fourth quarter is the annual figure minus the first three. Shown whenever it can be worked out; left out for a listing that is another class of the company. It can differ from the eps_actual of stock earnings, which is on the market data basis.
/v1/equities/{id}/valuation/historyMarket cap, P/E, P/S, P/B and dividend yield at every fiscal period end (quarter or year end) of one US or Korean listing, oldest first.
idrequiredListing id: the exchange's four-letter code, a colon and the ticker, for example XNAS:MSFT or XNYS:BRK.B. A bare US ticker such as MSFT also works when it names one US listing; the answer carries the canonical id. Share classes use a dot (BRK.B); BRK-B is accepted.
idstringCanonical listing id.
currencystringCurrency of every price and market cap.
company_idstringThe company the listing belongs to.
pointslist of objectOne point per fiscal period end of the company, oldest first. Each is worked out from the figures filed for that period and the price on that day, not from what was known then: a later restatement is in it. A period without a price, or without any figure, has no point.
Page through all the history, save it to a file and resume if it stops.
Read the use case →Run a small script once a day and append the result to a CSV.
Read the use case →ETF prices and daily mutual fund net asset values.
Explore the API →Crypto pair prices and price history.
Explore the API →Four monthly plans, from Free to $199 a month. A plan sets how far back you can read.
See pricing →A listing id combines a four-letter exchange code and ticker, such as XNAS:MSFT for Microsoft. Unique bare US tickers work; answers return the canonical id.
The earnings route returns past results only; upcoming earnings dates are unavailable. Japan prices are unavailable; profiles carry only name, exchange, country, currency and company_id. Earnings eps_actual uses the market data basis, while EPS behind pe_ratio comes from company reports. The two can differ and should not be compared directly.
It depends on your plan. Free reads the last 12 months, Starter 5 years, Basic 5 years and Pro the full history. The records themselves start earlier; each response reports its own start.
The Free plan reads the last 12 months of history. Paid plans start at $29 a month and reach further back.