Interactive Brokers Connector

alextag94
alextag94 Registered Posts: 8 ✭✭✭✭

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.

Tagged:

Answers

  • tgb417
    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

    @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.

  • alextag94
    alextag94 Registered Posts: 8 ✭✭✭✭

    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.php

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

    Best Regards,

    Alessandro

  • tgb417
    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
  • alextag94
    alextag94 Registered Posts: 8 ✭✭✭✭

    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.

Setup Info
    Tags
      Help me…