Re: My order does not get through
Replace "NASDAQ" with "SUPERSOES"
"NASDAQ" in that field should throw an error. I believe code 321, "Error validating request:-'PlaceOrder' : cause - Invalid side field was entered"
RCarey
By
Robert Carey <rcarey1@...>
·
#5603
·
|
Re: My order does not get through
Luis
If your ActiveX control's name is AxTws1, then your event handlers should be
called AxTws1_orderStatus, AxTws1_errorMsg, etc.
You seem to have called them Tws1_orderStatus, etc - they are never
By
Richard L King
·
#5602
·
|
Re: Two TWS instances on one machine
You might want to take a look at virtual computing with either Virtual PC or Virtual Server from Microsoft or one of the VMWare versions for virtual computing. You can make a very small footprint of
By
ZZZ Stats
·
#5601
·
|
Re: Need reconnect strategy (getting a little desparate)
but
earlier
If it is any consolation, IB had major problems today. Accounts were
continually being logged out and back in for at least a few hours. It
was certainly a good test case for reconnection
By
CarlErikson
·
#5599
·
|
Re: Need reconnect strategy (getting a little desparate)
I posted my ATS code at
http://groups.yahoo.com/group/TWSAPI/files/Java%20Code/ibdemo.zip
It has been working for me for over 7 months, handles temporary
disconnects okay. It might give you some
By
javavic <javavic@...>
·
#5600
·
|
Re: My order does not get through
you need order id provided by API upon connection
--- "Luis C. Uribe" <lcuribe@...> wrote:
By
thedude_c
·
#5598
·
|
My order does not get through
I am working in vb.net 2005 and here is my function to test placing an
order:
Private Sub PlaceOrder()
AxTws1.placeOrder2(0, "BUY", 100, "INTC", "STK", "SMART", "NASDAQ",
"USD",
By
Luis C. Uribe <lcuribe@...>
·
#5597
·
|
Re: Need reconnect strategy (getting a little desparate)
^ I was under the impression that if the connection between IB's server
and TWS is broken, the TWS <-> api connection is also broken, but I
could be wrong about that. I see what you mean about
By
Barnet Wagman <bw@...>
·
#5596
·
|
Re: Two TWS instances on one machine
Well, it's good to know it's supposed to work. I'll poke around some
more. Maybe I didn't cleanly shut everything down after changing the
ports.
Really don't want/need another computer. Already the
By
David Bradley
·
#5595
·
|
Re: Need reconnect strategy (getting a little desparate)
Do you have any idea why EWrapper.connectionClosed() being called at
all? In the vast majority of cases the TWS / API connection is a local
socket connection which should be 100% reliable. If you
By
skunktrader2001
·
#5594
·
|
Re: Need reconnect strategy (getting a little desparate)
I've not found a definitive way of knowing when TWS has completed startup so I too sleep though for an initial 20 seconds. I then attempt connects from my API handler using eConnect(host, port,
By
Gregory Smith <gregs_net@...>
·
#5593
·
|
Re: Need reconnect strategy (getting a little desparate)
If you look at the source for EClientSocket.eConnect(), you will see that it generates an error 502 (Couldn't connect to TWS. Confirm that "Enable ActiveX and Socket Clients" is enabled on the TWS
By
skunktrader2001
·
#5592
·
|
Re: Two TWS instances on one machine
----> I suppose I could run each TWS on a separate
never heard something like this before, running 3 TWS
+ 3 paper trade accounts from single computer+ each of
them communicate with my app via
By
thedude_c
·
#5591
·
|
Re: Two TWS instances on one machine
You must have some setup / config problem. I do exactly what you are describing every day with no problems.
By
skunktrader2001
·
#5590
·
|
Two TWS instances on one machine
I thought this would be easy, but it doesn't seem to work the way I
would expect.
What I'd like to do is run two TWS instances (each logged in to a
different) account. Each TWS would be set to listen
By
David Bradley
·
#5588
·
|
How to call TWS.OCX from wsh vbscript?
I've given up on running the TWS OCX from within VB script. I'm
working on a VB.NET app to go and collect the data for me. Going OK
after the learning curve of figuring out how to communicate with
By
David Bradley
·
#5586
·
|
Re: Need reconnect strategy (getting a little desparate)
Gregory Smith wrote:
Do you have a way of detecting when TWS is actually up? It seem to take
a fair amount of time (at least 10 seconds, although I've never timed
it) for TWS to fully start. I'm a
By
Barnet Wagman <bw@...>
·
#5589
·
|
Re: Need reconnect strategy (getting a little desparate)
I start the TWS and my "API" handler in separate threads but from the same parent. If the API handler detects a disconnect, or if it fails to receive updates on particular exchanges (i.e. futures,
By
Gregory Smith <gregs_net@...>
·
#5585
·
|
Re: Need reconnect strategy (getting a little desparate)
^ Sounds like a good idea. Has anyone tried this?
By
Barnet Wagman <bw@...>
·
#5587
·
|
Re: Need reconnect strategy (getting a little desparate)
I don't know the answer to your question. But one thing I've done that
helps me stay connected more is to set my auto logoff time to 12:55 AM
eastern time. That way if it loses connection or gets
By
tripack44
·
#5583
·
|