ForexConnect API 1.4.1 beta version has been released.
Release notes
Changes
1. Ability to retrieve information about commissions has been added.
To retrieve information about commissions, use new interface IO2GCommissionsProvider.
New method getCommissionsProvider has been added to the IO2GSession interface.
Using the IO2GCommissionsProvider interface you can:
1. Retrieve lists of commissions for the specified offer and account. For this purpose, use method IO2GCommissionsProvider.getCommissionDescriptions.
2. Calculate estimated commissions for trading operations. For this purpose, use the following methods: IO2GCommissionsProvider.calcOpenCommission, IO2GCommissionsProvider.calcCloseCommission, IO2GCommissionsProvider.calcTotalCommission.
2. The Search function has been updated. It is now possible to search not only for specified values, but also for values that are greater, less or between the specified ones.
New enumeration O2GRelationalOperators has been added. A new parameter with the O2GRelationalOperators type has been added to the following methods:
getNextGenericRowByColumnValue, getNextGenericRowByMultiColumnValues, getNextGenericRowByColumnValues, getNextGenericRowByCondition
3. It is now possible to receive only trading events omitting events caused by data recalculation. New method setTableEventsFilter has been added to the IO2GTable interface.
4. Ability to set request timeouts has been added. If a timeout expires and there is no request response, ForexConnect will send the request failed notification.
New methods setRequestsTimeout, getRequestsTimeout have been added to IO2GSession.
5. It is now possible to retrieve notifications about beginning\ending of the table events batch. The events batch is a set of events generated for a table by a single server message. The IO2GUpdatesProcessStatusListener interface has been added.
6. You can choose the mode of the open price for the candle calculation using the Close price of the previous candle or first tick of the current candle. The new parameter has been added to fillMarketDataSnapshotRequestTime.
Breaking changes:
1. New parameter in methods getNextGenericRowByColumnValue, getNextGenericRowByMultiColumnValues, getNextGenericRowByColumnValues.
To simulate the old behavior, the "EqualTo" value of the new parameter should be used.
2. New parameter in the fillMarketDataSnapshotRequestTime.
To simulate the old behaviour, the "PreviousClose" value of the new parameter should be used.
You can download the release here:
Download