Obtaning time and date related data for trading sessions and allowed trading ranges

Created at 04 Feb 2014, 21:29
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
AlexanderRC's avatar

AlexanderRC

Joined 04.02.2014

Obtaning time and date related data for trading sessions and allowed trading ranges
04 Feb 2014, 21:29


I have dug though all of the reference documentation but could not find any of the following.

1) Is it possible to obtain the current live sessions from within a robot? Different session may lead to different volatility for a liquidity provider. cTrader and cAlgo show them at the bottom left corner of the GUI. Exposing them as stings via an API should be fairly quick and easy to implement.

2) Is it possible to obtain when swaps are going to be billed for an open position? If a position is in a negative state, it may be cheaper to close it just before the swap occurs or at the end of allowed trading range.

3) Is it possible to obtain the beginning and the end of the session? Some robots may be oriented to adjust their strategy based on the time of day.

4) Is it possible to obtain time range when trading is enabled (allowed)? These ranges are configured in cBroker.


@AlexanderRC
Replies

Spotware
05 Feb 2014, 11:07

All 4 points are not supported by the API at the moment. We will implement these points one by one when we receive enough requests.

Please vote for your favorite features: http://vote.spotware.com/forums/229166-ideas-and-suggestions-for-ctrader-and-calgo/category/76800-calgo


@Spotware

AlexanderRC
27 Mar 2014, 19:44

RE:

Spotware said:

All 4 points are not supported by the API at the moment. We will implement these points one by one when we receive enough requests.

Please vote for your favorite features: http://vote.spotware.com/forums/229166-ideas-and-suggestions-for-ctrader-and-calgo/category/76800-calgo

Here are the ideas:

API for swaps

API for trading sessions and trading hours


@AlexanderRC