Skip to content

Going live with real money

The automation already runs every trading day. Real money is a configuration change, not new code.

Phone alerts, any app

An alert arrives only when your split should change, about once a week. You place two to four orders in INDmoney, Vested or any broker you already use. No API needed.

Install the free ntfy app and subscribe to your private topic (the NTFY_TOPIC secret).

Fully automatic

The daily job places the orders itself, the morning after each decision, with every safety rule below enforced in code.

Alpaca paper account first: add its keys as GitHub secrets and set SEND_ORDERS to on. Live keys and ALPACA_LIVE=yes later.

Four steps

  1. 1

    Paper first

    Run on a paper account for one to three months and compare it with this site.

  2. 2

    Make the repository private

    Actions logs of public repositories are public. Real money should not run in public.

  3. 3

    Send money under LRS

    Up to $250,000 a year with PAN and Form A2. TCS of 20% above ₹10 lakh comes back against your income tax.

  4. 4

    Switch to live keys, start small

    Set MAX_ORDER_USD to cap any single order.

Enforced in code, whatever the model says

  • Buys only from cash. Never margin, never leverage.
  • Never sells more than it holds. No short selling.
  • Each order is tagged with its decision date, so the broker rejects a second copy.
  • Stale, missing or absurd prices stop the run instead of trading.
  • One switch, SEND_ORDERS, turns every order off.

Tax in India

Not crypto tax

Gains on US-listed ETFs are capital gains on foreign securities, not the 30% VDA tax.

24 months

Under 24 months, taxed at your slab. From 24 months, 12.5% plus cess.

Losses count

Losses offset gains, and unused losses carry forward 8 years if you file on time.

Schedule FA

Report the foreign account every year in ITR-2 or ITR-3.

Brokers

Interactive Brokers accepts Indian residents and has an API. Check Alpaca's eligibility when you apply.

Estate tax

US estate tax can apply above $60,000 of US assets. Take advice before investing large sums.

Confirm with a Chartered Accountant before investing.