Using ForexConnect in COM
ForexConnect API itself does not support COM. If you need one, you can use the ForexConnect COM library.
What is ForexConnect COM?
ForexConnect COM is a support library that allows using ForexConnect API as an "in-process" COM server. The library is intended to be used by Windows applications that cannot use the standard ForexConnect library or support libraries for .NET and Java. For example, VBScript applications, Microsoft Excel, etc.
The ForexConnect COM library is not included in the official release of ForexConnect API and is delivered "as is", with the source code. We are not responsible for any damage that you have explicitly or implicitly received as a result of using this library. You have the right to modify the source code, use it, and deliver binaries and the source code of this library with your application. You may not refer to us when using the binaries received as a result of your or third-party modifications of the ForexConnect COM library source code.
ForexConnect API COM supports most of the features of ForexConnect API, namely:
- Login to the trading server.
- Retrieving prices for a specified symbol.
- Subscribing and unsubscribing for symbols and retrieving prices for symbols a user is subscribed to.
- Retrieving data from the following tables: Accounts, Orders, Trades, Closed Trades, Messages, and Summary. Note that trading tables contain calculated data for accounts, orders, and positions (such as P/L, trailing stops, summary, etc.).
- Creating orders of all types, including OCO and OTO; working with order groups (adding orders to groups, removing, etc.).
- Retrieving system properties of the trading server.
- Retrieving trading properties.
- Retrieving user permissions.
The ForexConnect COM interface is designed on the basis of the ForexConnect .NET interface. But there are a few differences:
ITableIterator.CreateTableIterator()method is added to the
Tableclass. The method is used for creating iterators for a table.
ISystemPropertiesReaderinterface corresponds to the original C++ interface.
ITimeframeCollectioninterface has the
get(int)methods instead of the indexer.
ISessionDescriptorCollectioninterface has the
Item(int)method instead of the indexer.
ITableColumnCollectioninterface has the
Item(int)methods instead of the indexers.
How to Start Using the Library?
ForexConnect COM uses ForexConnect API .NET (version 1.1.3 with Table Manager). To learn how to start using the library, please read the Getting Started section in the .chm help file delivered with the library.
Note that when you use a 32-bit version of ForexConnect API and Forex Connect API COM on a 64-bit Windows system, you must use a 32-bit version of the VBScript host engine (%windir%\syswow64\cscript.exe) to run vbs samples.
If you use 64-bit version of MS Office, please use 64-bit version of ForexConnect API and ForexConnect API COM.
Where to Get?
You can download ForexConnect COM here:
Note that before installing ForexConnect COM you should install ForexConnect API 1.1.3 or later version. You can download it here: Download.
Also note that ForexConnect COM must be installed in the directory where ForexConnect API installed.
This Article in Other Languages
|Language:||English • Español • Français • Русский • 中文 • 中文(繁體)|