Query regarding order Types.

Created at 05 Mar 2025, 06:10
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!
SI

siddasaiganesh

Joined 14.08.2024

Query regarding order Types.
05 Mar 2025, 06:10


Hi ,
I'm running a script to place limit order with relative stopLoss and takeProfit.
I don't know why the order Type has been changing when ordered (Some times to Market order and Sometime to Stop Limit Order ) which is not as expected (If market order is placed StopLoss won't be applied to that) .What we need to do to fix this? (Is this the issue with API or the behaviour of the orders?).
is the orderId remains same at all points? 
why sometimes i'm getting an Executionevent with orderId 0 and sometimes positionId 0 ?

 


@siddasaiganesh
Replies

Edward357Johnson
05 Mar 2025, 11:56 ( Updated at: 06 Mar 2025, 04:49 )

Hello!

Your order type changes might result from API behavior or execution conditions, like limits converting to market orders when triggered. Ensure explicit order types, check API documentation for secret starbucks menus orderId consistency, and handle execution events with proper logging to resolve orderId or positionId discrepancies. 

 


@Edward357Johnson