FOREX.com Market API

Search and retrieve market details for tradeable instruments across 80+ forex and CFD markets. Supports full market search by name or tag to resolve Market IDs used in order placement and price subscription requests.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 2

GET /market/fullsearchwithtags Search markets with tags #
GET /cfd/markets Get CFD market information #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/forex-com:forex-com-market-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

forex-com-market-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: FOREX.com REST Market API
  description: The FOREX.com REST API, hosted at ciapi.cityindex.com/TradingAPI, enables algorithmic traders to authenticate sessions, retrieve real-time and historical price data, execute buy/sell orders across 80+ forex and CFD markets, and manage account balances, positions, and order history programmatically. Authentication uses a session-based header credential obtained from the /session endpoint. A separate FIX API is available for institutional clients.
  version: 1.0.0
  contact:
    name: FOREX.com API Support
    url: https://www.forex.com/en/help-and-support/
    email: support.en@forex.com
  termsOfService: https://www.forex.com/en-us/help-and-support/pricing-and-fees/
  x-api-id: forex-com-trading-api
  x-logo:
    url: https://www.forex.com/favicon.ico
servers:
- url: https://ciapi.cityindex.com/TradingAPI
  description: FOREX.com REST API Base URL
security:
- SessionAuth: []
  UserNameAuth: []
tags:
- name: Market
  description: Market search and instrument lookup
paths:
  /market/fullsearchwithtags:
    get:
      operationId: searchMarketsWithTags
      summary: Search markets with tags
      description: Search for tradeable instruments (forex pairs, CFDs) by name or tag. Returns a list of markets with their MarketId values, which are required for order placement and price subscription requests.
      tags:
      - Market
      parameters:
      - name: query
        in: query
        required: true
        description: Market name or tag to search for (e.g. EUR/USD)
        schema:
          type: string
        example: EUR/USD
      responses:
        '200':
          description: Market search results
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MarketSearchResponse'
  /cfd/markets:
    get:
      operationId: getCfdMarkets
      summary: Get CFD market information
      description: Retrieve market information for a specific CFD market by name. Returns MarketId and other market details needed for trading operations.
      tags:
      - Market
      parameters:
      - name: MarketName
        in: query
        required: true
        description: Market name to look up (e.g. USD/CAD)
        schema:
          type: string
        example: EUR/USD
      responses:
        '200':
          description: Market information retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CfdMarketsResponse'
components:
  schemas:
    Market:
      type: object
      properties:
        MarketId:
          type: integer
          description: Unique market identifier used for orders and price subscriptions
        Name:
          type: string
          description: Market name (e.g. EUR/USD)
        WebsiteName:
          type: string
        Bid:
          type: number
          format: double
          description: Current bid price
        Offer:
          type: number
          format: double
          description: Current offer (ask) price
        High:
          type: number
          format: double
          description: Day high price
        Low:
          type: number
          format: double
          description: Day low price
        Change:
          type: number
          format: double
        PercentChange:
          type: number
          format: double
        PriceDecimalPlaces:
          type: integer
        MarketSizesCurrencyCode:
          type: string
        ExchangeId:
          type: integer
        MarketDecimals:
          type: integer
    CfdMarketsResponse:
      type: object
      properties:
        Markets:
          type: array
          items:
            $ref: '#/components/schemas/Market'
    MarketSearchResponse:
      type: object
      properties:
        Markets:
          type: array
          items:
            $ref: '#/components/schemas/Market'
  securitySchemes:
    SessionAuth:
      type: apiKey
      in: header
      name: Session
      description: Session ID obtained from POST /session
    UserNameAuth:
      type: apiKey
      in: header
      name: UserName
      description: FOREX.com account username
externalDocs:
  description: FOREX.com API Trading Documentation
  url: https://www.forex.com/en/trading-tools/api-trading/