1
$\begingroup$

I do know there is documentation for the IB TWS Java API. However, instead of Java, I would like to establish a connection between Mathematica and the IBrokers API module using RLink as a 'proxy' to perform automated trading. How might I go about doing this?

$\endgroup$
1
  • $\begingroup$ Could you expand on what the advantage would be of approaching the problem this way? The approach you ask about seems quite a bit more complex than the existing solution you mention in your question. $\endgroup$
    – MarcoB
    Jun 9, 2015 at 21:06

1 Answer 1

1
$\begingroup$

It may be possible - as noted by @MarcoB its quite a convoluted way of doing things. I would just download R and RStudio and work from there.

However if you are set on using IBrokers via the R api via RLink try this (disclaimer it crashed for me on 10.1) :

Needs["RLink`"];

InstallR[];

REvaluate["install.packages(\"IBrokers\")"];
REvaluate["library(IBrokers)"];

Then follow the R API guide here. Note that it says the API is single threaded so you may run into some timing issues or other limitations if you are trying to execute or monitor multiple things at once.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.