Interactive Brokers Connector
![alextag94](https://us.v-cdn.net/6038231/uploads/Dataiku/nAvatar24.png)
Hello Dataiku community,
I was wondering if anyone was developing a plugin to interface Dataiku with the Interactive Brokers API to stream market data and automated trading.
Answers
-
tgb417 Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS ML Practitioner, Dataiku DSS Core Concepts, Neuron 2020, Neuron, Registered, Dataiku Frontrunner Awards 2021 Finalist, Neuron 2021, Neuron 2022, Frontrunner 2022 Finalist, Frontrunner 2022 Winner, Dataiku Frontrunner Awards 2021 Participant, Frontrunner 2022 Participant, Neuron 2023 Posts: 1,598 Neuron
Trading APIs are not necessarily my thing. That said if the API is RESTfull. You might take a look at the API Connect plugin.
https://www.dataiku.com/product/plugins/api-connect/
Someone would have to know a bit about the API to get this to work.
My guess is that this mechanism would not be robust enough to handle the volume of data produced by the markets.
Others who work in this space please jump in here.
-
Hello Tom,
Thanks for your response!
I have checked the API plugin, but unfortunately the Interactive Brokers API has some quirks that require a specific development (for instance, you need to Interactive Brokers API gateway running at specific IP address + socket, so that you may run the requests through the socket); they are developing a RESTful API but it's still in Beta and not yet suitable for enterprise use. Moreover, as you stated, handling financial market data in a well-optimized manner requires running parallel requests through multiple securities (typically, for market data APIs, each security represents a separate API call)
Interactive Brokers is the largest online broker, used by both retail traders and professionals such as myself, which is why I started this thread, as I considered it relevant enough to warrant a dedicated plugin (as opposed to the host of market data vendors and minor brokers)
The API has a strong community that have been working with it for years.
I provide some links as a reference
https://gist.github.com/robcarver17/f50aeebc2ecd084f818706d9f05c1eb4
Best Regards,
Alessandro
-
tgb417 Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS ML Practitioner, Dataiku DSS Core Concepts, Neuron 2020, Neuron, Registered, Dataiku Frontrunner Awards 2021 Finalist, Neuron 2021, Neuron 2022, Frontrunner 2022 Finalist, Frontrunner 2022 Winner, Dataiku Frontrunner Awards 2021 Participant, Frontrunner 2022 Participant, Neuron 2023 Posts: 1,598 Neuron
You might look for a python library that you can trust.
https://algotrading101.com/learn/interactive-brokers-python-api-native-guide/
-
The link you have provided is a solid one and explains well the basics of interfacing with Interactive Brokers.
I have started including into my Dataiku project some custom code that matches the structure of what is presented in the link you shared.
I thought someon in my industry would be interested in a dedicated plugin, as a interfacing with Interactive Brokers in a production-worthy manner requires the development of a lot of "housekeeping" code, that is necessary to manage errors and run worloads at scale.