Argiris wrote:
Is it possible to make automatic full re-connection trials (using IClient.connect()) with a live account at all? I mean, is captcha always needed for authentication or, re-connection trials (later calls of IClient.connect()) can be made without it?
If you work with
Standalone API, then there is no captcha.
Argiris wrote:
2. There are several (three, I think) ways for a trader program to keep track of connection status. IClient.ISystemListener’s onConnect()/onDisconnect(), IClient.isConnected() and, within onMessage() of the strategy class itself, IConnectionStatusMessage.isConnected(). Are there any differences between these status indications or they always hold strictly the same status?
IConnectionStatusMessage only arrives on system start and it won't inform you if the system is disconnected or trying to reconnect (such messages currently are not available from API). So basically
onDisconnect() is the method to use to handle connectivity issues.
Argiris wrote:
3. Is there any time-out set in the API for reconnection trials to take place? I mean, how long should an outage last so that you can definitely state that there is no hope to re-gain the connection by repeated calls of IClient.reconnect() and/or .connect()?
Regarding Standalone API - there are no such restrictions - your code determines how frequently the client tries to reconnect and also the attempt count, see:
https://www.dukascopy.com/wiki/#JForex_S ... m_listener