Interactive Brokers and TWS API Connection


Interactive Brokers and TWS API Connection
Atom
5/24/2021


Viewers,

I have attempted to connect the Designer and Terminal to the Trader work station after allowing active x connections. There is returned a error message

12:08:15 System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (10061): No connection could be made because the target machine actively refused it. [::ffff:127.0.0.1]:7497
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at System.Net.Sockets.TcpClient.Connect(IPEndPoint remoteEP)
at System.Net.Sockets.TcpClient.Connect(String hostname, Int32 port)
--- End of stack trace from previous location ---
at System.Net.Sockets.TcpClient.Connect(String hostname, Int32 port)
at Ecng.Net.NetworkHelper.Connect(TcpClient client, EndPoint address)
at #=z0o8d9XAgtHF4nZD9bBhDLTWvn742DCe7Zw==.#=zdTPxXFI=(EndPoint #=zPrumxco=)
at StockSharp.InteractiveBrokers.InteractiveBrokersMessageAdapter.OnSendInMessage(Message message)
at StockSharp.Messages.MessageAdapter.SendInMessage(Message message)

How is the error mesage resolved?

Jacob Eli Goodson



Thanks:


DrWhat

Avatar
Date: 10/19/2021
Reply


the interactive brokers connector hasnt been updated in YEARS. the current TWS API version is v951 and s# is trying to connect with v163 (4 year old API from classic TWS)

It will never work and they wont update it
Thanks:

MR_WSL

Avatar
Date: 6/2/2022
Reply


TWS API is backwards compatible according to Interactive Brokers, and updates should not be needed. There must be another problem there...
Thanks:


Attach files by dragging & dropping, , or pasting from the clipboard.

loading
clippy