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

Discuss, post your questions about TWSLink here.

Users who just registered, please write an email to
forum@trade-commander.de
with your username mentioned.
So we can distinguish you from bots.
Thank you
Post Reply
Rocket130713
Posts: 21
Joined: Sat Mar 03, 2018 9:23 am

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

Post 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.
Attachments
Screen_Shot.png
Screen_Shot.png (136.34 KiB) Viewed 22084 times

board_admin
Site Admin
Posts: 244
Joined: Mon Apr 24, 2017 3:24 pm

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

Post 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,"")

Post Reply