Looks like an incredible piece of work. I am just confused with the title which has NestTrader & Autoit. Whereas it deals with Ami for snap quote. I can only remember tracerbullet's work that is close to this.
Haven’t use pi so have to download it.
Complete crap, you cannot test it after market hour & also look slow.
Anyway if get time & succeed will post result.
Concept how to replicate Dhan Webhook using Nesttrader:
1) open tradingview set Alert message (take clue from Dhan message format)
2) under notification tab select send email
3) configure outlook to receive email
Now Coding part using Autoit
4) use Outlook Com object ( Outlook.Application ) to monitor new incoming email
5) if email is from tradingview then read the message
6) fill the Nesttrader buy/ sell window as per logic using Autoit (and tada.... done)