Use case, Stock price history

Stock price history API for your agent. One call per ticker.

Send a ticker symbol and a date range. Read open and high back. Your agent picks the provider, and you pay per call.

Give this to your agent
set up looot for Stock price history API - https://looot.ai/use-cases/stock-price-history-api/skill.md

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.

  1. Marketstack logoMarketstack

    Returns end-of-day data for one symbol between two dates, with a limit, an offset and a sort.

    marketstack-tickers-eod
    $0.000899 / call
  2. Marketstack logoMarketstack

    Takes several comma-separated symbols in one call and an optional exchange.

    marketstack-eod
    $0.000899 / call

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.

Request
{"endpointId":"marketstack-tickers-eod","input":{"symbol":"AAPL","date_from":"2026-01-01","date_to":"2026-03-31"},"wait":30}
ResponseSample output
// 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.
Prompt: Stock price history API
Use looot to get the daily prices of AAPL from 2026-01-01 to 2026-03-31 and return date, open, high, low, close and volume, plus the best and the worst day. 1. Set up https://looot.ai/skill.md. 2. Search the catalog for each step and check its price before you call. 3. Run the cheapest endpoint that fits. 4. Show the results as a table and the total cost.

Give this to your agent
Setup command
set up looot for Stock price history API - https://looot.ai/use-cases/stock-price-history-api/skill.md

Before 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

Daily returns, the best and worst day, a moving average and the largest drop from a peak. Your agent computes them from the rows with its own tools, and looot returns the data and bills the calls.

Both endpoints take the bare symbol, such as AAPL. The one that takes several symbols also takes an optional exchange.

Send the ticker and a date range to an end-of-day endpoint. Your agent reads back one row per trading day with open, high, low, close and volume.

Yes, on the endpoint that takes comma-separated symbols. The other takes one ticker per call.

The catalog has split and dividend endpoints from these providers. The end-of-day calls return the price rows.

That depends on the provider and the ticker. State the date range you need, and read the endpoint page for limits.

You pay per call, and the price depends on the provider your agent picks. This page reads the cheapest live price from the catalog and shows no number when the catalog is unreachable.

No. A call that fails at the provider costs nothing, and your agent can retry it or send it to another provider.

No. One looot key reaches every provider in the catalog. You top up once, and each call is billed at the price shown before it runs.

Send a POST to /v1/runs with the endpoint id, the input and a new idempotency key, and your looot token in the Authorization header. With wait set to 30, the answer comes back in the response when the run ends within 30 seconds. Otherwise poll GET /v1/runs/<runId>.

That needs scheduled runs, not available yet. Run it by hand whenever you want fresh results.

No. looot bills per call, and nothing runs while your agent is idle.

More ways to run this job

For agents
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.