Discover this year's submissions to the Dataiku Frontrunner Awards and give kudos to your favorite use cases and success stories!READ MORE

Interactive Brokers Connector

alextag94
Level 2
Interactive Brokers Connector

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.

4 Replies
tgb417
Neuron
Neuron

@alextag94 

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.

--Tom
alextag94
Level 2
Author

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://interactivebrokers.github.io/tws-api/https://www.interactivebrokers.com/en/trading/ib-api.ph...

https://gist.github.com/robcarver17/f50aeebc2ecd084f818706d9f05c1eb4

 

Best Regards,

Alessandro 

0 Kudos
tgb417
Neuron
Neuron

@alextag94 

You might look for a python library that you can trust.

https://algotrading101.com/learn/interactive-brokers-python-api-native-guide/

 

--Tom
alextag94
Level 2
Author

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. 

0 Kudos

Labels

?
Labels (1)
A banner prompting to get Dataiku