Page 1 of 1

How call Average Price of an Open Position in TWS-Link?

Posted: Thu May 10, 2018 2:43 am
by Rocket130713
Hello, we would like to ask you how do we call the "Average Entry Price" of an open "position" (rather than an "order" that has been filled or partfilled) using the TWS-Link DLL? How would we code this? For example, in the screen-shot attached we want to get (call) the 131.148 average price value which is circled in "Red". We could not find the right function to do this and do not know how to code this. Would you be able to help us? Many thanks in advance. Kind regards, Rod.

Re: How call Average Price of an Open Position in TWS-Link?

Posted: Thu May 10, 2018 12:41 pm
by board_admin
The average price is a portfolio value.

(open help file from browser:)

Code: Select all

file:///C:/Program%20Files%20(x86)/trade-commander/twslink2/Documentation/html/fct_GET_PORTFOLIO_VAL.html

GET_PORFOLIO_VAL(uidcontract,5,"")