Strata
Market Intelligence (Mobile App)The why behind every move, on your phone.Data APIStrata's intelligence in your platform.MCP ServerStrata's research inside your AI assistant.
DevelopersSupportArticles
ContactSign inRequest access

Products

Market Intelligence (Mobile App)Data APIMCP Server
DevelopersSupportArticlesContact
Request accessSign in

for developers

Financial data for AI agents: what an API needs to provide

An AI agent needs financial data that states when each item was true, where it came from, and when nothing is available. Without those three things, a capable model can give a confident answer built on stale, unsourced or missing information.

A person using a data screen may notice when a number looks odd. An agent has no such instinct unless the data or its instructions give it one, so the API has to supply the checks a person would make by eye.

Why is an ordinary market data feed not enough?

Numbers answer "what." Many research questions are "why" or "what changed." Answering those means connecting a company's filings, its earnings calls, its industry and the wider economy. If an agent has to assemble that from many separate sources, each with different identifiers and date conventions, errors creep in at each join. The SEC, for example, identifies companies by a CIK number, while market data usually uses ticker symbols.

For raw filings, the SEC's EDGAR APIs are a strong primary source. They return filing histories and structured financial data as JSON with no API key. Automated callers must stay under 10 requests per second and send a User-Agent naming the organization and a contact email. data.sec.gov also does not support browser cross-origin calls. What these APIs do not provide is interpretation or context, which you would need to build yourself.

Why does every item need a date?

An agent cannot judge freshness from a number alone. Each item should say when it was published or calculated, and a response should say when it was assembled.

Separate three different dates:

  • When the event happened
  • When it became public
  • When your system received it

Mixing these up causes subtle errors. A quarter that ended in March may not have been reported until May, so a backtest or a "what did we know then" question needs the publication date. A fourth case is a correction: an amended filing can change a number after the first publication, so keep each version with its own date.

Here is a real record from the SEC, showing Exxon Mobil's total assets:

curl -A "Your Company [email protected]" https://data.sec.gov/api/xbrl/companyconcept/CIK0000034088/us-gaap/Assets.json

One entry in the response:

{"end":"2026-03-31","val":464410000000,"accn":"0000034088-26-000067","fy":2026,"fp":"Q1","form":"10-Q","filed":"2026-05-04","frame":"CY2026Q1I"}

end is the date the number describes and filed is when the company filed it with the SEC. A company can publish a figure earlier, in an earnings release, so filed is the latest date the market could have learned it. A backtest running as of April 15 must not see this number.

How should an API show where a fact came from?

Each claim should link to the filing, call or article behind it. That lets the agent cite its work, and lets a person check the answer. Sources also help the model weigh evidence, since a company's filing and an anonymous rumor should not count the same.

What should happen when data is missing?

This matters a great deal for agents, because a model tends to fill silence with a plausible answer. Return an explicit empty value and say why. Three states are worth telling apart:

  • Covered, with data
  • Covered, but nothing exists right now
  • Not covered at all

A zero or blank standing in for missing data can be read as a real value, or invite the model to guess. A company with no recent insider trades is a very different finding from a company the provider does not track.

What makes an API easy for a model to use?

  • Predictable shapes. The same structure every time, with fields added rather than renamed.
  • Strict inputs. Reject unknown parameters with a clear message, so a mistaken call fails visibly.
  • Readable errors. A code and a message the model can act on. The MCP specification describes this as actionable feedback that models can use to correct themselves.
  • Retry guidance. Return HTTP 429 with a Retry-After header, so an agent waits instead of looping through its allowance.
  • Sized responses. Let the caller request only the sections it needs, because everything returned uses up the model's context window, the limited amount of text it can consider at once.
  • A published specification. OpenAPI or similar, so tools can be generated instead of written by hand.

How can I test a provider before committing?

Run five calls against any API you are considering:

  1. Ask for a ticker that does not exist, and see whether the response is clearly empty.
  2. Ask for a covered company on a topic with nothing to report, and see whether that looks different from no coverage.
  3. Send a parameter the API does not recognize, and see whether it is rejected.
  4. Go over the rate limit, and see whether the response says when to retry.
  5. Ask for data up to a past date, and see whether anything published later comes back.

How should permissions work?

Research reads and account access are different risks. Keep research read-only by default, and require separate approval before an agent can see a person's holdings or change anything. Keep keys out of URLs and out of browser or mobile code.

Also treat text coming back from any tool as untrusted. Anthropic's connector guidance warns about prompt injection: a malicious server may include hidden instructions that try to make Claude do something unintended, so it tells people to watch tool inputs and outputs and connect only to trusted servers.

What should the agent itself not do?

Decide early what it may say about buying or selling, for example: it may summarize what filings and analysts say, but not tell a person to buy or sell. Keep a record of which sources supported each answer, and test it on cases where the correct response is "there is no data for that."

How Strata helps

Strata's Data API is a REST API covering company, industry, macro and market research. Research items carry the time they were published or computed, at the item or section level. A time is empty when the source did not record one. Missing data returns empty rather than invented values.

A first request, as published on the Data API page:

curl "https://api.stratafinance.ai/v1/tickers?q=apple" -H "Authorization: Bearer $STRATA_API_KEY"

Strata's published example response, abridged:

{"tickers":[{"ticker":"AAPL","name":"Apple Inc"},{"ticker":"MLP","name":"Maui Land & Pineapple Company Inc"}],"meta":{"query":"apple","limit":10,"has_more":false,"as_of":"2026-09-07T12:00:00.000Z"}}

On a company request, meta.coverage marks each section covered, covered_empty or not_covered. That marker is left out when coverage is not yet known. Errors share one shape, and an unrecognized parameter returns 400 unknown_query_parameter. See the developer documentation for endpoints, errors and limits, and submit a short request to get a key.

Strata is not a registered investment adviser. Content is for informational purposes only.

Strata
Market Intelligence (Mobile App)Data APIMCP ServerDevelopersGuidesArticlesAboutFAQSupportContactTermsAPI TermsPrivacy

Strata is not a registered investment adviser. Content is for informational purposes only.

Copyright 2026 Catalyst Finance, Inc. Market Map figures as of Oct 13, 2026.