TraderShop.Financials.TdAmeritrade.Abstractions
2.0.0
dotnet add package TraderShop.Financials.TdAmeritrade.Abstractions --version 2.0.0
NuGet\Install-Package TraderShop.Financials.TdAmeritrade.Abstractions -Version 2.0.0
<PackageReference Include="TraderShop.Financials.TdAmeritrade.Abstractions" Version="2.0.0" />
paket add TraderShop.Financials.TdAmeritrade.Abstractions --version 2.0.0
#r "nuget: TraderShop.Financials.TdAmeritrade.Abstractions, 2.0.0"
// Install TraderShop.Financials.TdAmeritrade.Abstractions as a Cake Addin #addin nuget:?package=TraderShop.Financials.TdAmeritrade.Abstractions&version=2.0.0 // Install TraderShop.Financials.TdAmeritrade.Abstractions as a Cake Tool #tool nuget:?package=TraderShop.Financials.TdAmeritrade.Abstractions&version=2.0.0
TdAmeritrade API Abstractions Library
<img src="https://img.shields.io/github/issues/ucrengineer/TraderShop.Financials" alt = "home screen" style = "float: left"/> <img src="https://img.shields.io/github/forks/ucrengineer/TraderShop.Financials" alt = "home screen" style = "float: left"/> <img src="https://img.shields.io/github/stars/ucrengineer/TraderShop.Financials" alt = "home screen" style = "float: left"/> <img src="https://img.shields.io/github/license/ucrengineer/TraderShop.Financials.TdAmeritrade" alt = "home screen" style = "float: left"/>
<br></br> <a href="https://www.buymeacoffee.com/ucrengineer" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" ></a>
<br></br> TdAmeritrade API Authentication Documentation
Usage
public class AuthServiceDemo
{
private readonly ITdAmeritradeAuthService _authService;
public AuthServiceDemo(ITdAmericaritradeAuthService authService)
{
_authService = authService ?? throw new ArgumentNullException(nameof(authService));
}
public async Task Returns_Bearer_Token_Successfully()
{
var token = await _authService.GetBearerToken();
}
}
public class TdAmeritradeOptions
{
public string auth_url { get; set; } = string.Empty;
public string client_id { get; set; } = string.Empty;
public string refresh_token { get; set; } = string.Empty;
public string redirect_uri { get; set; } = string.Empty;
public string account_number { get; set; } = string.Empty;
}
public class PostAccessTokenResponse
{
public string access_token { get; set; } = string.Empty;
public string token_type { get; set; } = string.Empty;
public int expires_in { get; set; }
public string refresh_token { get; set; } = string.Empty;
public string scope { get; set; } = string.Empty;
public string error { get; set; } = string.Empty;
}
Description
Must have a valid Refresh Token and ClientId to use the TdAmeritrade library. The bear token is stored until it expires using IMemoryCache. Also basic models that are used throughout the project are located in the Models project.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
-
net7.0
- Ardalis.SmartEnum (>= 2.1.0)
- TraderShop.Financials.Abstractions (>= 2.0.0)
NuGet packages (11)
Showing the top 5 NuGet packages that depend on TraderShop.Financials.TdAmeritrade.Abstractions:
Package | Downloads |
---|---|
TraderShop.Financials.TdAmeritrade.Quotes
This library provides a Quotes service for easy interaction with the official TdAmeritrade api |
|
TraderShop.Financials.TdAmeritrade.Instruments
This library provides a instruments service for interaction with the official tdAmeritrade api |
|
TraderShop.Financials.TdAmeritrade.PriceHistory
This library provides a Price History service for easy interaction with the official TdAmeritrade api |
|
TraderShop.Financials.TdAmeritrade.Orders
This library provides a Orders service for easy interaction with the official TdAmeritrade api |
|
TraderShop.Financials.TdAmeritrade.Accounts
This library provides a accounts service for easy interaction with the official TdAmeritrade api |
GitHub repositories
This package is not used by any popular GitHub repositories.
updated contracts