Call it
curl https://api.peume.com/v1/call/google-finance-quote-chart-and-news-by-ticker \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"engine": "google_finance",
"q": "GOOGL:example",
"hl": "en",
"window": "1Y"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-finance-quote-chart-and-news-by-ticker", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"engine": "google_finance",
"q": "GOOGL:example",
"hl": "en",
"window": "1Y"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-finance-quote-chart-and-news-by-ticker",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"engine": "google_finance",
"q": "GOOGL:example",
"hl": "en",
"window": "1Y"
}
},
)
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: google-finance-quote-chart-and-news-by-ticker.
Parameters
engineRequiredstringExample: google_finance
qRequiredstringticker in TICKER:EXCHANGE form, or a currency pair like EUR-USD
Example: GOOGL:example
hlstringExample: en
windowstring1D (default) | 5D | 1M | 6M | YTD | 1Y | 5Y | MAX
Example: 1Y
