Why is Volume required to Close a Position?
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?
Replies
PanagiotisCharalampous
17 Aug 2020, 16:44
Hi heychirag,
It is designed this way to allow partial closing of positions.
Best Regards,
Panagiotis
@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
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
@PanagiotisCharalampous
chillx
17 Aug 2020, 15:46
Any updates on this one?
@chillx