IBKR.Api.Authentication 0.7.5

dotnet add package IBKR.Api.Authentication --version 0.7.5
                    
NuGet\Install-Package IBKR.Api.Authentication -Version 0.7.5
                    
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="IBKR.Api.Authentication" Version="0.7.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="IBKR.Api.Authentication" Version="0.7.5" />
                    
Directory.Packages.props
<PackageReference Include="IBKR.Api.Authentication" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add IBKR.Api.Authentication --version 0.7.5
                    
#r "nuget: IBKR.Api.Authentication, 0.7.5"
                    
#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.
#:package IBKR.Api.Authentication@0.7.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=IBKR.Api.Authentication&version=0.7.5
                    
Install as a Cake Addin
#tool nuget:?package=IBKR.Api.Authentication&version=0.7.5
                    
Install as a Cake Tool

IBKR.Api.Authentication

Core OAuth2 + JWT authentication library for Interactive Brokers Client Portal API.

NuGet

Overview

This package provides the core authentication logic for IBKR Client Portal API, including:

  • OAuth2 token flow with JWT client assertions
  • Bearer token management and caching
  • Brokerage session initialization
  • RSA signing for JWT

Usage

This is a low-level library. Most users should use IBKR.Sdk.Client instead, which provides a complete, easy-to-use SDK.

Direct Usage (Advanced)

var options = new IBKRAuthenticationOptions
{
    ClientId = "TESTCONS",
    Credential = "your_username",
    ClientKeyId = "kid-from-portal",
    ClientPemPath = "/path/to/private-key.pem",
    BaseUrl = "https://api.ibkr.com"
};

var authProvider = new IBKRAuthenticationProvider(options);
await authProvider.InitializeSessionAsync();
var bearerToken = await authProvider.GetBearerTokenAsync();

License

MIT License

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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on IBKR.Api.Authentication:

Package Downloads
IBKR.Sdk.Client

A clean, intuitive .NET SDK for Interactive Brokers Client Portal API

IBKR.Api.NSwag.Authentication

IBKR authentication integration for NSwag SDK using HttpMessageHandler

IBKR.Api.Kiota.Authentication

IBKR authentication integration for Kiota SDK using IAuthenticationProvider

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.7.5 231 10/9/2025
0.7.1 222 10/9/2025
0.7.0 231 10/9/2025
0.6.3 227 10/9/2025
0.6.2 256 10/9/2025