AngelOne 1.0.12
dotnet add package AngelOne --version 1.0.12
NuGet\Install-Package AngelOne -Version 1.0.12
<PackageReference Include="AngelOne" Version="1.0.12" />
paket add AngelOne --version 1.0.12
#r "nuget: AngelOne, 1.0.12"
// Install AngelOne as a Cake Addin #addin nuget:?package=AngelOne&version=1.0.12 // Install AngelOne as a Cake Tool #tool nuget:?package=AngelOne&version=1.0.12
AngelOne smartAPI
This is C# wrapper for smartAPI from AngelOne.
You can download the nuget package from here. https://www.nuget.org/packages/AngelOne
Demo on how to use this API for end user is here. You can find all important functions of this API in this youtube channel. https://www.youtube.com/watch?v=QMhkE-2aotY
Demo
Added demo code for the wrapper here.
Usage/Examples
var smartApi = new SmartApi();
var loginResult = await smartApi.Login("K123456", "1234", "YOUR AUTHENTICATOR KEY", "API KEY");
if (loginResult)
{
//we are in business here, we can start making the calls to smartAPI now.
var orderBook = await smartApi.GetOrderBook();
var holdings = await smartApi.GetAllHoldings();
}
Websocket Streaming is now supported
var tokenList = new List<string> { "13868", "17438", "14366", "11915" };
var obj = new WebsocketStreaming();
obj.RequestData = new WebStreamingRequestInfo
{
exchange = StreamingExchangeType.NSE,
tokens = tokenList
};
obj.OnPriceUpdate += Obj_OnPriceUpdate;
await obj.StartAsync();
private void Obj_OnPriceUpdate(WebStreamResponseInfo response)
{
Debug.WriteLine($"{DateTime.Now.TimeOfDay.ToString()} Message update for {response.token}, ltp is {response.ltp} at {response.exchangeTimeStamp} for exchnage {response.exchangeType}");
}
For now these methods are supported.
Supported Methods
- GetInstrumentList
- CreateGTTOrder
- GetGTTOrderList
- GetHistoricalData
- GetPosition
- GetHolding
- GetAllHoldings
- CancelOrder
- GetOrderBook
- GetLtp
- GetMultipleSymbolLtp
- GetMultipleSymbolOHLC
- GetMultipleSymbolFullLtp
- Place Order
- Modify Order
- Get Trade Book
- Get Individual Order Data
- CancelGTTOrder
- GetProfile
- GetFundsAndMargins
- Modify GTT Order
Roadmap
Make it fully compatible with the smartAPI.
Bringing all methods over here.
Support
For support, email manvindersingh@outlook.com I'll try to get back to you ASAP.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Otp.NET (>= 1.4.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.