# Switch from FMP

> Move from Financial Modeling Prep by changing the host and the key.

Canonical URL: https://quantset.dev/docs/switch/fmp
Full LLM API Contract: https://api.quantset.dev/llms-full.txt

> ## For AI agents
> The QuantSet API is at https://api.quantset.dev. Send the key in the `X-API-Key` header. The sandbox key `mw_demo` needs no signup and reads the sample listings.
> No key yet? An agent can open an account on its own: https://api.quantset.dev/skill.md
> Connect an MCP client to https://api.quantset.dev/mcp. Client setup is at https://api.quantset.dev/agents.md.
> Start with https://api.quantset.dev/llms.txt or read the full reference at https://api.quantset.dev/llms-full.txt. The OpenAPI file is https://api.quantset.dev/openapi.json. Add `.md` to any docs URL to get that page as Markdown.

Keep your code. QuantSet serves the same paths, parameters and field names as Financial Modeling Prep, so moving over is a change of host and key.

          

## Change the host and the key

          

Point your client at this host and swap in your key. The key can stay in `?apikey=`, exactly where FMP has it.
          
            
```
Before  https://financialmodelingprep.com/stable/income-statement?symbol=NVDA&apikey=FMP_KEY
After   https://api.quantset.dev/api/v1/fmp/stable/income-statement?symbol=NVDA&apikey=mw_demo
```

          
          

Both the `stable` routes and the older `v3` routes work. Try one of each with the sandbox key.
          
            
```
curl "https://api.quantset.dev/api/v1/fmp/stable/income-statement?symbol=NVDA&period=annual&limit=2&apikey=mw_demo"
```

          
          
            
```
curl "https://api.quantset.dev/api/v1/fmp/v3/historical-price-full/NVDA?timeseries=5&apikey=mw_demo"
```

          

          

## Supported routes

          

Add `format=csv` to any of them for CSV.
          
            
              
| Dataset | Stable route | v3 route |
              
                
| Company profile | `/api/v1/fmp/stable/profile` | `/api/v1/fmp/v3/profile/{symbol}` |
                
| Income statement | `/api/v1/fmp/stable/income-statement` | `/api/v1/fmp/v3/income-statement/{symbol}` |
                
| Balance sheet | `/api/v1/fmp/stable/balance-sheet-statement` | `/api/v1/fmp/v3/balance-sheet-statement/{symbol}` |
                
| Cash flow statement | `/api/v1/fmp/stable/cash-flow-statement` | `/api/v1/fmp/v3/cash-flow-statement/{symbol}` |
                
| Analyst estimates | `/api/v1/fmp/stable/analyst-estimates` | `/api/v1/fmp/v3/analyst-estimates/{symbol}` |
                
| Daily prices | `/api/v1/fmp/stable/historical-price-eod/full` | `/api/v1/fmp/v3/historical-price-full/{symbol}` |
              
            
          

          

## What stays the same

          
            
- **Field names.** Each route keeps FMP's own spelling and casing, including the differences between versions such as `marketCap` on stable and `mktCap` on v3.
            
- **Response shapes.** Stable price history is a flat list. The v3 route returns `{"symbol": "NVDA", "historical": [...]}`, newest first, and accepts `serietype=line`.
            
- **Parameters.** `symbol`, `period`, `limit`, `page`, `from` and `to` behave as they do on FMP.
            
- **Errors.** These routes answer with `{"Error Message": "..."}` and the usual status codes. An unknown ticker returns `200` with an empty list.
          

          

## What is different

          
            
- **Missing values are `null`.** Where a number cannot be verified, the field is empty instead of filled in with a guess. Let your parser accept `null`.
            
- **Adjusted close is checked.** `adjClose` is filled where splits and dividends agree with the price record, and `null` where they do not.
            
- **Quarterly cash flow is per quarter.** Year to date figures are left out of these routes. The [Financial statements](/docs/api/financial-statements) endpoint has them, labelled.
            
- **US listings only.** For other markets use [Price history](/docs/api/prices) with a `global:` instrument ID such as `global:SHEL.L`.
          
          

The full list of fields served on every route is always available from the API itself.
          
            
```
curl "https://api.quantset.dev/api/v1/compatibility/fmp" -H "X-API-Key: mw_demo"
```

---

## QuantSet Ecosystem & Integrations (https://quantset.dev/integrations)

- **MCP Clients & 7 Skills:** `npx quantset init` & `npx skills add quantset/skills` (Claude, Claude Code, Cursor, ChatGPT, Codex, Hermes, OpenClaw, Block Goose, Cline, Docker MCP Toolkit — `https://api.quantset.dev/mcp`)
- **Python SDK & Agent Frameworks:** `pip install "quantset[pandas]"` · `from quantset.tools import build_agent_functions, langchain_tools, crewai_tools` (PydanticAI, LangGraph, LangChain, CrewAI, Agno, AutoGen, Google ADK, OpenAI Agents SDK)
- **TypeScript SDK & Vercel AI / Mastra:** `npm install quantset` · `import { createQuantsetTools } from "quantset/tools"` (Node 20+, Bun, Deno, Cloudflare Workers, Vercel Edge)
- **Spreadsheets & Workspaces:** Google Sheets (`=QUANTSET()` & `=IMPORTDATA()`), Microsoft Excel Power Query (`?format=csv`), Notion MCP & n8n/Make webhooks (`https://quantset.dev/docs/guides/google-sheets-excel-notion-stock-templates`)
- **Drop-In Migrations & Machine Payments:** FMP `/stable/*` & `/v3/*` adapter (`https://quantset.dev/docs/switch/fmp`), `yfinance` migration (`https://quantset.dev/docs/switch/yfinance`), autonomous signup (`https://api.quantset.dev/skill.md`), and `x402` Base USDC.
