Author |
Topic: Overnight Position Prices (4 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
PNannis Posts: 17 Joined: Apr 16, 2014 |
I noticed that when I carry a position across sessions the price in the position record reflects the average fill price not and not each open fill that made up the open position.
Is there any way to get the price & quantity of each individual fill of a carried position? I need it to properly calculate P&L when closing the position. Peter Nannis |
||||
VPfau Moderator Posts: 164 Joined: |
Peter,
You can use Account.DetailedPositions -> Fills(Type: PositionFill) This collection contains fills of Position. If you need the original fill information you can use PositionFill.SourceFill You can find information about these properties at our online API documentation: http://www.openecry.com/api/api/index.html Thanks Vitaliy Pfau |
||||
PNannis Posts: 17 Joined: Apr 16, 2014 |
That's what I am doing but for Overnight position the "SourceFill" is set to null and the price is an Average Price and not each partial fill of a position.
So where to a get each individual fill for a position that is carried across sessions? ?Peter Peter Nannis |
||||
VPfau Moderator Posts: 164 Joined: |
Peter,
we do not provide such fills. Vitaliy Pfau |
||||