Is there a way to get live position updates via websockets?

Is there a way to get live position updates via websockets?

can someone post a example python code here

Hi @Ashok_k

You can refer the documentation here: Portfolio Stream Feed Authorize Url | Upstox Developer API