FOREX.com website screenshot

FOREX.com

FOREX.com is a regulated forex and CFD trading broker (a brand of StoneX Group) offering REST and FIX APIs for automated trading and market data access. The REST API, hosted at ciapi.cityindex.com/TradingAPI, enables algorithmic traders to authenticate sessions, retrieve real-time streaming prices via Lightstreamer, execute buy/sell orders across 80+ forex and CFD markets, and manage account balances, positions, and order history programmatically. A FIX API is available for institutional clients requiring low-latency direct market connectivity.

FOREX.com publishes 11 APIs on the APIs.io network, including Session API, Account API, Market API, and 8 more. Tagged areas include Forex, FX Trading, CFD Trading, Algorithmic Trading, and Financial Services.

The FOREX.com catalog on APIs.io includes 1 JSON-LD context.

FOREX.com’s developer surface includes authentication, developer portal, documentation, getting-started guide, pricing, signup flow, support, and 9 more developer resources.

46.2/100 developing ▬ flat Agent 37/100 agent ready Full breakdown ↓
scored 2026-07-28 · rubric v0.6
AccessPaidSelf serve
13 APIs 16 Features
ForexFX TradingCFD TradingAlgorithmic TradingFinancial ServicesTrading APIsCurrency Exchange

Kin Score

Kin Score Kin Score How this is scored →
scored 2026-07-28 · rubric v0.6
Composite quality — 46.2/100 · developing
Contract Quality 15.7 / 25
Developer Ergonomics 8.7 / 20
Commercial Clarity 12.1 / 20
Operational Transparency 4.1 / 13
Governance 0.0 / 12
Discoverability 5.6 / 10
Agent readiness — 37/100 · agent ready
Machine-Readable Contract 18 / 18
Agentic Access Contract 10 / 10
MCP Server 0 / 12
Machine-Readable Auth 10 / 10
Idempotency 0 / 9
Stable Error Semantics 0 / 8
Request/Response Examples 7 / 7
Rate-Limit Signaling 7 / 7
Typed Event Surface 0 / 6
Agent Skills 0 / 5
Well-Known Catalog 0 / 4
Consent & Bot Identity 0 / 3
A2A Agent Card 0 / 8
Dry-Run / Simulate Mode 0 / 4
Improve this rating by publishing the missing artifacts — every area above can be raised, and the full rubric is at apis.io/rating/. This rating is computed from github.com/api-evangelist/forex-com: open an issue to ask a question, or submit a pull request to add artifacts. Want it done for you? Prioritized profiling — $2,500 →

APIs 13

Individual APIs this provider publishes, each with its own machine-readable definition.

FOREX.com Session API

Authenticate and manage API sessions for the FOREX.com trading platform. A POST request to the session endpoint with username, password, and AppKey returns a session ID used as ...

FOREX.com Account API

Retrieve client and trading account details including account IDs, balance, available margin, and personal account information. The /useraccount/ClientAndTradingAccount endpoint...

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

FOREX.com Pricing API

Access real-time and historical price data for forex and CFD markets. Real-time bid/ask/offer prices are delivered via Lightstreamer streaming subscriptions using MERGE mode. Hi...

FOREX.com Order API

Place and manage trade orders on the FOREX.com platform against live streaming prices. Supports market price orders with configurable direction (Buy/Sell), quantity, stop-loss, ...

FOREX.com Position API

List and manage open trading positions on the FOREX.com platform. Retrieve active positions including unrealised P&L, direction, quantity, and pricing details for all open trade...

FOREX.com Account API

Client and trading account information

FOREX.com Margin API

Account margin and cash balance

FOREX.com Market API

Market search and instrument lookup

FOREX.com Orders API

Trade order placement and management

FOREX.com Positions API

Open position management

FOREX.com Pricing API

Real-time tick history and OHLC bar history

FOREX.com Session API

Authentication and session management

Scroll for all 13

Pricing Plans 1

