Call it
curl https://api.peume.com/v1/call/end-of-day-stock-prices-by-ticker-ohlcv-date \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"symbols": "AAPL"
}
}'const res = await fetch("https://api.peume.com/v1/call/end-of-day-stock-prices-by-ticker-ohlcv-date", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"symbols": "AAPL"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/end-of-day-stock-prices-by-ticker-ohlcv-date",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"symbols": "AAPL"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: end-of-day-stock-prices-by-ticker-ohlcv-date.
Parameters
symbolsRequiredstring1-100 comma-separated tickers (AAPL,MSFT); non-US symbols carry the exchange MIC (BMW.XETRA)
Example: AAPL
date_fromstringYYYY-MM-DD
date_tostringYYYY-MM-DD
limitintegerrows per page, default 100, max 1000
offsetintegersortstringDESC (default) | ASC
Other ways to do it
Same job, other sources, cheapest first.
End-of-day price history for a tickerBest sourceEnd-of-day price history for a ticker. Checks the cheapest source first and moves to the next one until it finds an answer.End-of-day stock prices by ticker — adjusted, 30+ yearsDaily OHLCV with split/dividend-adjusted values, back 30+ yearsStock OHLCV time series by symbol — 1min to 1monthOHLCV series at any interval from 1min to 1month — the workhorse for charts and analysisUS stock historical pricesGet split-adjusted historical price bars for a US stock ticker over a date range
