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 - https://looot.ai/skill.md

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.

Three endpoints return it. One returns end-of-day data for a ticker with filters for period and date range. 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.US from 2026-01-01 to 2026-03-31

You get

  • Open, high, low and close
  • Volume
  • Date
  • One row per trading day

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":"eodhd-eod","input":{"ticker":"AAPL.US","from":"2026-01-01","to":"2026-03-31"},"wait":30}
ResponseSample output
// POST /v1/runs, then read run.status and run.result
// result: returns end-of-day history for a ticker, with a period, a date range and a field filter

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 steps across 2 providers.
  • Runs on demand, whenever you ask.
Prompt: Stock price history API
Use looot to get the daily prices of AAPL.US 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 - https://looot.ai/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.

For agents
use case
Stock price history API
run
ticker
schedule
on demand
step
Fetch the daily prices: eodhd marketstack
setup
https://looot.ai/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.