Published pricing tiers and plan structures.

Rate Limits 1

Documented rate limits and quota policies.

Forex Com Rate Limits

4 limits

RATE LIMITS

FinOps 1

Cost, billing, and metering signals for API financial operations.

Features 16

Notable capabilities this provider offers.

REST API using JSON over HTTP at base URL https://ciapi.cityindex.com/TradingAPI/
Header-based authentication with UserName and Session ID obtained from /session endpoint
AppKey required — obtained by contacting support.en@forex.com (3 business day activation)
Real-time bid/ask/offer pricing via Lightstreamer streaming (STREAMINGALL adapter, MERGE mode)
Historical OHLC price data up to 4,000 records per request with date range and price type options
Order execution for Buy/Sell with stop-loss, take-profit, and price tolerance slippage control
Order status streaming subscription for real-time execution updates
Account balance, available margin, open positions, and historical trade access
80+ forex and CFD markets supported including all major and minor currency pairs
FIX API available for institutional clients requiring lower latency and local liquidity sourcing
FIX API liquidity sourced locally in London, Tokyo, and New York for reduced latency
Compatible with Spread-Only and RAW Pricing account types
{"RAW Pricing accounts" => "spreads from 0.2 pips on EUR/USD with $7 USD commission per $100k notional"}
{"Spread-Only accounts" => "commission-free with wider spreads (avg 1.00 pip on EUR/USD)"}
Minimum deposit $100; recommended $2,500 for adequate risk buffer
{"Language-agnostic" => "integrations documented in Python, C++, Perl, VB.NET"}

Scroll for all 16

Semantic Vocabularies 1

JSON-LD contexts and semantic vocabularies used across these APIs.

Apis Context

0 classes · 0 properties

JSON-LD

Security Posture 3

Authentication, domain security, vulnerability disclosure, and trust-center signals.

Forex Com Authentication

apiKey · 2 schemes

SECURITY

Forex Com Domain Security

TLSv1.3 · DMARC

SECURITY

Forex Com Vulnerability Disclosure

security.txt · contact published

SECURITY

Agentic Access 1

Recommended x-agentic-access execution contracts for AI agents.

Forex Com Agentic Access

17 operations · 5 acting · 1 human-in-the-loop

17 operations · 5 acting

AGENTIC

Resources

Get Started 3

Portal, sign-up, and the first successful call

Documentation 1

Reference material describing how the API behaves

Agent Surfaces 1

MCP servers, agent skills, and machine-readable catalogs

Build 2

SDKs, sample code, and the tooling you integrate with

Access & Security 3

Authentication, authorization, and security posture

Operate 1

Status, limits, changes, and where to get help

Commercial 3

Pricing, plans, and the legal terms of use

Company 1

The organization behind the API

Other 1

Properties that don't map to a standard resource type

Source (apis.yml)

apis.yml Raw ↑
aid: forex-com
url: https://raw.githubusercontent.com/api-evangelist/forex-com/main/apis.yml
apis:
- aid: forex-com:forex-com-session-api
  name: FOREX.com Session API
  tags:
  - Authentication
  - Session Management
  - Forex
  - Trading
  properties:
  - url: https://www.forex.com/en/trading-tools/api-trading/
    type: Documentation
  description: Authenticate and manage API sessions for the FOREX.com trading platform. A POST request to the session endpoint
    with username, password, and AppKey returns a session ID used as a header credential for all subsequent REST API requests.
- aid: forex-com:forex-com-account-api
  name: FOREX.com Account API
  tags:
  - Accounts
  - Forex
  - Trading
  properties:
  - url: https://www.forex.com/en/trading-tools/api-trading/
    type: Documentation
  description: Retrieve client and trading account details including account IDs, balance, available margin, and personal
    account information. The /useraccount/ClientAndTradingAccount endpoint returns the Trading Account ID required for all
    order and position operations.
