← Back to Financial Datasets
GET/prices
Get historical stock price data
Get end-of-day (EOD) historical price data for stocks.
Financial Datasets·$0.025 per call
Example code
// Using @orth/sdk - The simplest way to call APIs
// Install: npm install @orth/sdk
import Orthogonal from "@orth/sdk";
const orthogonal = new Orthogonal({
apiKey: process.env.ORTHOGONAL_API_KEY,
});
const output = await orthogonal.run({
api: "financial-datasets",
path: "/prices",
query: {
"ticker": "example",
"interval": "example",
"start_date": "example",
"end_date": "example"
}
});
console.log(output);Query parameters
tickerrequired
string
The stock ticker symbol (e.g. AAPL, MSFT).
intervalrequired
string
The time interval for the price data.
start_daterequired
string
The start date for the price data (format: YYYY-MM-DD).
end_daterequired
string
The end date for the price data (format: YYYY-MM-DD).
cursor
string
Opaque pagination cursor from a previous response's next_page_url. When provided, all other query parameters are ignored: the cursor carries the original request's filters. Treat it as opaque; do not construct or modify it.