Excel vba reconnect

7 posts / 0 new
Last post
markleeds
Excel vba reconnect

Hi Everyone, am trying develop a trading app in excel vba. Occasionally it disconnects, does anyone have an example of how I can get it to reconnect after a fixed time period. Many thanks - Mark

markleeds
Unfortunately I've been

Unfortunately I've been unable to find a solution to this. As far as can see the IG RTD implementation uses ig.api.excel.rtd.igapirtdserver / mscoree.dll in an excel addin. This gets initialised when excel loads. It looks like its a custom COM implementation which does not expose the RTD IRTDServer interface methods (as far as I can see). For anyone interested these are ServerStart, ServerTerminate, ConnectData DisconnectData, HeartBeat and RefreshData. As such there is no way to restart streaming prices (as far as I can see) apart from shutting down excel and reloading it.

In practice this means any excel based automated trading system needs to be watched which dramatically reduces its usefulness. I would be enormously grateful if someone could comment/ provide a solution on this issue.

Many thanks and regards

Mark

Chris
Excel vba reconnect

Hi Mark,

One of our team have responded to the message you've sent via the Contact us page.

Thanks,
Chris

offthelip
I have also suffered from

I have also suffered from this problem and I would love to get a solution. Is there any further information or any work around available.

Chris
Excel vba reconnect

Hi offthelib,

Our developers believe that this would involve updating the RTD library, possibly our implementation of IConnectionListener (see source provided with the Excel sample app) to handle LS disconnect events, in particular due to session / keepalive expiry (e.g. END message with status 48 or a LOOP message).

We have added a work item to our backlog to take a look at this and will let you know when this is available.

Chris

markleeds
+1 vote for a solution,

+1 vote for a solution, shutting down and restarting excel is a real annoyance

HuguesIG
agree with markleeds; it

agree with markleeds; it really defies the purpose of building an automated system if one has to watch over it!
Are there similar connectivity issues with other SDK, i.e the one for Java or JavaScript?
I am thinking about using JavaScript; anyone familiar with the IG sample SDK ?

Log in or register to post comments