{"repo":"lbilli/rib","free":true,"listed":false,"github":"https://github.com/lbilli/rib","clone":"git clone https://github.com/lbilli/rib.git","description":"An R implementation of Interactive Brokers API","language":"R","stars":46,"topics":["r","interactive-brokers","api-client","ib-api"],"license":"GPL-3.0","category":"api-integrations-sdks","readme_excerpt":"rib An R implementation of Interactive Brokers API Originally inspired by IBrokers , rib is a native R client that implements Interactive Brokers API to communicate with TWS or IBGateway. It aims to be feature complete, however it does not support legacy versions. It is noteworthy to mention that the official IB API has recently adopted Protocol Buffers as the underlying wire format, replacing the legacy custom protocol. This package followed suit and support for the latter has been dropped. Currently, only API versions v213+ are supported, which translates to TWS version 10.40 or later. The package design mirrors the official C++/Java IB API, which is based on an asynchronous communication model over TCP. Installation To install from CRAN: To install the latest snapshot from GitHub, assuming devtools or at least remotes is already installed: Usage The user interacts mainly with two classes, implemented as R6 objects: - IBClient : responsible to establish a connection and send requests to the server - IBWrap : base class holding the callbacks that are invoked when responses are processed. User customizations are derived from this class. Other data structures, such as Contract and Order , are implemented as R lists, or nested lists, and mirror the respective classes in the official IB API. A complete minimal working example is shown. For this code to work, an instance of IB TWS or IBGateway needs to be running on the local machine and listening on port 4002 . Note: demo or pap","default_branch":null,"files":null,"tree":[],"storefront":"/r/lbilli","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lbilli/rib/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}