# Choose a listing across exchanges

> Use the listing’s exchange, currency and canonical ID to carry its identity from one operation to the next.

Canonical URL: https://quantset.dev/docs/guides/instrument-ids
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.

Use the listing’s exchange, currency and canonical ID to carry its identity from one operation to the next.

## From a company name to a listing

Search `GET /api/v1/instruments?q=Shell`. Inspect name, exchange, country and quote_currency for each candidate. For the London listing use `GET /api/v1/prices?ticker=global:SHEL.L&limit=1`. A class share, foreign listing or depositary receipt can have a different price and currency.

## Single and batch requests

Use ticker=NVDA when the selector is unambiguous. A venue suffix distinguishes 7203.T in Tokyo and 700.HK in Hong Kong. The exact catalog record lives at `/api/v1/instruments/{instrument_id}`. For two quotes use `GET /api/v1/quotes?tickers=NVDA,SHEL.L` and join the results by returned instrument_id.

## Resolve a collision

A bare BTC can refer to an equity or a crypto pair. On 422 ambiguous_instrument, inspect candidates and ask which asset the researcher intended. Reuse that canonical ID. For filings by legal issuer, issuer_cik can identify the filer even when multiple share classes exist. The [filings guide](/docs/api/sec-filings) shows both lookup forms.

---

## 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.