- aid: forex-com:forex-com-market-api
  name: FOREX.com Market API
  tags:
  - Markets
  - Forex
  - Currency Pairs
  - Instruments
  properties:
  - url: https://www.forex.com/en/trading-tools/api-trading/
    type: Documentation
  description: 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.
- aid: forex-com:forex-com-pricing-api
  name: FOREX.com Pricing API
  tags:
  - Pricing
  - Forex
  - Real-Time Rates
  - Streaming
  - Historical Data
  properties:
  - url: https://www.forex.com/en/trading-tools/api-trading/
    type: Documentation
  description: Access real-time and historical price data for forex and CFD markets. Real-time bid/ask/offer prices are delivered
    via Lightstreamer streaming subscriptions using MERGE mode. Historical OHLC price data supports up to 4,000 records per
    request with configurable date range, count, and price type (ask/bid/mid).
- aid: forex-com:forex-com-order-api
  name: FOREX.com Order API
  tags:
  - Orders
  - Forex
  - Trading
  - Execution
  properties:
  - url: https://www.forex.com/en/trading-tools/api-trading/
    type: Documentation
  description: Place and manage trade orders on the FOREX.com platform against live streaming prices. Supports market price
    orders with configurable direction (Buy/Sell), quantity, stop-loss, take-profit, and price tolerance. Order status updates
    are delivered via streaming subscription.
- aid: forex-com:forex-com-position-api
  name: FOREX.com Position API
  tags:
  - Positions
  - Forex
  - Trading
  properties:
  - url: https://www.forex.com/en/trading-tools/api-trading/
    type: Documentation
  description: List and manage open trading positions on the FOREX.com platform. Retrieve active positions including unrealised
    P&L, direction, quantity, and pricing details for all open trades in a trading account.
- aid: forex-com:forex-com-account-api
  name: FOREX.com Account API
  description: Client and trading account information
  tags:
  - Account
  properties:
  - type: OpenAPI
    url: openapi/forex-com-account-api-openapi.yml
- aid: forex-com:forex-com-margin-api
  name: FOREX.com Margin API
  description: Account margin and cash balance
  tags:
  - Margin
  properties:
  - type: OpenAPI
    url: openapi/forex-com-margin-api-openapi.yml
- aid: forex-com:forex-com-market-api
  name: FOREX.com Market API
  description: Market search and instrument lookup
  tags:
  - Market
  properties:
  - type: OpenAPI
    url: openapi/forex-com-market-api-openapi.yml
- aid: forex-com:forex-com-orders-api
  name: FOREX.com Orders API
  description: Trade order placement and management
  tags:
  - Orders
  properties:
  - type: OpenAPI
    url: openapi/forex-com-orders-api-openapi.yml
- aid: forex-com:forex-com-positions-api
  name: FOREX.com Positions API
  description: Open position management
  tags:
  - Positions
  properties:
  - type: OpenAPI
    url: openapi/forex-com-positions-api-openapi.yml
- aid: forex-com:forex-com-pricing-api
  name: FOREX.com Pricing API
  description: Real-time tick history and OHLC bar history
  tags:
  - Pricing
  properties:
  - type: OpenAPI
    url: openapi/forex-com-pricing-api-openapi.yml
- aid: forex-com:forex-com-session-api
  name: FOREX.com Session API
  description: Authentication and session management
  tags:
  - Session
  properties:
  - type: OpenAPI
    url: openapi/forex-com-session-api-openapi.yml
name: FOREX.com
tags:
- Forex
- FX Trading
- CFD Trading
- Algorithmic Trading
- Financial Services
- Trading APIs
- Currency Exchange
kind: contract
access: 3rd-Party
common:
- type: AgenticAccess
  url: agentic-access/forex-com-agentic-access.yml
- type: VulnerabilityDisclosure
  url: security/forex-com-vulnerability-disclosure.yml
- type: DomainSecurity
  url: security/forex-com-domain-security.yml
