For traders interested in utilizing an automated trading system or developing their own black box strategy, FOREX.com supports fully automated trade execution via a proprietary API.
The API provides users with the ability to receive a real-time rate feed, submit trade requests, set and modify stop-loss and take-profit orders, and receive automated confirmations of trade activity.
For qualified users, we provide a testing environment that enables developers to "paper trade" and test their systems in real time before using the API in a production environment with actual funds.
FOREX.com’s API is a true standards-based XML interface that can be programmed in any network accessible language, from Perl-script to C++, Excel Macro to VB.NET managed code. The API is comprised of two separate technologies:
1. Rate Data Interface
Rate data represents the tradable prices published to the client. For this role we use a direct TCP/IP socket interface to the price publication system. To assist with programming in Visual Studio.NET and JAVA, we provide native components that handle the connection and link management. Each component creates events through delegates or call backs as appropriate.
2. Trading Functions
The trading functions are initiated by the client in the form of a request. This logic is implemented using Web Services; an XML based SOAP interface that uses HTTP as its transport. Web Services have become the de-facto B2B protocol of choice through their ease of use and cross-platform portability.
For those clients looking to automate their strategy signals generated from scripting languages such as eSignal's Formula Script or TradeStation's EasyLanguage®, please click here.
The API is available free-of-charge to FOREX.com live trading clients. We allow interested parties to register and access our API User Forum. Qualified developers have the ability to test the API with no up front monetary investment.