Call it
curl https://api.peume.com/v1/call/get-historical-price-data-for-a-company \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"country": "your country",
"timeframe": "MAX",
"ticker": "your ticker"
}
}'const res = await fetch("https://api.peume.com/v1/call/get-historical-price-data-for-a-company", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"country": "your country",
"timeframe": "MAX",
"ticker": "your ticker"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/get-historical-price-data-for-a-company",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"country": "your country",
"timeframe": "MAX",
"ticker": "your ticker"
}
},
)
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: get-historical-price-data-for-a-company.
Parameters
countryRequiredstringTwo-letter country code (ISO 3166-1 alpha-2) for the company, as returned by `GET /equities/v1/companies-list` (case-insensitive).
timeframestringOptional lookback window (case-insensitive). `1D` returns the most recent trading session and `7D`/`1W` (aliases) the last 7 days, both at 5-minute resolution; `1M` and longer are daily. `YTD` runs from January 1 of the current year. Omit or empty for full history (`MAX`). Intraday coverage is best-effort — a ticker without intraday data falls back to daily bars, and `1D` then returns the single most recent daily bar.
1D · 7D · 1W · 1M · 3M · 6M · YTD · 1Y · 5Y · MAX
Example: MAX
tickerRequiredstringStock ticker symbol (case-insensitive)
