API Support Forum
OEC API > API Support > Position->OTE Using Settlement?
Author Topic: Position->OTE Using Settlement?
(4 messages, Page 1 of 1)
Moderators: VPfau
RWare2020
Posts: 206
Joined: Feb 11, 2020


Posted: Jun 27, 2022 @ 02:55 PM             Msg. 1 of 4
It appears that the OTE value from the position may be using settlement instead of the last price to calculate the gain/loss of a position.

We have a position of corn that was sold at a rate of 7.0975, the current price is 6.5125, and the settlement price is 6.9375.

The OTE value returning is 800 while the true pnl value from the rate to the current should be $2,925.

Will you please look into this for me?

Thanks.
JSmith5611
Posts: 187
Joined:


Posted: Jun 27, 2022 @ 03:01 PM             Msg. 2 of 4
OTE uses Last price if the contract is in session, and Settlement if the contract is not.
Corn closes at 2:20 EST.
Jason Smith
RWare2020
Posts: 206
Joined: Feb 11, 2020


Posted: Jun 27, 2022 @ 03:02 PM             Msg. 3 of 4
Okay I believe that would be why then. There is a HypoPNL, but there is no documentation that I can find on that. Can you tell me what that is?
JSmith5611
Posts: 187
Joined:


Posted: Jul 13, 2022 @ 07:45 AM             Msg. 4 of 4
HypoP&L is based on the following priority scheme:

Out of session:
Settlement, then Last

Inside of session:
Bid/Ask (bids for longs, asks for shorts), then last, then settle, then the opposite of bid/ask.

In general, this is intended to show what price you could close the position for.
Jason Smith