# Stock Exchange API

> Stock Exchange identifies trading venues worldwide by Market Identifier Code, name, or country. It provides official exchange names, acronyms, host cities, websites, and founding dates, while paid plans add regulatory MIC and LEI identifiers.

**Endpoint:** `GET https://api.apiverve.com/v1/stockexchange`  
**Category:** Finance  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/stockexchange

## Overview

Stock Exchange provides data from the official ISO 10383 MIC registry, refreshed daily. The database includes over 2,500 active trading venues including stock exchanges, derivatives exchanges, alternative trading systems, and other market venues. Search by MIC code, exchange name, or country.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/stockexchange?mic=XNYS" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `mic` | string | Yes | The 4-character Market Identifier Code (e.g., XNYS for NYSE, XNAS for NASDAQ). length 4-4 |

## Response fields

- `count` — number · Number of matching stock exchanges found
  - `exchanges.0.mic` — string · Market Identifier Code (ISO 10383 standard code) · (premium)
  - `exchanges.0.operatingMic` — string · Operating Market Identifier Code if different from MIC · (premium)
  - `exchanges.0.type` — string · Exchange type code (e.g., OPRT for operating) · (premium)
  - `exchanges.0.name` — string · Official full name of the stock exchange
  - `exchanges.0.acronym` — string · Common abbreviation for the exchange
  - `exchanges.0.category` — string · Market category (e.g., RMKT for regulated market) · (premium)
  - `exchanges.0.country` — string · ISO 2-letter country code where exchange operates
  - `exchanges.0.city` — string · Primary city location of exchange
  - `exchanges.0.website` — string · Official website URL of the exchange
  - `exchanges.0.lei` — string · Legal Entity Identifier for regulatory identification · (premium)
  - `exchanges.0.creationDate` — string · ISO 8601 date when exchange was established

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "count": 1,
    "exchanges": [
      {
        "mic": "XNYS",
        "operatingMic": "XNYS",
        "type": "OPRT",
        "name": "NEW YORK STOCK EXCHANGE, INC.",
        "acronym": "NYSE",
        "category": "RMKT",
        "country": "US",
        "city": "NEW YORK",
        "website": "WWW.NYSE.COM",
        "lei": "549300HIIRNWMO0MKS45",
        "creationDate": "2005-05-23"
      }
    ]
  }
}
```

## Use cases

- **Exchange Lookup** — Look up exchange information by MIC code for trade settlement and regulatory reporting
- **Country Search** — Find all trading venues in a specific country
- **Name Search** — Search for exchanges by name when you don't know the MIC code
- **Data Enrichment** — Enrich financial data with exchange metadata like website and legal entity info

## SDKs

- **npm** — `npm install @apiverve/stockexchange` (https://www.npmjs.com/package/@apiverve/stockexchange)
- **NuGet** — `dotnet add package APIVerve.API.StockExchange` (https://www.nuget.org/packages/APIVerve.API.StockExchange)
- **Source** — https://github.com/apiverve/stockexchange-api

## More

- Full reference: https://docs.apiverve.com/ref/stockexchange
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