- type: Authentication
  url: authentication/forex-com-authentication.yml
- url: https://www.forex.com/en/trading-tools/api-trading/
  type: Portal
- url: https://www.forex.com/en/trading-tools/api-trading/
  type: Documentation
- url: https://www.forex.com/en/trading-tools/api-trading/
  type: GettingStarted
- url: https://ciapi.cityindex.com/TradingAPI/
  type: BaseURL
- url: https://github.com/ali-zahedi/forexcom
  type: PythonSDK
- url: https://github.com/rickykim93/gcapi-python
  type: PythonSDK
- url: https://www.forex.com/en-us/trading-accounts/spread-only-account/
  type: Pricing
- url: https://www.forex.com/en-us/trading-accounts/raw-pricing-account/
  type: Pricing
- url: https://www.forex.com/en-us/help-and-support/pricing-and-fees/
  type: TermsOfService
- url: https://www.forex.com/
  type: Website
- url: https://www.forex.com/en-us/trading-accounts/new-trading-account/
  type: Signup
- url: https://www.forex.com/en/help-and-support/
  type: Support
- type: Features
  data:
  - REST API using JSON over HTTP at base URL https://ciapi.cityindex.com/TradingAPI/
  - Header-based authentication with UserName and Session ID obtained from /session endpoint
  - AppKey required — obtained by contacting support.en@forex.com (3 business day activation)
  - Real-time bid/ask/offer pricing via Lightstreamer streaming (STREAMINGALL adapter, MERGE mode)
  - Historical OHLC price data up to 4,000 records per request with date range and price type options
  - Order execution for Buy/Sell with stop-loss, take-profit, and price tolerance slippage control
  - Order status streaming subscription for real-time execution updates
  - Account balance, available margin, open positions, and historical trade access
  - 80+ forex and CFD markets supported including all major and minor currency pairs
  - FIX API available for institutional clients requiring lower latency and local liquidity sourcing
  - FIX API liquidity sourced locally in London, Tokyo, and New York for reduced latency
  - Compatible with Spread-Only and RAW Pricing account types
  - RAW Pricing accounts: spreads from 0.2 pips on EUR/USD with $7 USD commission per $100k notional
  - Spread-Only accounts: commission-free with wider spreads (avg 1.00 pip on EUR/USD)
  - Minimum deposit $100; recommended $2,500 for adequate risk buffer
  - Language-agnostic: integrations documented in Python, C++, Perl, VB.NET
  sources:
  - https://www.bizstream.com/blog/a-quick-and-dirty-guide-to-placing-trades-on-forex-com-via-python/
  - https://github.com/ali-zahedi/forexcom
  - https://github.com/rickykim93/gcapi-python
  - https://www.forexbrokers.com/guides/best-api-brokers
  - https://www.forex.com/en/trading-tools/api-trading/
  updated: '2026-06-13'
accessModel:
  pricing: paid
  onboarding: self-serve
  trial: false
  try_now: false
  public: false
  label: Paid · Self-serve signup
  confidence: high
  source:
  - plans
  - authentication
  generated: '2026-07-22'
  method: derived
created: '2026-06-13'
modified: '2026-06-13'
position: Consuming
description: FOREX.com is a regulated forex and CFD trading broker (a brand of StoneX Group) offering REST and FIX APIs for
  automated trading and market data access. The REST API, hosted at ciapi.cityindex.com/TradingAPI, enables algorithmic traders
  to authenticate sessions, retrieve real-time streaming prices via Lightstreamer, execute buy/sell orders across 80+ forex
  and CFD markets, and manage account balances, positions, and order history programmatically. A FIX API is available for
  institutional clients requiring low-latency direct market connectivity.
maintainers:
- FN: Kin Lane
  email: kin@apievangelist.com
- FN: APIs.json
  email: info@apis.io
- name: FOREX.com
  url: https://www.forex.com
specificationVersion: '0.19'
image: https://www.forex.com/favicon.ico