Is there a way to close a position or update a position with partial close using FIX API

Created at 02 Oct 2024, 04:51
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!
YM

ymalli144

Joined 11.08.2023

Is there a way to close a position or update a position with partial close using FIX API
02 Oct 2024, 04:51


Hi,

I am working on building an app that can help the traders to close the position partial or fully using FIX API but I didn't find the correct request to make this functionality.

Is there a way to close a position or update a position with partial close using FIX API?

 

Thanks.


@ymalli144
Replies

PanagiotisCharalampous
02 Oct 2024, 05:35

Hi there,

If you want to close an existing position, fully or partially, using FIX API, you need to use the New Order Single (MsgType(35)=D) message to send an order of the opposite direction and specify the position you want to modify in PosMaintRptID.

Best regards,

Panagiotis


@PanagiotisCharalampous