Alpaca.Markets 6.0.2-alpha2

This is a prerelease version of Alpaca.Markets.
There is a newer prerelease version of this package available.
See the version list below for details.
Install-Package Alpaca.Markets -Version 6.0.2-alpha2
dotnet add package Alpaca.Markets --version 6.0.2-alpha2
<PackageReference Include="Alpaca.Markets" Version="6.0.2-alpha2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Alpaca.Markets --version 6.0.2-alpha2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Alpaca.Markets, 6.0.2-alpha2"
#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 as a Cake Addin
#addin nuget:?package=Alpaca.Markets&version=6.0.2-alpha2&prerelease

// Install Alpaca.Markets as a Cake Tool
#tool nuget:?package=Alpaca.Markets&version=6.0.2-alpha2&prerelease
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 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 (1)

Showing the top 1 NuGet packages that depend on Alpaca.Markets:

Package Downloads
Alpaca.Markets.Extensions

C# SDK for Alpaca Trade API https://docs.alpaca.markets/

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Alpaca.Markets:

Repository Stars
alpacahq/alpaca-trade-api-csharp
C# SDK for Alpaca Trade API https://docs.alpaca.markets/
Version Downloads Last updated
6.0.2-beta3 20 1/18/2022
6.0.2-beta1 120 1/3/2022
6.0.2-alpha4 92 12/21/2021
6.0.2-alpha3 36 12/20/2021
6.0.2-alpha2 61 11/30/2021
6.0.2-alpha1 54 11/27/2021
6.0.1-alpha4 186 11/16/2021
6.0.1-alpha3 267 10/31/2021
6.0.1-alpha2 88 10/29/2021
6.0.1-alpha1 145 10/20/2021
6.0.0-alpha5 145 10/14/2021
6.0.0-alpha4 141 10/1/2021
6.0.0-alpha3 157 9/28/2021
6.0.0-alpha2 180 9/20/2021
6.0.0-alpha1 183 9/5/2021
5.2.8-beta2 14 1/18/2022
5.2.8-alpha1 18 1/15/2022
5.2.7 313 12/31/2021
5.2.6 193 12/21/2021
5.2.5 72 12/20/2021
5.2.4 334 12/2/2021
5.2.3 401 11/13/2021
5.2.2 297 10/28/2021
5.2.1 354 10/20/2021
5.2.0 273 10/18/2021
5.1.2-beta2 159 10/8/2021
5.1.2-beta1 203 10/3/2021
5.1.1 495 9/20/2021
5.1.0 454 9/1/2021
5.1.0-rc2 105 8/29/2021
5.1.0-rc1 536 8/13/2021
5.1.0-beta3 124 8/4/2021
5.1.0-beta2 353 7/26/2021
5.1.0-beta1 103 7/21/2021
5.1.0-alpha3 151 7/4/2021
5.1.0-alpha2 274 6/16/2021
5.1.0-alpha1 153 6/9/2021
5.0.11 65 12/20/2021
5.0.10 115 12/2/2021
5.0.9 210 10/18/2021
5.0.8 209 9/20/2021
5.0.7 158 8/28/2021
5.0.6 439 8/14/2021
5.0.5 220 8/4/2021
5.0.4 313 7/19/2021
5.0.3 577 6/20/2021
5.0.3-rc3 122 6/14/2021
5.0.3-rc2 292 6/3/2021
5.0.3-rc1 130 5/26/2021
5.0.3-beta3 154 5/16/2021
5.0.3-beta2 208 5/8/2021
5.0.3-beta1 171 4/24/2021
5.0.3-alpha3 250 4/23/2021
5.0.3-alpha2 115 4/15/2021
5.0.3-alpha1 217 4/13/2021
5.0.2-alpha4 211 4/5/2021
5.0.2-alpha3 200 3/31/2021
5.0.2-alpha2 205 3/26/2021
5.0.2-alpha1 211 3/24/2021
5.0.1-alpha5 201 3/18/2021
5.0.1-alpha4 247 3/13/2021
5.0.1-alpha3 143 3/8/2021
5.0.1-alpha2 148 3/1/2021
5.0.1-alpha 229 2/26/2021
5.0.0-alpha6 247 2/24/2021
5.0.0-alpha5 128 2/19/2021
5.0.0-alpha4 221 2/15/2021
5.0.0-alpha3 136 2/11/2021
5.0.0-alpha2 251 1/29/2021
5.0.0-alpha1 237 1/4/2021
4.1.18 57 12/20/2021
4.1.17 117 12/2/2021
4.1.16 1,107 10/18/2021
4.1.15 199 9/20/2021
4.1.14 139 8/28/2021
4.1.13 220 8/12/2021
4.1.12 169 8/4/2021
4.1.11 145 7/19/2021
4.1.10 217 6/20/2021
4.1.9 246 6/13/2021
4.1.9-beta1 196 6/3/2021
4.1.8 385 5/31/2021
4.1.7 344 5/16/2021
4.1.6 464 4/30/2021
4.1.6-beta1 113 4/23/2021
4.1.5 225 4/16/2021
4.1.4 396 3/31/2021
4.1.4-beta 137 3/24/2021
4.1.3 428 3/20/2021
4.1.2 339 3/18/2021
4.1.2-beta 226 3/13/2021
4.1.2-alpha 139 3/8/2021
4.1.1 484 3/3/2021
4.1.1-beta2 146 3/1/2021
4.1.1-beta 152 2/26/2021
4.1.0 6,731 2/24/2021
4.0.15 151 7/19/2021
4.0.14 196 6/20/2021
4.0.13 192 6/12/2021
4.0.13-beta1 206 6/5/2021
4.0.12 166 5/28/2021
4.0.11 174 5/16/2021
4.0.10 171 4/30/2021
4.0.10-beta1 154 4/24/2021
4.0.9 168 4/16/2021
4.0.8 151 3/31/2021
4.0.8-beta 153 3/24/2021
4.0.7 167 3/20/2021
4.0.6 173 3/18/2021
4.0.6-beta 169 3/13/2021
4.0.6-alpha 140 3/8/2021
4.0.5 335 3/3/2021
4.0.5-beta2 135 3/1/2021
4.0.5-beta 146 2/26/2021
4.0.4 319 2/24/2021
4.0.3 1,117 2/11/2021
4.0.2 948 1/29/2021
4.0.2-beta 134 1/23/2021
4.0.1 1,074 1/3/2021
4.0.0 418 12/31/2020
4.0.0-beta1 295 12/26/2020
4.0.0-alpha1 183 12/26/2020
3.9.5 150 2/11/2021
3.9.4 205 1/3/2021
3.9.3 301 12/26/2020
3.9.2 324 12/18/2020
3.9.1 2,913 11/4/2020
3.9.0 1,087 10/26/2020
3.9.0-rc3 258 10/14/2020
3.9.0-rc2 337 10/10/2020
3.9.0-rc1 248 10/5/2020
3.9.0-beta3 294 9/28/2020
3.9.0-beta1 205 9/23/2020
3.9.0-alpha3 267 9/13/2020
3.9.0-alpha2 576 9/11/2020
3.9.0-alpha1 248 9/2/2020
3.8.6 227 12/26/2020
3.8.5 249 12/18/2020
3.8.4 280 11/4/2020
3.8.3 1,021 9/23/2020
3.8.2 278 9/21/2020
3.8.1 1,071 9/11/2020
3.8.0 721 8/31/2020
3.8.0-beta4 257 8/26/2020
3.8.0-beta3 251 8/7/2020
3.8.0-beta2 248 7/16/2020
3.8.0-beta1 232 7/7/2020
3.8.0-alpha4 260 6/24/2020
3.8.0-alpha3 279 6/15/2020
3.8.0-alpha2 262 6/14/2020
3.8.0-alpha1 300 6/6/2020
3.7.4 300 9/11/2020
3.7.3 2,026 7/7/2020
3.7.2 478 6/23/2020
3.7.1 584 6/12/2020
3.7.0 642 5/27/2020
3.7.0-rc1 347 5/23/2020
3.7.0-beta2 298 5/16/2020
3.7.0-beta1 261 5/11/2020
3.7.0-alpha2 261 5/6/2020
3.7.0-alpha1 286 4/29/2020
3.6.5 273 7/7/2020
3.6.4 329 5/23/2020
3.6.3 377 5/13/2020
3.6.2 455 4/24/2020
3.6.1 502 4/14/2020
3.6.0 362 4/7/2020
3.6.0-beta4 353 3/28/2020
3.6.0-beta3 374 3/23/2020
3.6.0-beta2 286 3/16/2020
3.6.0-beta1 296 3/11/2020
3.6.0-alpha2 314 2/27/2020
3.6.0-alpha1 309 2/9/2020
3.5.11 301 5/23/2020
3.5.10 293 5/13/2020
3.5.9 270 4/24/2020
3.5.8 280 4/14/2020
3.5.7 470 3/28/2020
3.5.6 404 3/20/2020
3.5.5 709 3/7/2020
3.5.4 312 3/5/2020
3.5.3 422 2/27/2020
3.5.2 507 2/9/2020
3.5.1 374 2/7/2020
3.5.0 431 1/28/2020
3.5.0-beta3 313 1/22/2020
3.5.0-beta2 440 1/18/2020
3.5.0-beta1 344 1/17/2020
3.5.0-alpha4 373 1/3/2020
3.5.0-alpha3 285 12/23/2019
3.5.0-alpha2 369 12/15/2019
3.5.0-alpha1 282 12/8/2019
3.4.6 322 2/7/2020
3.4.5 576 1/15/2020
3.4.4 514 1/3/2020
3.4.3 368 12/28/2019
3.4.2 324 12/27/2019
3.4.1 435 12/3/2019
3.4.0 353 12/1/2019
3.4.0-beta2 340 11/26/2019
3.4.0-beta 320 11/22/2019
3.4.0-alpha2 304 10/24/2019
3.4.0-alpha 304 10/21/2019
3.3.10 344 1/15/2020
3.3.9 429 1/3/2020
3.3.8 339 12/28/2019
3.3.7 350 12/27/2019
3.3.6 417 11/26/2019
3.3.5 355 11/22/2019
3.3.4 434 10/24/2019
3.3.3 442 10/3/2019
3.3.2 368 9/17/2019
3.3.1 374 9/11/2019
3.3.0 389 9/8/2019
3.3.0-beta 312 9/6/2019
3.3.0-alpha 343 8/28/2019
3.2.10 391 11/26/2019
3.2.9 364 11/22/2019
3.2.8 347 10/24/2019
3.2.7 350 10/3/2019
3.2.6 350 9/17/2019
3.2.5 375 9/8/2019
3.2.4 359 9/6/2019
3.2.3 370 9/4/2019
3.2.2 428 8/14/2019
3.2.1 434 8/7/2019
3.2.1-alpha 333 8/6/2019
3.2.0 395 8/1/2019
3.2.0-rc1 315 7/26/2019
3.2.0-beta2 320 7/18/2019
3.2.0-beta 392 7/11/2019
3.2.0-alpha 844 7/4/2019
3.1.5 369 8/14/2019
3.1.4 378 8/1/2019
3.1.3 371 7/26/2019
3.1.2 448 7/10/2019
3.1.1 392 7/8/2019
3.1.0 387 7/4/2019
3.1.0-alpha 349 7/1/2019
3.0.7 460 6/23/2019
3.0.5 399 6/20/2019
3.0.4 650 6/5/2019
3.0.3 443 5/17/2019
3.0.2 485 4/11/2019
3.0.1 445 4/5/2019
3.0.1-beta 358 3/28/2019
3.0.0-beta 349 3/26/2019
3.0.0-alpha 341 3/24/2019
2.1.4 511 2/27/2019
2.1.3 603 12/27/2018
2.1.2 508 12/23/2018
2.1.0 606 11/30/2018
2.1.0-beta 440 11/28/2018
2.0.0 528 11/19/2018
2.0.0-beta 456 11/6/2018
2.0.0-alpha 439 11/1/2018
1.2.6 428 2/27/2019
1.2.5 510 12/27/2018
1.2.4 489 12/23/2018
1.2.3 554 11/20/2018
1.2.2 530 11/6/2018
1.2.1 575 11/2/2018
1.2.0 550 10/31/2018
1.2.0-beta 486 9/14/2018
1.2.0-alpha 466 8/29/2018
1.1.2 599 8/21/2018
1.1.1 619 8/9/2018
1.1.0 908 8/3/2018
1.0.0 610 8/1/2018
1.0.0-beta 544 7/29/2018
1.0.0-alpha 602 7/17/2018

- Fixed problem with incorrect invariant check in the `Interval<T>` type.