AngelOne 1.0.12

dotnet add package AngelOne --version 1.0.12                
NuGet\Install-Package AngelOne -Version 1.0.12                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AngelOne" Version="1.0.12" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AngelOne --version 1.0.12                
#r "nuget: AngelOne, 1.0.12"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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

  1. GetInstrumentList
  2. CreateGTTOrder
  3. GetGTTOrderList
  4. GetHistoricalData
  5. GetPosition
  6. GetHolding
  7. GetAllHoldings
  8. CancelOrder
  9. GetOrderBook
  10. GetLtp
  11. GetMultipleSymbolLtp
  12. GetMultipleSymbolOHLC
  13. GetMultipleSymbolFullLtp
  14. Place Order
  15. Modify Order
  16. Get Trade Book
  17. Get Individual Order Data
  18. CancelGTTOrder
  19. GetProfile
  20. GetFundsAndMargins
  21. 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.12 78 11/2/2024
1.0.11 132 8/23/2024
1.0.10 112 8/14/2024
1.0.9 100 8/9/2024
1.0.8 103 8/8/2024
1.0.7 88 8/6/2024
1.0.6 89 8/6/2024