deephaven-examples / deephaven-ib

An Interactive Brokers integration for Deephaven
Apache License 2.0
64 stars 27 forks source link

TWS connection issue #126

Closed Da5hes closed 3 months ago

Da5hes commented 3 months ago

trying to simply connect to TWS:

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

Da5hes commented 3 months ago

nvm... turns out this is a notification that shows up as error