@

FXCM Group Press Releases

What is API Trading?

An application programming interface (API) is a set of definitions, protocols, and tools for building application software. In general terms, it is a set of clearly defined methods of communication between various software components. FXCM offers four FREE APIs, each connecting directly to FXCM’s trading server: a REST API, FIX API, Java API, and a ForexConnect API. Visit our github page above to review documentation, sample codes, real case studies and more.

REST API:

REST (Representational State Transfer) API is a web-based API using a Websocket connection that was developed with algorithmic trading in mind. Developers and investors can create custom trading applications, integrate into our platform, back test strategies and build robot trading. Calls can be made in any language that supports a standard HTTP.

FXCM utilizes the new OAuth 2.0 specification for authentication via token. This allows for a more secure authorization to access your application and can easily be integrated with web applications, mobile devices, and desktop platforms.

With the use of the socket.io library, the API has streaming capability and will push data in a JSON format. Your application will have access to our real-time streaming market data, retrieve historical price, subscribe in real time update to trading tables and place live trades.

We provide Python wrapper that can be easily integrated with Jupyter Notebook. We also provide real case studies on how to use FXCM data to build and back test strategies on popular platforms BT Analysis, QSTrader, Zipline and QuantConnect.

FIX API:

FIX API is FIX Protocol standard designed for real-time, custom institutional interface which push up to 250 price update per second (not available on other APIs). It is our fastest and most popular option. You will get full range of trading order types available at FXCM. An FXCM Trading Station account with a $5,000 minimum balance is required.

JAVA API:

Java API, a wrapper SDK of FIX API, provides clients with a fully functioning programmable API into the FXCM trading platform. It includes live streaming prices and historical prices for live trades. It is scalable, light and robust and is compatible on any Java-compliant operating system.

FOREXCONNECT API:

The ForexConnect API offers the same functionality that is available on the powerful FXCM Trading Station. This includes all of the available order types, streaming live prices, managing your positions, downloading historical instrument rates, getting account reports, and more. ForexConnect supports C++, C#, Java, VB, VBA, compatible with .Net, Linux, iOS and Android, and it is FREE.

Have Questions? We provide 24 hours support. You can send questions to api@fxcm.com.