开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

ERROR -1 2104 Market data farm connection is OK:usfarm.nj


 

开云体育

Hi all,

Each time I started my TWS api program (python) these messages show up. They start with "ERROR" but seems connection status report. Anyone knows why they show up?


Using args Namespace(global_cancel=False, port=7496)
serverVersion:173 connectionTime:b'20220708 03:54:17 EST'
NextValidId: 1
Executing requests
? ?doing accountOperations_req
? ?done w/ accountOperations_req
Executing requests ... finished
ERROR -1 2104 Market data farm connection is OK:usfarm.nj
Error. Id: -1 Code: 2104 Msg: Market data farm connection is OK:usfarm.nj
ERROR -1 2104 Market data farm connection is OK:hfarm
Error. Id: -1 Code: 2104 Msg: Market data farm connection is OK:hfarm
ERROR -1 2104 Market data farm connection is OK:usfuture
Error. Id: -1 Code: 2104 Msg: Market data farm connection is OK:usfuture
ERROR -1 2104 Market data farm connection is OK:cashfarm
Error. Id: -1 Code: 2104 Msg: Market data farm connection is OK:cashfarm
ERROR -1 2104 Market data farm connection is OK:usopt
Error. Id: -1 Code: 2104 Msg: Market data farm connection is OK:usopt
ERROR -1 2104 Market data farm connection is OK:usfarm
Error. Id: -1 Code: 2104 Msg: Market data farm connection is OK:usfarm
ERROR -1 2106 HMDS data farm connection is OK:hkhmds
Error. Id: -1 Code: 2106 Msg: HMDS data farm connection is OK:hkhmds
ERROR -1 2106 HMDS data farm connection is OK:ushmds
Error. Id: -1 Code: 2106 Msg: HMDS data farm connection is OK:ushmds
ERROR -1 2106 HMDS data farm connection is OK:fundfarm
Error. Id: -1 Code: 2106 Msg: HMDS data farm connection is OK:fundfarm
ERROR -1 2158 Sec-def data farm connection is OK:secdefhk
Error. Id: -1 Code: 2158 Msg: Sec-def data farm connection is OK:secdefhk



 

开云体育

Found the answer on


2104
Market data farm connection is OK A notification that connection to the market data server is ok. This is a notification and not a true error condition, and is expected on first establishing connection.
2158
Sec-def data farm connection is OK A notification that connection to the Security definition data server is ok. This is a notification and not a true error condition, and is expected on first establishing connection.
2105
A historical data farm is disconnected. Indicates a connectivity problem to an IB server. Outside of the nightly IB server reset, this typically indicates an underlying ISP connectivity issue.
2106
A historical data farm is connected. A notification that connection to the market data server is ok. This is a notification and not a true error condition, and is expected on first establishing connection.


Sorry for bothering; thanks!



From: [email protected] <[email protected]> on behalf of PurpleIce <clone8080@...>
Sent: Friday, July 8, 2022 4:00 PM
To: [email protected] <[email protected]>
Subject: [TWS API] ERROR -1 2104 Market data farm connection is OK:usfarm.nj
?
Hi all,

Each time I started my TWS api program (python) these messages show up. They start with "ERROR" but seems connection status report. Anyone knows why they show up?


Using args Namespace(global_cancel=False, port=7496)
serverVersion:173 connectionTime:b'20220708 03:54:17 EST'
NextValidId: 1
Executing requests
? ?doing accountOperations_req
? ?done w/ accountOperations_req
Executing requests ... finished
ERROR -1 2104 Market data farm connection is OK:usfarm.nj
Error. Id: -1 Code: 2104 Msg: Market data farm connection is OK:usfarm.nj
ERROR -1 2104 Market data farm connection is OK:hfarm
Error. Id: -1 Code: 2104 Msg: Market data farm connection is OK:hfarm
ERROR -1 2104 Market data farm connection is OK:usfuture
Error. Id: -1 Code: 2104 Msg: Market data farm connection is OK:usfuture
ERROR -1 2104 Market data farm connection is OK:cashfarm
Error. Id: -1 Code: 2104 Msg: Market data farm connection is OK:cashfarm
ERROR -1 2104 Market data farm connection is OK:usopt
Error. Id: -1 Code: 2104 Msg: Market data farm connection is OK:usopt
ERROR -1 2104 Market data farm connection is OK:usfarm
Error. Id: -1 Code: 2104 Msg: Market data farm connection is OK:usfarm
ERROR -1 2106 HMDS data farm connection is OK:hkhmds
Error. Id: -1 Code: 2106 Msg: HMDS data farm connection is OK:hkhmds
ERROR -1 2106 HMDS data farm connection is OK:ushmds
Error. Id: -1 Code: 2106 Msg: HMDS data farm connection is OK:ushmds
ERROR -1 2106 HMDS data farm connection is OK:fundfarm
Error. Id: -1 Code: 2106 Msg: HMDS data farm connection is OK:fundfarm
ERROR -1 2158 Sec-def data farm connection is OK:secdefhk
Error. Id: -1 Code: 2158 Msg: Sec-def data farm connection is OK:secdefhk



 

HMDS data farm connection is inactive but should be available upon demand.ushmds