API Support Forum
OEC API > API Support > Retrieve the working position P/L in points
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


Posted: Apr 24, 2010 @ 02:02 PM             Msg. 1 of 9
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


Posted: Apr 27, 2010 @ 10:32 AM             Msg. 2 of 9
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


Posted: Apr 27, 2010 @ 02:02 PM             Msg. 3 of 9
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


Posted: Apr 27, 2010 @ 02:08 PM             Msg. 4 of 9
What is a currently active position in your terms?
YYogev
Posts: 18
Joined: Apr 21, 2010


Posted: Apr 27, 2010 @ 03:47 PM             Msg. 5 of 9
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


Posted: Apr 27, 2010 @ 03:50 PM             Msg. 6 of 9
You can find out such position in the list of positions.
YYogev
Posts: 18
Joined: Apr 21, 2010


Posted: Apr 27, 2010 @ 04:05 PM             Msg. 7 of 9
Great!
Thanks

Yogev Cohen
YYogev
Posts: 18
Joined: Apr 21, 2010


Posted: Apr 27, 2010 @ 04:05 PM             Msg. 8 of 9
One quick question how can I found out the last (latest)
position?

Yogev Cohen
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Apr 27, 2010 @ 04:28 PM             Msg. 9 of 9
There will be only one position per contract in AvgPositions.