kiteconnect
The official Python client for the Kite Connect trading API
Decision gist · record as of 2026-08-14
Yes. Kiteconnect is the official, actively maintained client for Zerodha's trading API with no security vulnerabilities, permissive licensing, and low install friction. Install it if you are building a trading application on the Zerodha platform. Do not install if you do not have a Kite Connect API account or are targeting a different broker's API.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a Kite Connect API account with valid api_key and api_secret from Zerodha.
- C compiler (GCC on Linux/BSD/macOS, Visual C++ on Windows) needed for dependency compilation.
- Low install friction with a pure-wheel distribution.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) allows commercial and private use with minimal restrictions. You may use, modify, and distribute this package freely provided you include the original license notice.
last release 2026-07-23 (22 days) · last repo commit 2026-07-23 · 1,293 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 330,670 downloads/mo, #7,533 on PyPI
Alternatives
Verify before relying
from kiteconnect import KiteConnect
kite = KiteConnect(api_key="your_api_key")
data = kite.generate_session("request_token", api_secret="your_secret")
kite.set_access_token(data["access_token"])
order_id = kite.place_order(tradingsymbol="INFY", exchange=kite.EXCHANGE_NSE, transaction_type=kite.TRANSACTION_TYPE_BUY, quantity=1, variety=kite.VARIETY_AMO, order_type=kite.ORDER_TYPE_MARKET, product=kite.PRODUCT_CNC, validity=kite.VALIDITY_DAY)- Whether the package works with Python versions beyond 3.7 (classifiers list 3.5–3.7 but requires_python is unspecified)
- Specific behavior and error handling for autoslice orders when child orders fail
What it is and what it does
Kiteconnect is the official Python client for Zerodha's Kite Connect trading API, a REST-like service for building investment and trading platforms. It wraps HTTP endpoints and WebSocket connections to let you place orders, fetch portfolio data, stream live market quotes, and manage mutual fund transactions. The library handles session management, order placement (including auto-slicing for large orders that exceed exchange limits), instrument lookups, and real-time tick subscriptions via WebSocket callbacks.
The package is designed for developers building trading applications on the Zerodha platform. It abstracts away HTTP request construction and WebSocket frame handling, exposing a Python object interface with constants for order types, exchanges, and transaction modes. Recent versions dropped Python 2.7 support and added auto-slice order placement; the current release (v5.2.1) is actively maintained and carries no known security vulnerabilities.
Use it for
- Build a retail trading dashboard that places equity and derivative orders on NSE/BSE/NFO exchanges in real time.
- Stream live market tick data via WebSocket to update price displays or trigger algorithmic trading signals.
- Automate portfolio rebalancing by fetching holdings and placing orders programmatically during market hours.
- Place mutual fund orders and track their status without manual broker interaction.
- Handle large order quantities that exceed exchange freeze limits using auto-slice order placement.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Kiteconnect is the official, actively maintained client for Zerodha's trading API with no security vulnerabilities, permissive licensing, and low install friction. Install it if you are building a trading application on the Zerodha platform. Do not install if you do not have a Kite Connect API account or are targeting a different broker's API.
Install
kiteconnect on PyPI
Before you install
Low install friction with a pure-wheel distribution. Actively maintained with a recent release (22 days old) and 1293 repository stars. Depends on several C-extension libraries (pyOpenSSL, autobahn) that require system compilers on Linux/macOS or Visual C++ on Windows, but these are well-established packages.
Requires a Kite Connect API account with valid api_key and api_secret from Zerodha. C compiler (GCC on Linux/BSD/macOS, Visual C++ on Windows) needed for dependency compilation.
License in practice
MIT license (permissive) allows commercial and private use with minimal restrictions. You may use, modify, and distribute this package freely provided you include the original license notice.
Quickstart
from kiteconnect import KiteConnect
kite = KiteConnect(api_key="your_api_key")
data = kite.generate_session("request_token", api_secret="your_secret")
kite.set_access_token(data["access_token"])
order_id = kite.place_order(tradingsymbol="INFY", exchange=kite.EXCHANGE_NSE, transaction_type=kite.TRANSACTION_TYPE_BUY, quantity=1, variety=kite.VARIETY_AMO, order_type=kite.ORDER_TYPE_MARKET, product=kite.PRODUCT_CNC, validity=kite.VALIDITY_DAY)
Verify before relying
- Whether the package works with Python versions beyond 3.7 (classifiers list 3.5–3.7 but requires_python is unspecified)
- Specific behavior and error handling for autoslice orders when child orders fail
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 7 packagesservice_identityrequestssixpyOpenSSLpython-dateutilautobahnpywin32 |
| Maintenance | Actively maintained 22 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 330,670 / month, #7,533 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Financial and Insurance IndustryLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishProgramming Language :: PythonProgramming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Topic :: Office/Business :: Financial :: InvestmentTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python Modules |
Evidence: kiteconnect-5.2.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “kite connect api client”
- kiteconnectOfficial Python client for the Kite Connect trading API, enabling…
- kafka-connect-pyA command-line tool and Python client for managing Apache Kafka…
- py-jama-rest-clientA Python REST API client for Jama Connect that retrieves and modifies…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also blackduck · dhanhq · smartapi-python · growwapi · metatrader5 · ib_async · longbridge · ib-insync · python-binance · alpaca-trade-api