How to fetch the active positions with api

Hi Al ,

Can anyone please help me in getting the active positions using dhan api .

Unable to figure out how to get the open positions using dhan.get_positions() and dhan.get_order_list() .

i want the total open positions of option strikes along with their LTP .

Thanks,

Hello @alok.nayak

Assuming you want to get active positions for your trading account, you can use dhan.get_positions to fetch position details. You will get positionType as LONG or SHORT if the position is open.

We are working on releasing Market Feed which will help you with the LTP soon. Hope this helps!