KiteConnect .Net Client v5.0.0 Released

tonystark
Hi everyone,

We've released v5.0.0 of the official .Net client library for Kite Connect API. This is a major update with breaking changes.

What's new

● .NET 10 target — The library now targets net10.0 as the previous net6.0 target reached end-of-life.
● Decimal quantities — All quantity fields are now decimal for consistency and to avoid floating point calculation errors.
● Reorganized constants — Constants are now organized into sub classes for better discoverability.
● Market protection for orders for MARKET and SL-M order types.

New constants

Constants have moved from flat names to nested classes. For example:

● Constants.EXCHANGE_NSE → Constants.Exchange.NSE
● Constants.TRANSACTION_TYPE_BUY → Constants.Transaction.Buy
● Constants.ORDER_TYPE_LIMIT → Constants.OrderType.Limit
● Constants.PRODUCT_MIS → Constants.Product.MIS
● Constants.VALIDITY_TTL → Constants.Validity.TTL
● Constants.MODE_FULL → Constants.TickerMode.Full

Install / Update

NuGet Package Manager Console:
Install-Package Tech.Zerodha.KiteConnect -Version 5.0.0

.NET CLI:
dotnet add package Tech.Zerodha.KiteConnect --version 5.0.0

Market protection example

kite.PlaceOrder(
Exchange: Constants.Exchange.NSE,
TradingSymbol: "INFY",
TransactionType: Constants.Transaction.Buy,
Quantity: 1,
OrderType: Constants.OrderType.Market,
Product: Constants.Product.MIS,
MarketProtection: Constants.MarketProtection.Auto // or specify a custom percentage (1-100)
);

Links

● GitHub: https://github.com/zerodhatech/dotnetkiteconnect
● NuGet: https://www.nuget.org/packages/Tech.Zerodha.KiteConnect
Sign In or Register to comment.