How to modify a position volume

Created at 01 Apr 2019, 17:23
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!
CT

ctid320188

Joined 19.04.2017

How to modify a position volume
01 Apr 2019, 17:23


Hi,

Is there a way to modify an existing position to increase the volume i.e. to replicate when you click on Modify Position and then increate the Qty. (Add lots to the position).

I can see if I reduce the Qty I can close off x number of units to replicate a modified position being made smaller but how do I do this for increasing the volume.

Thanks

Ro


@ctid320188
Replies

PanagiotisCharalampous
02 Apr 2019, 12:02

Hi Rowie,

You can use ProtoOANewOrderReq and specify the existing position you want the order to be added to in the positionId field.

Best Regards,

Panagiotis


@PanagiotisCharalampous

ctid320188
02 Apr 2019, 12:20

RE:

Panagiotis Charalampous said:

Hi Rowie,

You can use ProtoOANewOrderReq and specify the existing position you want the order to be added to in the positionId field.

Best Regards,

Panagiotis

Thank you Panagiotis for the reply.

Is this still possible using API Reference 1.0? as I can't see the corresponding method in the outgoingMsgFactory class.

Thanks

Ro


@ctid320188

PanagiotisCharalampous
02 Apr 2019, 12:25

Hi Rowie,

Yes it is, Check ProtoOACreateOrderReq.

Best Regards,

Panagiotis


@PanagiotisCharalampous

ctid320188
02 Apr 2019, 13:30

RE:

Panagiotis Charalampous said:

Hi Rowie,

Yes it is, Check ProtoOACreateOrderReq.

Best Regards,

Panagiotis

Thank you for the information, indeed ProtoOACreateOrderReq has solved my problem!

Excellent support.

Ro


@ctid320188