Author |
Topic: Allocation block net position (3 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
ARowbotham2 Posts: 2 Joined: Mar 04, 2016 |
I am looking for documentation on how to get the net position for an allocation block (instead of a single account). I would like something similar to the OnPositionChangedEvent event, except one that summarizes at the allocation block level. What is the best approach for this?
(NB., the API docs don't seem to be working - For example, http://www.openecry.com/api/api/html/P_OEC_API_AllocationBlock_TotalBalance.htm cannot be reached.) Thank you! Adam Rowbotham
|
||||
CMicciche902 Posts: 367 Joined: |
Adam,
I will have a Developer comment on your first inquiry. For the API docs, use gainfutures.com in place of openecry.com, as the domain has been retired. Correct API doc link: http://www.gainfutures.com/api/api/html/P_OEC_API_AllocationBlock_TotalBalance.htm Chris M
|
||||
NShine Posts: 36 Joined: |
I am looking for documentation on how to get the net position for an allocation block (instead of a single account). I would like something similar to the OnPositionChangedEvent event, except one that summarizes at the allocation block level. What is the best approach for this? You can subscribe to the OnDetailedPositionChanged event for this. The account parameter can be a single account or allocation block. The second parameter, contractPosition, will summarize at the same level as the account. So check contractPosition.Net for the net position. |
||||