Call it
curl https://api.peume.com/v1/call/end-of-day-stock-prices-by-ticker-adjusted-30 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"ticker": "aapl"
}
}'const res = await fetch("https://api.peume.com/v1/call/end-of-day-stock-prices-by-ticker-adjusted-30", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"ticker": "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-adjusted-30",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"ticker": "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-adjusted-30.
Parameters
tickerRequiredstringpath parameter, lowercase
Example: aapl
startDatestringYYYY-MM-DD
endDatestringresampleFreqstringdaily | weekly | monthly | annually
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.Stock 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 rangeEnd-of-day stock prices by ticker — OHLCV, date rangeDaily open/high/low/close/volume for one or more tickers, with date range and adjusted values — 70+ exchanges worldwide
