Author |
Topic: Retrieve the working position P/L in points (9 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
YYogev Posts: 18 Joined: Apr 21, 2010 |
Hi,
I would like to know using the OEC client API, how is it possible the get/retrieve the current, active position, or a particular position P/L in points. I read in the API that it is possible to retrieve this information (P/L) in USD. I would rather have this information in Points. How is it possible to do so? Yogev Cohen |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
Hello,
a client application can calculate it from USD P/L via the next formula, for example: CurrencyGain / ContractSize (for positions) |
||||
YYogev Posts: 18 Joined: Apr 21, 2010 |
10x,
But this information is not what I require. this will give the total Point P/L for all the positions. I only need for the currently active position. Yogev Cohen |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
What is a currently active position in your terms?
|
||||
YYogev Posts: 18 Joined: Apr 21, 2010 |
1. I preform a Buy order with qty:1
a position was open. 2. I preform a Sell order with qty:1 a position was CLOSE. I want know what is the Points p/l Per a position. An active position is a position that has a Yogev Cohen |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
You can find out such position in the list of positions.
|
||||
YYogev Posts: 18 Joined: Apr 21, 2010 |
Great!
Thanks Yogev Cohen |
||||
YYogev Posts: 18 Joined: Apr 21, 2010 |
One quick question how can I found out the last (latest)
position? Yogev Cohen |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
There will be only one position per contract in AvgPositions.
|
||||