开云体育

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

Re: twsapi: Please, help


multicen2002
 

Thank you for trying David.
But again it is not working.. everything else works fine.

Anybody know how to solve my 1 week long torture with this line ??
Please, post a sample code line which really works for you and I can
go from there.

WARM Thank you to You all.

Andrew
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-----------------------------------
bad code line start here
-----------------------------------

Private Sub Command4_Click()

Tws1.placeOrder 3030, "BUY",
1, "ES", "FUT", "200209", "", "", "GLOBEX", "", "LMT", 0, 0

End Sub






--- In twsapi@y..., "David" <kotomo@p...> wrote:
First, your ORDERID - 1 could be a PROBLEM - generate a larger
number and increase by delta of 10 or more ( still first order may
cause duplicate error - keep trying or increase first and then place
an order)
after Expire Date - the strike price use 0
right use "" instead
on the exchange not sure - use "GLOBEX" if after the other changes
will not make it work(dont trade ES)
again for currency use ""
This should work
David
----- Original Message -----
From: multicen2002
To: twsapi@y...
Sent: Saturday, June 22, 2002 12:15 PM
Subject: twsapi: Please, help


Hi,
I am working on my VB API for IB platform. Thanx to ppl like you,
everything starting to work just fine.
BUT..
I wasted 1 week trying to send limit order from my box.
what is wrong with this code ??

----------------------------------------
code
----------------------------------------
Private Sub Command4_Click()

Tws1.placeOrder 1, "BUY", 1, "ES", "FUT", "200209",_
LastPrice, , "SMART", , "LMT", LastPrice, 0

End Sub

Please, help ..
multicen2002@y...



To unsubscribe from this group, send an email to:
twsapi-unsubscribe@y...



Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.

Join twsapi@groups.io to automatically receive all group messages.