spotware / openapi-proto-messages

Open API Proto Messages
https://openapi.ctrader.com
MIT License
21 stars 9 forks source link

API Request #6

Closed Vasile-Peste closed 2 years ago

Vasile-Peste commented 2 years ago

Since you have introduced ProtoOADealListByPositionIdReq I would suggest creating also a ProtoOAOrderListByPositionIdReq which would allow reconstructing the entire life cycle of a position without the need to make deep search and perform many requests to ProtoOAOrderListReq.

I would also suggest a ProtoOAPositionHistoryReq which should return all the the position orders, deals, swaps... all information about a position. This will avoid sending 5-10 requests to different ProtoOA methods for composing the whole situtation of a position.

Whad do you think?

Thank you for your great job 👏

amusleh-spotware-com commented 2 years ago

We already considering to add ProtoOAOrderListByPositionIdReq. We will also add the DealListByOrderIdReq which will give you all the deals related to an order.

Vasile-Peste commented 2 years ago

Awesome, looking forward this update