☰
Login
Signup
Home
›
Python client
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
14.9K
All Categories
0
Incidents
176
Node JS client
51
Go client
840
.Net API client
397
Kite Publisher
554
.Net / VBA / Excel (3rd party)
490
Algorithms and Strategies
1.1K
Java client
1.2K
API clients
409
PHP client
4.3K
Python client
357
Mobile and Desktop apps
1.5K
Market data (WebSockets)
3.6K
General
In this Discussion
January 11
Gunja
KiteConnect Python: No holidays() method and inconsistent funds fetching – need official guidance
sanket_naik
January 10
in
Python client
Hello Zerodha Team,
I am using Kite Connect Python client (kiteconnect v5.0.1) for intraday algo trading.
I am facing the following issues and need official guidance / recommended logic from Zerodha:
1️⃣ holidays() method not available
In the Python client, the KiteConnect object does not have a holidays() method.
Verification test:
from kiteconnect import KiteConnect
kite = KiteConnect(api_key="test")
print(hasattr(kite, "holidays")) # False
Because of this:
I cannot reliably detect exchange holidays
Algo exits with incorrect assumptions like "Market closed"
Please confirm:
Is there an official replacement API to fetch exchange holidays?
Or should holidays be fetched from a separate endpoint or static source?
2️⃣ Funds availability confusion
While kite.funds() exists, its behavior is inconsistent for algo usage:
Different keys for cash/margin depending on account
No clear documentation on which field should be used for intraday margin checks
Please clarify:
The correct and stable way to fetch available trading balance
Which key should be used for MIS / intraday strategies
3️⃣ Post NSE Algo SOP clarification
As per the NSE circular (July 22) regarding API & Algo trading:
Static IP requirement
Order rate limit (10 orders/second)
Strategy registration requirements
Kindly confirm:
Whether these changes impact retail Kite Connect Python users
Any mandatory code-side changes required to stay compliant
Request
Please provide:
Official Python code snippets for:
Holiday detection
Funds & margin checks
Or clear documentation links if already available
This will help avoid incorrect market-time logic and capital miscalculations in live trading systems.
Kindly reply to me on
[email protected]
as well, if possible.
Thank you for your support.
Regards,
Sanket Naik
Tagged:
python
kiteconnect
bo margin calculator
holiday
Add Funds
Gunja
January 11
Please help me ,the process for algo trading,I have created App and got Api key and Secret key,lso installed the latest python version. What are next to do?How can I connect to Zerodha to python?
Sign In
or
Register
to comment.