TraderShop.Financials.TdAmeritrade.UserInfo
1.0.0-preview1
See the version list below for details.
dotnet add package TraderShop.Financials.TdAmeritrade.UserInfo --version 1.0.0-preview1
NuGet\Install-Package TraderShop.Financials.TdAmeritrade.UserInfo -Version 1.0.0-preview1
<PackageReference Include="TraderShop.Financials.TdAmeritrade.UserInfo" Version="1.0.0-preview1" />
paket add TraderShop.Financials.TdAmeritrade.UserInfo --version 1.0.0-preview1
#r "nuget: TraderShop.Financials.TdAmeritrade.UserInfo, 1.0.0-preview1"
// Install TraderShop.Financials.TdAmeritrade.UserInfo as a Cake Addin #addin nuget:?package=TraderShop.Financials.TdAmeritrade.UserInfo&version=1.0.0-preview1&prerelease // Install TraderShop.Financials.TdAmeritrade.UserInfo as a Cake Tool #tool nuget:?package=TraderShop.Financials.TdAmeritrade.UserInfo&version=1.0.0-preview1&prerelease
User Information & Preferences 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 Documentation
Usage
public class UserInformationProvider
{
private readonly ITdAmeritradeUserInformationProvider _userInformationProvider;
private readonly TdAmeritradeOptions _options;
public UserInformationProvider(ITdAmeritradeUserInformationProvider userInformationProvider, TdAmeritradeOptions options)
{
_userInformationProvider = userInformationProvider;
_options = options;
}
public async void BasicExample()
{
var result = await _userInfoProvider.GetPreferences(_options.account_number);
var result = await _userInfoProvider.GetStreamerSubscriptionKeys();
var updatedPreferences = new Preferences()
{
ExpressTrading = false,
DirectOptionsRouting = false,
DirectEquityRouting = false,
DefaultEquityOrderLegInstruction = "BUY",
DefaultEquityOrderType = "STOP",
DefaultEquityOrderPriceLinkType = "NONE",
DefaultEquityOrderDuration = "GOOD_TILL_CANCEL",
DefaultEquityOrderMarketSession = "NORMAL",
DefaultEquityQuantity = 0,
MutualFundTaxLotMethod = "FIFO",
EquityTaxLotMethod = "FIFO",
OptionTaxLotMethod = "FIFO",
DefaultAdvancedToolLaunch = "TA",
AuthTokenTimeout = "FIFTY_FIVE_MINUTES"
};
var result = await _userInfoProvider.UpdatePreferences(_options.account_number, updatedPreferences);
var result = await _userInfoProvider.GetUserPrincipals();
}
}
Description
This library uses the TdAmeritrade API to retrieve user information and preferences. see the Preferences object for more information.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. 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. |
-
net6.0
- TraderShop.Financials.Abstractions (>= 1.0.0-preview1)
- TraderShop.Financials.TdAmeritrade.Abstractions (>= 1.0.0-preview1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.