Registry / networking / ib-api

ib-api

JSON →
library972.5.2rbrubygemsunverified

Ruby implementation of the Interactive Brokers TWS API.

gem install ib-api
INSTALL
IMPORT
SIG · IB-API
I
ib-api
networkingrubyv972.5.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

IB
require 'ib-api'

Connect to TWS and request market data for AAPL

require 'ib-api' ib = IB::Connection.new(client_id: 1) ib.connect contract = IB::Stock.new(symbol: 'AAPL') ib.send_message IB::Messages::RequestMarketData.new(contract: contract)
Debug
Known issues
gotchaRequires a running TWS or IB Gateway instance.
fix
Start TWS or IB Gateway and enable API connections in settings.
affects: >= 0.0.1
Upgrade
Version history
972.5.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
ib-api — gem install ib-api · libregistry