Why is Volume required to Close a Position?

Created at 12 Aug 2020, 02:38
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!
CH

chillx

Joined 05.08.2020

Why is Volume required to Close a Position?
12 Aug 2020, 02:38


Why is Volume a required argument to close a position (ProtoOAClosePositionReq) ? This should be an optional argument and Position ID should be enough to close a position. Could you explain why is the API designed this way?


@chillx
Replies

chillx
17 Aug 2020, 15:46

Any updates on this one?


@chillx

PanagiotisCharalampous
17 Aug 2020, 16:44

Hi heychirag,

It is designed this way to allow partial closing of positions.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

chillx
17 Aug 2020, 17:12

RE:

PanagiotisCharalampous said:

Hi heychirag,

It is designed this way to allow partial closing of positions.

Best Regards,

Panagiotis 

Join us on Telegram

 

Okay but even then it should be an optional argument. Not specifying Volume should Close the complete position. Also, passing a really big number should close the position entirely (technically any value bigger than the actual volume). But none of this seems to be working.


@chillx

PanagiotisCharalampous
17 Aug 2020, 17:17

Hi heychirag,

We do not see any problem with the current approach at the moment. If you think it would be useful, post a suggestion and if it gets enough votes the product team will consider it.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous