Markets and currency

Stock quote API: get prices and market movers into an AI agent

Updated · 1ToolRing team

A stock quote API returns a security's latest price, the day's change and reference figures as data your agent can read. With 1ToolRing the agent calls anyapi/google_finance.quote for each ticker and dataforseo/serp/google-finance-explore for the day's movers, then reports every number with the time it was fetched. Quotes are billed per call from your prepaid balance, and the data is for research, not investment advice.

Analysts, founders writing an investor update and developers building research assistants all hit a small, recurring job: get a handful of quotes into a document or a chat without opening ten browser tabs. An agent can do it in one request, as long as it calls a market data tool and does not guess a price from its training data.

A quote goes wrong when it loses its context. A price without its currency, exchange or time is easy to misread, and a quote taken before the open can end up next to one taken after the close. Quotes can also be delayed, depending on the exchange and the source, so the table should always say when each number was fetched.

Paste this into your agent

Works in Claude, ChatGPT, Cursor, Codex, n8n and any MCP client. Change the placeholders, keep the row cap.

Set up 1ToolRing from 1toolring.com/install, then get quotes for AAPL, MSFT, BBCA.JK and the S&P 500 index. Use anyapi/google_finance.quote, inspect the price first, and stop at 10 calls. Return a table with ticker, name, exchange, currency, price, change, percent change, previous close, market state and the time you fetched each quote, and add a note for any market that was closed at the time.

First time? Set up takes one command or one connector URL:

set up 1ToolRing - https://1toolring.com/llms.txt

Paste this into your agent's chat (Claude Code, Codex, Cursor, ChatGPT, claude.ai). Your agent sets up 1ToolRing and you sign in.

Tools this workflow uses

Your agent finds these with discover_tools and reads each input schema and price with inspect_tool. Both are free. Only a successful run is charged.

ToolWhat it does herePrice
anyapi/google_finance.quoteReturns a quote for a stock, index, ETF, fund, currency pair or crypto symbol with price, day change, exchange, market state, day range, previous close, volume, market cap and 52-week range.$0.0022 / unitRp39 / unit
anyapi/yahoo_finance.quoteGives a second quote for a stock or ETF by ticker, with price, market cap, volume and other stats, for checking a number that looks wrong.$0.0013 / unitRp24 / unit
serpapi/google/financeReturns the Google Finance quote, chart, news and financials for one ticker when the note needs more than a price.$0.020 / callRp353 / call
dataforseo/serp/google-finance-quoteFetches the Google Finance quote page for a stock, index or currency pair.$0.0027 / callRp48 / call
dataforseo/serp/google-finance-exploreFetches the Google Finance explore page with market movers, indexes and news for a daily summary.$0.0027 / callRp48 / call
dataforseo/serp/google-finance-ticker-searchTurns a company or instrument name into Google Finance tickers, so the agent quotes the listing you meant.$0.0027 / callRp48 / call

Step by step

  1. Resolve names to tickers. Write the list as tickers with their exchange where you can, because one company can trade on several exchanges in different currencies. If you only have names, let the agent run dataforseo/serp/google-finance-ticker-search first and confirm each listing before it fetches quotes.
  2. Inspect the quote tool. Ask the agent to call inspect_tool on anyapi/google_finance.quote. It returns the input schema and the price, and reading them is free. Set a call cap that matches the length of your list.
  3. Fetch one quote per ticker. Run the quote tool once per ticker and keep the raw fields. Log the time of each call next to the result, along with the market state, so a closed market is not read as a flat day.
  4. Add the movers if you need them. For a market summary, one call to dataforseo/serp/google-finance-explore returns the movers, indexes and news on the Google Finance explore page. Use that list to decide what to look at, then quote any name you plan to write about on its own.
  5. Cross-check outliers. If a price or a change looks odd, fetch the same ticker from anyapi/yahoo_finance.quote. Two sources can differ slightly because they update at different moments. A large gap usually means a wrong listing or a wrong currency.
  6. Write it up with the time. Present each price with its currency, exchange and fetch time, and state that the figures are for research. If the note will be read days later, keep the market state from the moment of the call as well.

