Stock price history API for your agent. One call per ticker.
The short answer
The short answer
Stock price history API for an agent: it sends a ticker symbol and a date range to a catalog endpoint and reads open, high and low back. Several providers sell the call, so the agent tries the cheapest first. You pay per call, and a failed call costs nothing.
Updated
- Open, high, low and close
- Volume
- Date
- One row per trading day
The job
What the Stock price history API gives your agent
Daily history is the base of every chart and backtest. Your agent sends a ticker and a date range and reads back one row per trading day: open, high, low, close and volume. From there it can compute returns, find the best and worst days or draw the curve.
Two endpoints return it. One returns end-of-day data for a single symbol between two dates, with a limit, an offset and a sort. One takes several comma-separated symbols in one call and covers a very large list of tickers.
You give
a ticker symbol and a date range
AAPL from 2026-01-01 to 2026-03-31
You get
- Open, high, low and close
- Volume
- Date
- One row per trading day
Providers, cheapest first
What actually differs between providers
Today the price runs from $0.000899 to $0.000899 across 2 endpoints. The prices are close, so pick on inputs and fields. Price is only one difference. Each entry below says what that endpoint takes or returns that the others do not.
Marketstack$0.000899 / callReturns end-of-day data for one symbol between two dates, with a limit, an offset and a sort.
marketstack-tickers-eod
Marketstack$0.000899 / callTakes several comma-separated symbols in one call and an optional exchange.
marketstack-eod
Cost
What 100 Stock price history runs cost
$0.0899
100 tickers cost about $0.0899 through Marketstack. Each run is one call.
Sample calls
The request and what comes back
Each run is one POST to /v1/runs with an endpoint id and an input. These are illustrative calls with generic values. The run's result holds the provider's own fields.
{"endpointId":"marketstack-tickers-eod","input":{"symbol":"AAPL","date_from":"2026-01-01","date_to":"2026-03-31"},"wait":30}// POST /v1/runs, then read run.status and run.result // result: returns end-of-day data for one symbol between two dates, with a limit, an offset and a sort
The prompt
Copy one prompt, give it to your agent.
Edit the names and numbers, paste it, and the agent runs the job and shows the cost.
- One run is one ticker.
- 1 step across 1 provider.
- Runs on demand, whenever you ask.
set up looot for Stock price history API - https://looot.ai/use-cases/stock-price-history-api/skill.mdBefore you start
Settle these before the first run
- Set both dates. An open range returns the most recent rows only, and a long one returns a lot of rows.
- Mind adjustments. Splits and dividends change old prices, and an adjusted close keeps the series comparable. Your agent should say which one it used.
- Batch tickers on the endpoint that takes several. One call for ten symbols is cheaper than ten calls.
FAQ
Questions people ask
More ways to run this job
- use case
- Stock price history API
- run
- ticker
- schedule
- on demand
- step
- Fetch the daily prices: marketstack
- setup
- https://looot.ai/use-cases/stock-price-history-api/skill.md
- llms.txt
- https://looot.ai/llms.txt
- updated
- 2026-10-04
Try Stock price history with your own agent.
Start your workspace, top up, and paste the prompt into the agent you already use.