Search the web
Sign In
New User? Sign Up
twslink
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Two questions about: GET_POSITIONS & PLACE_ORDER   Message List  
Reply | Forward Message #509 of 548 |
Re: How to check the quantity filled for stocks ?

--- In twslink@yahoogroups.com, "tgmjfj" <gmt@...> wrote:
Hello,
in documentation please read about functions
- GET_ORDER_STATUS
- GET_ORDER_VAL (table 6.6 valueids 1 and 88)


>
> Hi
> I wave a working strategy for trading US Stocks and wish to use TWSlink
> to connect to IB.
> I cannot tell which of your functions I should use to check that an
> order has been filled, or part-filled.
> e.g. I place a Buy order for 500 AAPL.
> Before I place the Stop-loss and Profit Target I need to know whether
> the Buy order was filled, or if it was part-filled, and then for how
> many shares.
> Otherwise the position size of the stop-loss and target orders could be
> incorrect.
>
> Your advice on this would be most welcome.
> tgmjfj
>





Mon Jan 26, 2009 5:39 pm

maxchinaski
Offline Offline
Send Email Send Email

Forward
Message #509 of 548 |
Expand Messages Author Sort by Date

... -3 Contract not found. How do you get the number of short positions? 2) I want to place a LIMIT & STOP order at the same time to buy: The LIMIT order...
amit_dutt_2004
Offline Send Email
Dec 6, 2008
10:06 pm

... hi, 1) sorry, this i a mistake in documentation. GET_POSTIONS returns -2147483647 if contract not found. <=> 0 else. 2) please refer to documentation about...
maxchinaski
Offline Send Email
Dec 11, 2008
1:41 pm

Hi I wave a working strategy for trading US Stocks and wish to use TWSlink to connect to IB. I cannot tell which of your functions I should use to check that...
tgmjfj
Offline Send Email
Jan 26, 2009
4:38 pm

... Hello, in documentation please read about functions - GET_ORDER_STATUS - GET_ORDER_VAL (table 6.6 valueids 1 and 88)...
maxchinaski
Offline Send Email
Jan 26, 2009
5:39 pm

Hello Thank you for your reply. I looked at at those two functions in the documentation before I posted my question. What the documentation seems to say is :- ...
tgmjfj
Offline Send Email
Jan 26, 2009
6:52 pm

... GET_ORDER_VAL (uid,88,"") returns filled size (so far)...
maxchinaski
Offline Send Email
Jan 28, 2009
3:17 pm

Thank you ! in Table 6.6. tgmjfj ... only ... use ... that ... for ... orders...
tgmjfj
Offline Send Email
Jan 28, 2009
4:06 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help