can i use fyers postion fuction & extract unrealized profit command to create a websocket so that when unrealized profit limit hit it will square off the position. if i call the fuction manually it is hitting server every time (suppose every 5 min) then m

can i use fyers postion fuction & extract unrealized profit command to create a websocket so that when unrealized profit limit hit it will square off the position. if i call the fuction manually it is hitting server every time (suppose every 5 min) then my square off command will get late to square off position. please help.

Hi @akshay_verma,

Yes, using our positions API, you can extract the desired command.

Cheers!