AngleOne.SmartApi.Clients 1.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package AngleOne.SmartApi.Clients --version 1.0.3                
NuGet\Install-Package AngleOne.SmartApi.Clients -Version 1.0.3                
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="AngleOne.SmartApi.Clients" Version="1.0.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AngleOne.SmartApi.Clients --version 1.0.3                
#r "nuget: AngleOne.SmartApi.Clients, 1.0.3"                
#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 AngleOne.SmartApi.Clients as a Cake Addin
#addin nuget:?package=AngleOne.SmartApi.Clients&version=1.0.3

// Install AngleOne.SmartApi.Clients as a Cake Tool
#tool nuget:?package=AngleOne.SmartApi.Clients&version=1.0.3                

AngelOne SmartApi Client Library for .NET Core

Source Code:

https://github.com/Sen-Gupta/AngelOne.SmartApi

SmartApi Configuration

A client library demonstrating usage of the AngelOne SmartApi and WebSocket V2.

Prerequisites

Latest .Net Core SDK 8.0 or above
Visual Studio 2022 Community or above
VS Code Latest

Configuration

The SmartApiConfiguration section in the appsettings.json in the project AngelOne.SmartApi.Client.Sample.csproj includes essential credentials for authentication and authorization when interacting with the SmartApi.

"SmartApi": {
  "Credentials": {
    "ClientCode": "YourClientCode",
    "ClientPIN": "YourClientPIN",
    "TOTPCode": "YourTOTPCode",
    "APIKey": "YourAPIKey"
  }
}

Credentials

ClientCode: The client code is your Angel Broking account's Client ID. Example: "ClientCode": "DELL2023"

ClientPIN: The client PIN is angel broking account PIN. Example: "ClientPIN": "2023"

TOTPCode: The TOTP (Time-based One-Time Password) code is used for two-factor authentication. It is time-sensitive and provides an additional layer of security. Watch https://www.youtube.com/watch?v=iJgfGk1uDhA

Note: You just need need to scan the QR code from your phone camera and it will show you a code like as shown below. There is no need to use any kind of Authenticator app as we are going to use this with API.

Example: "TOTPCode": "2EXXXJNXYERUCPLAATDRTUHSWM"

APIKey: The API key is a secure token that serves as a unique identifier for API requests. It is used for authorization when accessing SmartApi services. Plesae generate API key from https://smartapi.angelbroking.com/. Watch: https://www.youtube.com/watch?v=VWjwJbVw2rQ.

Example: "APIKey": "u3aTAXXX"

Make sure to keep sensitive information such as client codes, client PINs, and API keys secure. Avoid sharing them in public repositories or environments.# SmartApi

Once you have configured the SmartApi, with your credentials, you can run the application.

Running the application

The application is divided into a library and a console application.

Just run the application using your IDE or from the command line using the following command:

In Visual Studio 2022 Community or above choose AngelOne.SmartApi.Client.Sample.csproj and run the application.

In VS Code choose AngelOne.SmartApi.Client.Sample.csproj and run the application. Using Command line dotnet run

Nuget Package

Add the following Nuget package to your project:

dotnet add package AngelOne.SmartApi.Clients --version 1.0.0

Ensur the you update the appsettings .json with your credentials as shown above. Or look at the sample project.

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.5 187 1/10/2024
1.0.4 100 1/10/2024
1.0.3 117 1/10/2024
1.0.2 104 1/10/2024

Refer readme.txt