I have integrated market streamer weboscket with my logic to process data and place trades. However, I would only like to place the stop loss and target order immediately, once I am assured that position is taken, how can I do this? Could you provide the logic/pseudo code using python SDK to do this?
You can listen to the Portfolio WebSocket Streamer similarly to how you integrated the market streamer WebSocket. The Portfolio WebSocket Streamer provides updates on your order placements, enabling you to confirm your positions.
Once you have verified your desired position, you can proceed with the following:
- Stop Loss (SL) Order: via the API Stop Loss Order
- Target Order: via the API Limit Order
Thank you.
Hi @Ketan can I have both the Market feed and portfolio feed in the same python script?