Currently I am using tradehull librabry and client id and api tocken to login
can you give me sample code to setup static ip
Our records indicate that a Static IP address has not yet been configured for your DhanHQ Trading API access.
In line with the latest SEBI guidelines onAPI-based order placement must originate from a whitelisted Static IP address. This requirement is mandatory to remain compliant with regulatory norms.
Deadline: 15 March, 2026
If the Static IP is not configured by the above date, your API order placement capabilities may be restricted due to non-compliance.
How to configure your Static IP: