-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Couldn't Connect to TWS #27
Comments
Thanks for reaching out.
Can you share the command you’re using to connect ? This is the “session.eConnect” api call in the example you referenced.
My initial guess is that the port provided in your connect call doesn’t match the port listed in your TWS config screen.
Cheers
-abel
…Sent from my iPhone
On May 27, 2018, at 2:08 PM, trippingCub ***@***.***> wrote:
I'm stuck at the very start, with Matlab R2017b showing this error:
-1 502 Couldn't connect to TWS. Confirm that "Enable ActiveX and Socket Clients" is enabled on the TWS "Configure->API" menu.
I did everything mentioned in quick start, my matlab commant statements are:
cd 'softwarespartan-IB4m-15bb4fd';
addpath(path,pwd);
addpath(path,fullfile(pwd,'docs'))
javaaddpath(fullfile(pwd,'Jar','TWS.jar'))
AccountSummaryExample
I have navigated to IBM4 folder. And I configured TWS as required.
Can you please point what I'm doing wrong here?
Appreciate your support.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Abel, Thanks for your fast response. I found this is
The port numbers are different. Which one should I change? The one in the code? |
I changed the port number in the
|
It just means the queue is empty . Some times it can take longer for TWS to
reply so pause for longer
…-abel
On Sun, May 27, 2018 at 2:50 PM trippingCub ***@***.***> wrote:
I changed the port number in the AccountSummaryExample file, it was a
succes but then showed this error:
Error using AccountSummaryExample (line 56)
Java exception occurred:
org.apache.commons.collections.BufferUnderflowException: The buffer is
already empty
at
org.apache.commons.collections.buffer.BoundedFifoBuffer.get(BoundedFifoBuffer.java:260)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEWq1Ka76cCxLzegfGyIaYoxnxKn64Omks5t2vVtgaJpZM4UPXxs>
.
|
Thank you, everything works as it should now! |
Great! — don’t hesitate to reach out if you need anything additional
…Sent from my iPhone
On May 28, 2018, at 12:10 AM, trippingCub ***@***.***> wrote:
Thank you, everything works as it should now!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I'm stuck at the very start, with Matlab R2017b showing this error:
I did everything mentioned in quick start, my matlab commant statements are:
I have navigated to IBM4 folder. And I configured TWS as required.
Can you please point what I'm doing wrong here?
Appreciate your support.
The text was updated successfully, but these errors were encountered: