🚀 DhanTrack Setup Guide
Two things to set up once: a free Cloudflare Worker proxy + your daily Kite access token.
Part A — Deploy Cloudflare Worker (one-time, 3 mins)
2Delete all default code and paste the contents of kite-worker.js (the other file in your download).
3Click Save and Deploy. Copy the Worker URL shown (e.g. https://dhantrack.yourname.workers.dev).
4Paste that URL into the Worker URL field above and click Connect.
Part B — Daily Kite Access Token
6Each morning run this Python snippet to get a fresh token:
pip install kiteconnect # one-time install
from kiteconnect import KiteConnect
kite = KiteConnect(api_key="YOUR_API_KEY")
print(kite.login_url()) # open this URL, log in, copy request_token from redirect URL
data = kite.generate_session("REQUEST_TOKEN_HERE", api_secret="YOUR_SECRET")
print(data["access_token"]) # paste this into DhanTrack Access Token field
7Upload index.html (this file) to your Hostinger/GoDaddy public_html folder via File Manager or FTP. Done!