Alpaca.Markets.Extensions 5.2.2

There is a newer version of this package available.
See the version list below for details.
Install-Package Alpaca.Markets.Extensions -Version 5.2.2
dotnet add package Alpaca.Markets.Extensions --version 5.2.2
<PackageReference Include="Alpaca.Markets.Extensions" Version="5.2.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Alpaca.Markets.Extensions --version 5.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Alpaca.Markets.Extensions, 5.2.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Alpaca.Markets.Extensions as a Cake Addin
#addin nuget:?package=Alpaca.Markets.Extensions&version=5.2.2

// Install Alpaca.Markets.Extensions as a Cake Tool
#tool nuget:?package=Alpaca.Markets.Extensions&version=5.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Build Codacy Dependabot

.NET SDK for Alpaca Markets API

This package contains helper extensions methods for the C#/.NET SDK for Alpaca Trade API. See full online documentation here.

.NET Core Usage Example

  1. Create a new console application in a new, empty folder by running dotnet new console.
  2. Add a reference for Alpaca .NET SDK with dotnet add package Alpaca.Markets.
  3. Replace content of the auto-generated Programm.cs file with this code snippet:
using System;
using Alpaca.Markets;
using System.Threading.Tasks;

namespace AlpacaExample
{
    internal static class Program
    {
        private const String KEY_ID = "";

        private const String SECRET_KEY = "";

        public static async Task Main()
        {
            var client = Environments.Paper
                .GetAlpacaTradingClient(new SecretKey(KEY_ID, SECRET_KEY));

            var clock = await client.GetClockAsync();

            if (clock != null)
            {
                Console.WriteLine(
                    "Timestamp: {0}, NextOpen: {1}, NextClose: {2}",
                    clock.TimestampUtc, clock.NextOpenUtc, clock.NextCloseUtc);
            }
        }
    }
}
  1. Replace KEY_ID and SECRET_KEY values with your own data from the Alpaca dashboard.
  2. Run the sample application using dotnet run command and check the output. You should see information about the current market timestamp and the times that the market will open and close next.

See the UsageExamples project for near-to-real-world strategy implementation using this SDK and the Alpaca.Markets.Tests repository for SDK usage examples. The Wiki pages contain a lot of additional information about different aspects of this SDK (environments handling, authentication types, different order placement approaches, streaming client subscriptions handling, etc.).

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
6.0.2-beta3 17 1/18/2022
6.0.2-beta1 58 1/3/2022
6.0.2-alpha2 44 12/21/2021
6.0.2-alpha1 64 11/27/2021
6.0.1-alpha3 157 11/16/2021
6.0.1-alpha2 193 10/31/2021
6.0.1-alpha1 183 10/20/2021
6.0.0-alpha5 103 10/14/2021
6.0.0-alpha4 96 10/1/2021
6.0.0-alpha3 82 9/28/2021
6.0.0-alpha2 109 9/20/2021
6.0.0-alpha1 115 9/6/2021
5.2.4-beta2 11 1/18/2022
5.2.4-alpha1 15 1/15/2022
5.2.3 110 12/31/2021
5.2.2 218 12/2/2021
5.2.1 304 10/20/2021
5.2.0 245 10/18/2021
5.1.2-beta2 87 10/8/2021
5.1.2-beta1 142 10/3/2021
5.1.1 215 9/20/2021
5.1.0 181 9/1/2021
5.1.0-rc2 111 8/29/2021
5.1.0-rc1 529 8/13/2021
5.1.0-beta2 123 8/4/2021
5.1.0-beta1 107 7/26/2021
5.1.0-alpha2 165 6/16/2021
5.1.0-alpha1 104 6/9/2021
5.0.5 44 12/31/2021
5.0.4 63 12/2/2021
5.0.3 409 6/20/2021
5.0.3-rc3 122 6/14/2021
5.0.3-rc2 136 6/4/2021
5.0.3-rc1 99 6/4/2021
5.0.3-beta3 155 5/16/2021
5.0.3-beta2 120 4/30/2021
5.0.3-beta1 135 4/24/2021
5.0.3-alpha4 110 4/23/2021
5.0.3-alpha3 85 4/15/2021
5.0.3-alpha2 77 4/15/2021
5.0.3-alpha1 105 4/13/2021
5.0.2-alpha4 115 4/5/2021
5.0.2-alpha3 123 3/31/2021
5.0.2-alpha2 122 3/26/2021
5.0.2-alpha1 121 3/24/2021
5.0.1-alpha4 153 3/18/2021
5.0.1-alpha3 155 3/13/2021
5.0.1-alpha2 159 3/1/2021
5.0.1-alpha 145 2/26/2021
5.0.0-alpha6 115 2/24/2021
5.0.0-alpha5 102 2/22/2021
5.0.0-alpha4 96 2/16/2021
5.0.0-alpha3 104 2/15/2021
5.0.0-alpha2 92 1/29/2021
5.0.0-alpha1 115 1/4/2021
4.1.7 46 12/31/2021
4.1.6 59 12/2/2021
4.1.5 122 8/12/2021
4.1.4 184 6/13/2021
4.1.4-beta1 122 6/3/2021
4.1.3 273 5/16/2021
4.1.2 405 3/18/2021
4.1.2-beta 148 3/13/2021
4.1.1 193 3/3/2021
4.1.1-beta 124 2/26/2021
4.1.0 154 2/24/2021
4.0.7 167 6/12/2021
4.0.7-beta1 143 6/5/2021
4.0.6 144 5/16/2021
4.0.5 179 3/13/2021
4.0.2 166 2/24/2021
4.0.1 149 2/24/2021
4.0.0 279 12/31/2020
4.0.0-beta1 191 12/26/2020
4.0.0-alpha1 152 12/26/2020
3.9.5 113 2/11/2021
3.9.4 174 1/3/2021
3.9.3 198 12/26/2020
3.9.2 234 12/18/2020
3.9.1 292 11/4/2020
3.9.0 205 10/26/2020
3.9.0-rc3 219 10/14/2020
3.9.0-rc2 306 10/10/2020
3.9.0-rc1 214 10/5/2020
3.9.0-beta2 281 9/28/2020
3.9.0-beta1 172 9/23/2020
3.9.0-alpha3 206 9/13/2020

- Added the `IAlpacaDataSubscription.OnSubscribedChanged` event for clients who want to track subscription changes events.
- Added the `OnWarning` event into the streaming clients, all non-critical errors reported now via this new event.