It looks like you're new here. If you want to get involved, click one of these buttons!
net10.0 as the previous net6.0 target reached end-of-life.Install-Package Tech.Zerodha.KiteConnect -Version 5.0.0dotnet add package Tech.Zerodha.KiteConnect --version 5.0.0
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)
);
Could not install package 'Tech.Zerodha.KiteConnect 5.0.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.7.2', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
.Net 4.7.2 is a really old version. We had removed support for it ~3 years back. I recommend to upgrade your project target to .Net 10.
I have a project with type "Windows Forms App (.NET Framework)" for which 4.8 is the current latest version.
The Kite library is only compiled for .Net Core App which is simply of type "Windows Forms App". for which .Net 10 is the latest version.
I suppose those two are different things.
I have a third-party dependency that does not work with .Net core yet. I was stuck at KiteConnect 4.1.0 version for that reason. But with new requirements of MarketProtection required for Market orders (and many more new things coming up), I wanted to update the core KiteConnect assembly rather than manipulating price in my order placement logic. (setting limit order with price above / below LTP by some extra amount)
So, is there any other option available meanwhile?