Feature/improvement request
Feature/improvement request
07 Jul 2021, 23:58
Hello, after several tests with Connect API, I realized that closing deals have no reference to the deals being closed.
More specifically the details of a closing deal in ProtoOAClosePositionDetail have no reference to the deals being closed.
https://spotware.github.io/open-api-docs/models/#protooaclosepositiondetail
In cTrader Web you are indicating the deals being closed in the "Closing" field:
I understand that deals to be closed are taken into account using a FIFO algorithm. But I'm not sure this is always the case and it would be useful having a direct reference to the deals/deals ids being closed, like you are doing in the UI.
My proposal is defining a new field called "closingDealsIds" in ProtoOAClosePositionDetail, containing the ids of the deals being closed or partially closed.