mport deephaven as dh
import deephaven.time as dht
import deephaven.plot as dhp
import deephaven_ib as dhib
from ibapi.contract import Contract
# Connect to Interactive Brokers using IbSessionTws
client = dhib.IbSessionTws(host="localhost", port=7497, client_id=30, download_short_rates=True, read_only=False)
client.connect()
deephaven running locally with
deephaven server --jvm-args "-Xmx4g -Dauthentication.psk......
17:37:29.865 STDERR ERROR:ibapi.wrapper:ERROR -1 2104 Market data farm connection is OK:usfarm
17:37:29.869 STDERR ERROR:ibapi.wrapper:ERROR -1 2106 HMDS data farm connection is OK:ushmds
17:37:29.872 STDERR ERROR:ibapi.wrapper:ERROR -1 2158 Sec-def data farm connection is OK:secdefnj
pltaform: MacBook Pro M3
TWS version: 10.30.1l (online autoupdating version)
same results for TWS offline version 10.30.1k
trying to simply connect to TWS:
deephaven running locally with
deephaven server --jvm-args "-Xmx4g -Dauthentication.psk......
pltaform: MacBook Pro M3 TWS version: 10.30.1l (online autoupdating version) same results for TWS offline version 10.30.1k