TraderShop.Financials.TdAmeritrade.WatchList 2.0.0

dotnet add package TraderShop.Financials.TdAmeritrade.WatchList --version 2.0.0
NuGet\Install-Package TraderShop.Financials.TdAmeritrade.WatchList -Version 2.0.0
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="TraderShop.Financials.TdAmeritrade.WatchList" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TraderShop.Financials.TdAmeritrade.WatchList --version 2.0.0
#r "nuget: TraderShop.Financials.TdAmeritrade.WatchList, 2.0.0"
#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 TraderShop.Financials.TdAmeritrade.WatchList as a Cake Addin
#addin nuget:?package=TraderShop.Financials.TdAmeritrade.WatchList&version=2.0.0

// Install TraderShop.Financials.TdAmeritrade.WatchList as a Cake Tool
#tool nuget:?package=TraderShop.Financials.TdAmeritrade.WatchList&version=2.0.0

Watchlist 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 WatchlistProvider
    {
        private readonly ITdAmeritradeWatchlistProvider _watchlistProvider;
        private readonly TdAmeritradeOptions _options;

        public WatchlistProvider(ITdAmeritradeWatchlistProvider watchlistProvider, TdAmeritradeOptions options)
        {
            _watchlistProvider = watchlistProvider;
            _options = options;
        }

        public async void BasicExample()
        {
            var newWatchlist = new CreatedWatchlist(name: "apiTest",
                watchlistItems: new[]
                {
                    new WatchlistItem
                    {
                        Quantity = 100,
                        Commission = 0,
                        PurchaseDate = DateTime.Now.AddYears(-20).ToString("yyyy-MM-dd"),
                        BasicInstrumnet = new BasicInstrument()
                        {
                            Symbol = "MSFT",
                            AssetType = "EQUITY"
                        }
                    }
                })
            {

            };

            var result = await _watchlistProvider.CreateWatchlist(_options.account_number, newWatchlist);

            var result = await _watchlistProvider.DeleteWatchlist(_options.account_number, "1930659840");

            var result = await _watchlistProvider.GetWatchlist(_options.account_number, "1927749188");

            var result = await _watchlistProvider.GetWatchlistsForMultipleAccounts();

            var result = await _watchlistProvider.GetWatchlistsForSingleAccounts(_options.account_number);

        }
    }

Description

This library provides a way to interact with the TdAmeritrade API's Watchlist endpoints. See the WatchlistPost and WatchlistQuery objects for more information.

Product 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. 
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
2.0.0 339 11/21/2022
1.1.4 432 7/4/2022
1.1.3 411 6/20/2022
1.1.2 399 6/19/2022
1.0.2 403 6/10/2022
1.0.1 393 5/24/2022
1.0.0 392 5/24/2022
1.0.0-preview1 158 5/24/2022

updated contracts