Hi guys…
Does anyone use a code for exiting a position irrespective of the lots size when the mtm is at 1 percent profit?
Hi guys…
Does anyone use a code for exiting a position irrespective of the lots size when the mtm is at 1 percent profit?
You can accomplish this by combining market WebSocket data and the position API, followed by the order API. Subscribe to the instrument for which you have a position, and perform calculations based on the Last Traded Price (LTP) and the buy price of the instrument.
For api details, refer to the following links: