Preparing to comply with SEBI's retail algo rules (Static IP, ratelimits, order types)

Matti
Static IP registration is live on the Kite Connect developer dashboard. You have until April 1 to do so. Log in to developers.kite.trade, go to your profile page, and enter your static IP under the "IP Whitelist" section.

What's changing from April 1

  • All order requests from an unregistered IP will be rejected. This applies to all Kite Connect users who place orders via the API, regardless of order frequency.
  • A strict 10 orders-per-second rate limit will apply. Requests exceeding this will receive a 429 response. To place more than 10 orders per second, you will need the strategy registered with the stock exchange.
  • Market orders will require market protection. Orders placed with market protection set to "0" will be rejected. Learn more.
  • MCX does not support IOC (Immediate-or-Cancel) orders in the algo segment.
  • Order slicing should be capped at a maximum of 10 slices to stay in line with the 10 orders-per-second limit.

A few things worth knowing

  • The IP applies across all apps on your Kite Connect account.
  • Sharing of IPs is permitted between family members (spouse, dependent children, and dependent parents) as per the regulation. Violation may result in the developer account being suspended.
  • Only order endpoints are will be validated against the static IP. All other API endpoints — WebSocket data, order book, positions, etc. — remain accessible from any IP.
  • If you don't yet have a static IP, you'll need to acquire one from an ISP, cloud provider (AWS, GCP, etc.), or a VPN/VPC service before April 1.
  • Tusshar18
    Tusshar18 edited March 25
    @Matti, I want a clarification on this:::: Market orders will require market protection. Orders placed with market protection set to "0" will be rejected.


    I want a clarification on this, since all the orders are executed from my UI, and the range is set before trades are executed, and all are market orders placed based on candle close of previous minute along with stop losses placed the second after executing the order

    Moreover, strategies also include short straddle, for which the SL is placed in the system, not visible in the order book, but it is there, how to proceed with this

    For this do I need to make changes in the code?
  • SpacemanSpiff
    @Matti
    I want to test this without risking live trades too much.
    Some questions on behaviour before April 1 once i register static ips.

    Are orders requests getting rejected from unregistered IP before April 1 ?
    How do we test that its working ?

    Do we have IP update frequency restrictions before April 1 ?
    Can we remove it if facing any issue and will that take effect immediately ?
  • RS6006
    @Matti

    Sharing of IPs is permitted between family members => But I am getting "The IP address(es) you are trying to add are already linked to another account. Each IP address can only be linked to one account." error when I try to add the same IP in family member account.
  • yogeshs
    You need to do that in single developer profile I think.
  • subrah
    subrah edited 5:30AM
    I have configured IP in profile page.
    Is there any API i call call from the my System to check whether the IP is configured correctly ?

    eg. GET /static_ip/config

    When called from correct system, It should return.
    {
    "status": "success",
    "data": "The static IP (x.x.x.x) configured is valid."
    }
    When called from different system, i should return error.
    {
    "status": "error",
    "data": "The static IP (x.x.x.x) configured is not valid. Your current IP is (y.y.y.y)"
    }
    I hope this option will solve @SpacemanSpiff 's problem.
    I do not want to check this configuration in live orders.
    Hoping for a solution before enabling the restriction.
    @Matti
  • RS6006
    @yogeshs, but with one profile page, how can we share with other family members, their zerodha account is different.. IP should be able to share between two different profile
  • yogeshs
    You can add multiple zerodha accounts in single developer profile.
  • knightrider
    @Matti - URGENT MATTER ! Seems like the market_protection parameter is still not there in 5.0.1 [python]

    This can become a huge problem if not fixed URGENTLY.
  • yogeshs
    Not sure about market protection impact from 1st apr.
    Whats the impact on Java kite connect ?
Sign In or Register to comment.