Broker API
FOREX.com API: questions and answers
7 questions about the FOREX.com API, each answered from the FOREX.com record on this site and nothing else. 1 of the answers rests on a record labelled unverified.
Risk warning: CFDs and spread bets are complex instruments and come with a high risk of losing money rapidly due to leverage. You can lose money on these products, and each provider publishes its own loss figure under FCA rules. You should consider whether you understand how they work and whether you can afford to take the high risk of losing your money. Automated and API trading can amplify losses through bugs, connectivity failures and runaway orders.
An answer here is the record's own wording, cut at the end of a sentence, or a list of names read from records. An answer that opens with the word Unverified has no dated source behind it. Where this page and the provider's own documentation differ, the documentation wins. Nothing here recommends a broker.
FOREX.com API questions
Does FOREX.com have an API?
This register records FOREX.com as having its own API (REST and Streaming), with availability marked as restricted. StoneX (formerly GAIN Capital) REST trading API shared by FOREX.com and StoneX Trading, the new UK name for City Index since 9 Sep 2026.
StoneX API documentation hostchecked
The FOREX.com API record. The same question for every record.
Does FOREX.com have a demo or paper trading API?
Partial: the StoneX API documentation describes two environments, Live and Pre-Production, each with its own API and streaming address.
StoneX API documentation, Getting Startedchecked
The FOREX.com record's full wording. The same question for every record.
What are FOREX.com's API rate limits?
Request throttle: 500 requests per 5 s, HTTP 429 above it. Scope: Requests from one client application. The page does not say whether the count is per session, per AppKey or per IP address.
docs.labs.gaincapital.comchecked
FOREX.com API rate limits in full, each with its scope. The same question for every record.
How do I authenticate with the FOREX.com API?
A session token. POST your user name, password and the AppKey you were issued to /v2/Session, then send the returned session token and your user name with every request as the request headers Session and UserName.
StoneX API documentation, API basicschecked StoneX API documentation, LogOn v2checked
The FOREX.com record's full wording. The same question for every record.
Does FOREX.com support streaming or WebSocket prices?
Lightstreamer, a third party streaming protocol, over long lived HTTP connections and not WebSocket as documented. Streams cover prices, news headlines, client account margin, orders and quotes, grouped into adapters.
StoneX API documentation, architecturechecked
The FOREX.com record's full wording. The same question for every record.
Is there an official Python library for FOREX.com?
No Python library marked official is recorded here for FOREX.com, which is not evidence that none exists. The record lists as community: pygcapi and forexcom. No dated source is recorded for pygcapi.
forexcomchecked
Every library in the FOREX.com record. The same question for every record.
Does FOREX.com have an MCP server?
Unverified. Not found on the pages opened, which is not proof that none exists. No MCP or agent tooling found in searches, and no first party StoneX API page was opened. Recorded as no route found, not as confirmed absence.
Unverifiedno source opened
The MCP server directory: looked for and not found. The same question for every record.
Not recorded here
The FOREX.com record cannot answer these questions yet, so they are not asked above. That is a gap in this dataset. It says nothing either way about FOREX.com.
- What does the most referenced FOREX.com error mean? Not recorded here
Where to go next
- The FOREX.com API record in full: every field with its source
- Answers for every broker and platform API
- Which retail brokers have a public trading API?
- Which broker APIs have a demo environment?
- What are the rate limits of each broker API?
- How does each broker API authenticate?
- Which broker APIs stream prices?
- Which broker APIs have an official Python library?
- Which broker APIs have an MCP server?
- What does each API's most referenced error mean?
Other brokers
In order of name. The order is not a ranking.