Feature/improvement request

Created at 07 Jul 2021, 23:58
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
vasile.peste's avatar

vasile.peste

Joined 07.06.2021

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.


@vasile.peste