How call Average Price of an Open Position in TWS-Link?
-
- Posts: 21
- Joined: Sat Mar 03, 2018 9:23 am
How call Average Price of an Open Position in TWS-Link?
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.
- Attachments
-
- Screen_Shot.png (136.34 KiB) Viewed 22174 times
-
- Site Admin
- Posts: 244
- Joined: Mon Apr 24, 2017 3:24 pm
Re: How call Average Price of an Open Position in TWS-Link?
The average price is a portfolio value.
(open help file from browser:)
GET_PORFOLIO_VAL(uidcontract,5,"")
(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,"")