Reimagine Algo Trading with

Trading APIsBuilt for Speed
< 50 msOrder execution speed
₹0Brokerage on TFP Plan
₹0API Charges forever

Explore Trade API Python SDK on GitHub.

Kotak-neo / kotak-neo-python

What’s Possible with Neo Trade APIs? Almost Everything

Place trades, track portfolios, and access market data using APIs.

  • Place and manage trades

    Place, modify, and cancel orders across Equity and F&O segments using API access.

    Place and manage trades
  • Access live market data

    Access live market data

    Stream live prices, depth and index data in real time.

  • Explore option chains

    Access option-chain data to analyse strikes and build strategies.

    Explore option chains
  • Track orders & positions

    Track orders & positions

    Get real-time order and position updates via WebSocket.

  • Access historical data

    Use historical market data for analysis and research.

    Access historical data
  • Develop options strategies

    Develop options strategies

    Leverage option-chain data to research, test and refine options strategies.

New to Algo Trade? Start in
3 simple steps

Getting started with Kotak Neo Trade APIs is quick and straightforward.

Get your API Access Token

Create your API token instantly from the Kotak Neo app using a single tap setup.

Set up TOTP

Set up two-factor auth using Google or Microsoft Authenticator for secure API login and whitelist your IP.

Whitelist IP & Place Your First Order

Whitelist your static IP, then place Limit, Stop-loss, or AMO orders via API.

High-Speed Execution.
Zero Brokerage. Unlimited Scale.

Kotak Neo Trade API handles millions of trades daily - with <50ms average order execution and zero brokerage charges.

<50 msOrder execution speed.
UnlimitedOrder modifications.
10 OrdersPer second.
10,000 Ordersper day.
10 Market Snapshots (OHLCV)data requests per second.
1 Million +Trades handled daily.

Explore More about Trade APIs

The Kotak Neo Trade API lets you unlock full trading automation — from placing orders to tracking portfolios — all through code.

Execute and manage orders seamlessly
from neo_api_client import NeoAPI


#First initialize session and generate session token
client = NeoAPI(environment="prod", access_token=None, neo_fin_key=None)
client.totp_login(mobilenumber="", ucc="", totp="")
client.totp_validate(mpin="")
try:
    #Place a Order
    client.place_order(
        exchange_segment="",
        product="",
        price="",
        order_type="",
        quantity="",
        validity="",
        trading_symbol="",
        transaction_type="",
        amo="NO",
        disclosed_quantity="0",
        trigger_price="0",
        tag="",
    )
except Exception as e:
    print("Exception when calling OrderApi->place_order: %s\n" % e)

Got questions? We've got answers. Find everything you need to know about using our platform, plans, and features.

A trading API allows you to connect your trading account with an app or software to view market data and place orders digitally. It removes the need for manual clicks on a trading platform and enables account access through technology.

To use an API in trading, you enable API access for your trading account and connect it to an app or software of your choice. Once connected, you can view market prices, place orders, and track your account digitally in an organised way.

Kotak NEO Trade API is suitable for users who want better control, automation, or customization in how they monitor markets and manage trades. It is commonly used by active traders, developers, and users building their own trading tools.

To access the API, follow these steps:

Login to your Kotak Neo account Go to Invest > Trade API > API Dashboard You can generate your API access token, view documentation links, and manage whitelisted IPs.

TRADE API as a Product/feature/ service is free of cost at present – i.e. no subscription charges for using this service. For brokerage charges on order placed using Trade API, please refer Trade API brokerage applicable FAQ.

A trading API helps reduce manual effort and improves consistency by allowing actions to be handled through systems or applications. It is useful for users who prefer structured workflows, data-driven decisions, and scalable trading setups.

You get instant access. Once you generate your token and register your static IP, your account is ready to use immediately.

  • Copy your access token from the API Dashboard.
  • Register your TOTP (Google Authenticator, Microsoft Authenticator, etc.) to generate 6-digit login codes.
  • Use the access token and hit the respective API endpoint along with correct headers and request body.
  • Refer documentation for detailed guidance.

TRADE API as a Product/feature/ service is free of cost at present – i.e. no subscription charges for using this service. For brokerage and other charges on order placed using Trade API, please refer Trade API brokerage applicable FAQ.

Yes. Neo Trade APIs are 100% RESTful and language-agnostic. Whether you code in Python, Java, C#, Node.js, or Go - you can connect easily using HTTP libraries or SDKs.

Yes. After authenticating with your access token and TOTP, you will receive session credentials. With these, you can:

  • Place orders (Market, Limit, Stop-loss, CO, BO, AMO)
  • Modify/Cancel orders
  • Access order book, trade book, positions, holdings, margins

Brokerage is ₹0 per order on all trade free plans when you place trades via Neo Trade APIs. Only standard exchange, SEBI, GST and statutory charges apply. However, for Bracket Orders, while the initial order has zero brokerage, the square-off leg will attract standard brokerage charges.

Currently, the system supports up to 10 orders per second.

Yes. Any customer with a trading account on Kotak Neo can request API access by generating their access token and registering their static IP.

Neo Trade API supports all major product types:

  • CNC - Delivery trades
  • MIS - Intraday trades
  • NRML - Normal/F&O trades
  • CO - Cover Orders
  • BO - Bracket Orders
  • AMO - After Market Orders

If you’ve forgotten or no longer have access to your TOTP, you can reset it by deregistering and then registering again. Follow these steps:

  • Go to the TOTP setup link here
  • Enter your mobile number
  • Generate and submit the OTP
  • Click on “De-register” to remove the existing TOTP
  • Once deregistered, you can register again by completing the same setup flow.

This will configure a fresh TOTP and restore access for Trade API usage.

As per SEBI regulations, market orders are not allowed for retail algo trading. Kotak Neo recommends using limit orders for better price control and execution.
If you still place a market order, it will be automatically converted into a limit order using a protection price based on the Last Traded Price (LTP):

  • Buy orders → limit price set slightly above LTP
  • Sell orders → limit price set slightly below LTP

This protection range depends on the instrument and price:

Equity & Futures (EQ / FUT):

  • Below ₹100 → within 2% of LTP
  • ₹100 to ₹500 → within 1% of LTP
  • Above ₹500 → within 0.5% of LTP

Options (OPT):

  • Below ₹1 → ₹0.10 fixed
  • ₹1 to ₹5 → 10% of LTP
  • ₹5 to ₹10 → 5% of LTP
  • ₹10 to ₹100 → 3% of LTP
  • ₹100 to ₹500 → 2% of LTP
  • Above ₹500 → 1% of LTP

Important:

  • If LTP is unavailable for options, the order will be rejected
  • Even if you place a market order, it will show as a limit order in the order book
  • The same logic applies to AMO (After Market Orders)
  • For precise and predictable execution, always use limit orders.

Top Blogs for you

The Kotak Neo Trade API lets you unlock full trading automation — from placing orders to tracking portfolios — all through code.

Note : Trade API access and associated credentials are meant exclusively for the client’s own use. Clients must not share their trading password, OTP, API key, secret key, access token or other login credentials with any person, including any unregistered or unauthorised investment adviser, portfolio manager, algo provider or third-party platform. Clients should also not permit any third party to access their trading account or route orders using the client’s registered or whitelisted static IP address.