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.txtPaste 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.
| Tool | What it does here | Price |
|---|---|---|
anyapi/google_finance.quote | Returns 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.quote | Gives 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/finance | Returns 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-quote | Fetches the Google Finance quote page for a stock, index or currency pair. | $0.0027 / callRp48 / call |
dataforseo/serp/google-finance-explore | Fetches the Google Finance explore page with market movers, indexes and news for a daily summary. | $0.0027 / callRp48 / call |
dataforseo/serp/google-finance-ticker-search | Turns a company or instrument name into Google Finance tickers, so the agent quotes the listing you meant. | $0.0027 / callRp48 / call |
Step by step
- 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-searchfirst and confirm each listing before it fetches quotes. - Inspect the quote tool. Ask the agent to call
inspect_toolonanyapi/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. - 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.
- Add the movers if you need them. For a market summary, one call to
dataforseo/serp/google-finance-explorereturns 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. - 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. - 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.
| Column | What it means | Why keep it |
|---|---|---|
| Ticker and exchange | The listing the quote belongs to | The same company can trade in several places |
| Currency | The currency of the price | Stops rupiah and dollar prices from sharing one column |
| Price | The latest price the source returned | The number people will quote |
| Change and percent change | The move against the previous close | Shows the direction of the day |
| Previous close, open, day high and low | Reference figures for the session | Lets a reader judge the size of the move |
| Market state | Whether the market was open or closed | Explains a flat or old-looking price |
| Fetched at | The time the agent made the call | Tells 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.
| Call | Tool | Count | USD | IDR |
|---|---|---|---|---|
| Quotes for 10 tickers | anyapi/google_finance.quote | 10 | $0.022 | Rp390 |
| Market movers, once | dataforseo/serp/google-finance-explore | 1 | $0.0027 | Rp48 |
| Cross-checks for 2 tickers | anyapi/yahoo_finance.quote | 2 | $0.0027 | Rp48 |
| Total | $0.027 | Rp486 | ||
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?
Can the agent tell me whether to buy a stock?
Does it cover stocks outside the US?
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.