All templates

Automated Zerodha Margin Utilization Alerts

Every 30 minutes during market hours, WebRun opens Zerodha Kite, reads your available margin, margin used, and current mark-to-market on open positions, and the moment margin utilization crosses the percentage threshold you set, sends you a Telegram message and a Twilio text so you can act before a margin call.

Runs on WebRun · Strict Lockdown policy
Every 30 minutes, during market hours WebRunorchestrates each step
1 Zerodha read margin usage and MTM
2 Telegram send the margin alert
3 Twilio send a backup text
In short

How do I get alerted before my Zerodha margin utilization gets too high?

WebRun checks your Zerodha Kite margin utilization and mark-to-market every 30 minutes during market hours, and the moment usage crosses a percentage threshold you set, sends a Telegram message and a backup text naming the current percentage and the position driving it. Managing the position stays entirely your call, WebRun only gives you the early warning.

  • A margin call risk is flagged 30 minutes at a time, not discovered after the fact
  • The threshold matches your own risk tolerance, not a generic default
  • Two channels back each other up so a critical alert is less likely to be missed

Built for intraday traders · F&O traders · active retail traders · leveraged position holders

Step by step

What does WebRun do on every run?

The exact actions WebRun takes, in order - in plain language, so you can adjust anything.

  1. WebRun signs in and gets to work

    Opens kite.zerodha.com in a real browser with your saved login - no setup, no API keys.

  2. 1
    Zerodha - read margin usage and MTM
    zerodha.com
    WebRun in Zerodha: read margin usage and MTM
    WebRun opens Zerodha to read margin usage and MTM.
    • Open Zerodha Kite and read available margin, margin used, and current mark-to-market
    • Calculate margin utilization as a percentage of total margin
    • Compare it to the threshold percentage you set

    Done when Today's margin utilization and MTM are captured for this check.

  3. 2
    Telegram - send the margin alert
    telegram.org
    WebRun in Telegram: send the margin alert
    WebRun uses Telegram to send the margin alert.
    • If utilization crosses your threshold, send a message with the current percentage and MTM
    • Name which position is contributing most to margin usage
    • Send nothing on checks where utilization stays below the threshold

    Done when A Telegram alert went out only when margin utilization actually crossed the threshold.

  4. 3
    Twilio - send a backup text
    twilio.com
    WebRun in Twilio: send a backup text
    WebRun opens Twilio to send a backup text.
    • Send a backup text with the same margin percentage for redundancy
    • Keep the message short enough to read from a lock screen
    • Skip the text on checks with no threshold breach

    Done when A text backs up every margin alert during market hours.

Run settings

How is each run configured?

Starting pageWhere Chrome opens at the start of each run
kite.zerodha.com
ScheduleRuns automatically on this cadence
Every 30 minutes, during market hours
DeliveryHow each run's result reaches you
Margin alert · Telegram
OutputWhat each run produces - A Telegram message and backup text the moment your Zerodha margin utilization crosses your set threshold.
Alert
Setup & safety

Secure by default

Connect once, stays signed in

WebRun signs in once and keeps each session in a persistent environment, so every run picks up right where it left off.

Your credentials stay in your own private environment - WebRun never stores your passwords.
Strict Lockdown

Every action is checked against this policy before it runs.

Domains ALLOWLIST
Typed input ALLOW
Shell command BLOCK
File uploads BLOCK
Runs in a contained environment More on policies
Good to know

Questions, answered

Will WebRun close a position to reduce my margin usage?

No. WebRun only reads your margin and MTM and alerts you. It never places, closes, or modifies an order, and it never adds funds to your account. Managing the margin call itself is always your decision.

How is the alert threshold set?

You choose the margin utilization percentage that should trigger an alert when you turn the template on, so it matches how much buffer you personally want to keep.

Why send both Telegram and a text?

Margin alerts are time-sensitive, so the text backs up Telegram in case a notification is missed, giving you two chances to see it before it becomes urgent.

Put this on autopilot.

Turn it on in minutes - or have our team set it up for you.