What is a stock quote API?

A stock quote API is a service that returns a security's latest price and related figures as structured data. An agent can read fields like previous close and day range straight from the response. Through 1ToolRing the agent finds the right tool with discover_tools, reads its schema and price with inspect_tool, and pays only for the run_tool call.

Which fields should a stock quote table keep?

Keep enough context that someone reading the table next week can tell what each number was and when it was true.

ColumnWhat it meansWhy keep it
Ticker and exchangeThe listing the quote belongs toThe same company can trade in several places
CurrencyThe currency of the priceStops rupiah and dollar prices from sharing one column
PriceThe latest price the source returnedThe number people will quote
Change and percent changeThe move against the previous closeShows the direction of the day
Previous close, open, day high and lowReference figures for the sessionLets a reader judge the size of the move
Market stateWhether the market was open or closedExplains a flat or old-looking price
Fetched atThe time the agent made the callTells readers how fresh the number is

Which finance tool should I use for which job?

Start with one quote tool for the whole list and add the others only when a job calls for them.

  • A quote for any stock, index, ETF, fund, currency pair or crypto symbol: anyapi/google_finance.quote.
  • A second opinion on a stock or ETF price: anyapi/yahoo_finance.quote.
  • A quote with chart, news and financials in one response: serpapi/google/finance.
  • The day's movers, indexes and headlines: dataforseo/serp/google-finance-explore.
  • A name you cannot match to a ticker: dataforseo/serp/google-finance-ticker-search.

Are the stock quotes real time?

Treat every quote as the latest value the source had when the agent called it, which may be delayed depending on the exchange and the source. 1ToolRing passes the provider's answer through and makes no promise about feed speed of its own. For anything time sensitive, show the fetch time and market state next to the price, and check the exchange's own data before you act on it.

When is a quote API the wrong tool?

A per-call quote lookup is the wrong shape for tick-by-tick data, equity order books or a feed that a trading system executes against. You would call it constantly and still have no delivery guarantee. It fits research notes, dashboards refreshed a few times a day and agents answering questions about prices. Decisions to buy or sell stay with you and, where you need one, a licensed adviser.

What does it cost?

A weekly note on ten tickers: one quote per ticker, one movers call and two cross-checks on numbers that looked off.

CallToolCountUSDIDR
Quotes for 10 tickersanyapi/google_finance.quote10$0.022Rp390
Market movers, oncedataforseo/serp/google-finance-explore1$0.0027Rp48
Cross-checks for 2 tickersanyapi/yahoo_finance.quote2$0.0027Rp48
Total$0.027Rp486

Computed from list prices as of 2026-11-10. A run is held at its maximum and settled to the real cost, and a failed call is not charged. See how pricing works.

Questions

Is there a free stock quote API?
The quote calls are paid, at the price shown before each one runs, while finding and inspecting the finance tools is free. With no monthly plan, a weekly note on ten tickers costs only its dozen or so calls, and a quote that fails on the provider side is not charged.
Can the agent tell me whether to buy a stock?
It should not, and the prompt should not ask it to. The tools return prices and reference figures for research, so read any summary the agent writes as a description of the data. Make investment decisions with your own judgment or a licensed adviser.
Does it cover stocks outside the US?
The catalog describes anyapi/google_finance.quote as covering any stock, index, ETF, mutual fund, currency pair or crypto symbol by ticker. Test one non-US listing before you build a list around it, and keep the exchange and currency columns so local listings do not mix with US ones.
Why do two sources show different prices?
They update at different moments and may apply different delays. A small gap is normal. A large one usually means the agent picked a different listing or currency, so confirm the exchange with the ticker search.
How often can I refresh quotes?
As often as your use needs, within the limit of 60 tool requests per minute per key. Each refresh is a paid call, so a dashboard updated a few times a day costs far less than one polled every few seconds.