Alpaca.Markets
6.2.6
See the version list below for details.
dotnet add package Alpaca.Markets --version 6.2.6
NuGet\Install-Package Alpaca.Markets -Version 6.2.6
<PackageReference Include="Alpaca.Markets" Version="6.2.6" />
paket add Alpaca.Markets --version 6.2.6
#r "nuget: Alpaca.Markets, 6.2.6"
// Install Alpaca.Markets as a Cake Addin #addin nuget:?package=Alpaca.Markets&version=6.2.6 // Install Alpaca.Markets as a Cake Tool #tool nuget:?package=Alpaca.Markets&version=6.2.6
.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
- Create a new console application in a new, empty folder by running
dotnet new console
. - Add a reference for Alpaca .NET SDK with
dotnet add package Alpaca.Markets
. - 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);
}
}
}
}
- Replace
KEY_ID
andSECRET_KEY
values with your own data from the Alpaca dashboard. - 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.).
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.2
- Newtonsoft.Json (>= 13.0.3)
- Polly (>= 8.2.0)
- Portable.System.DateTimeOnly (>= 8.0.0)
- System.IO.Pipelines (>= 8.0.0)
- System.Net.Http.WinHttpHandler (>= 8.0.0)
-
.NETStandard 2.0
- Newtonsoft.Json (>= 13.0.3)
- Polly (>= 8.2.0)
- Portable.System.DateTimeOnly (>= 8.0.0)
- System.IO.Pipelines (>= 8.0.0)
-
.NETStandard 2.1
- Newtonsoft.Json (>= 13.0.3)
- Polly (>= 8.2.0)
- Portable.System.DateTimeOnly (>= 8.0.0)
- System.IO.Pipelines (>= 8.0.0)
-
net6.0
- Newtonsoft.Json (>= 13.0.3)
- Polly (>= 8.2.0)
- System.IO.Pipelines (>= 8.0.0)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on Alpaca.Markets:
Package | Downloads |
---|---|
Alpaca.Markets.Extensions
C# SDK for Alpaca Trade API https://docs.alpaca.markets/ |
|
Atlas.Services.Alpaca.Library.Dto
Package Description |
|
Cryptohaus.Core
Package Description |
|
Cryptohaus.Infrastructure
Package Description |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Alpaca.Markets:
Repository | Stars |
---|---|
DaveSkender/Stock.Indicators
Stock Indicators for .NET is a C# NuGet package that transforms raw equity, commodity, forex, or cryptocurrency financial market price quotes into technical indicators and trading insights. You'll need this essential data in the investment tools that you're building for algorithmic trading, technical analysis, machine learning, or visual charting.
|
Version | Downloads | Last updated | |
---|---|---|---|
7.1.2 | 553 | 10/20/2024 | |
7.1.1 | 1,568 | 9/30/2024 | |
7.1.0 | 7,239 | 5/12/2024 | |
7.1.0-beta4 | 204 | 4/28/2024 | |
7.1.0-beta3 | 109 | 4/26/2024 | |
7.1.0-beta2 | 251 | 4/7/2024 | |
7.1.0-beta1 | 320 | 3/4/2024 | |
7.0.6 | 935 | 4/7/2024 | |
7.0.5 | 363 | 3/26/2024 | |
7.0.4 | 1,222 | 3/15/2024 | |
7.0.3 | 293 | 3/12/2024 | |
7.0.2 | 492 | 2/28/2024 | |
7.0.1 | 1,470 | 1/18/2024 | |
7.0.0 | 2,239 | 11/16/2023 | |
6.2.6 | 4,331 | 12/30/2023 | |
6.2.5 | 1,328 | 9/28/2023 | |
6.2.4 | 771 | 9/2/2023 | |
6.2.3 | 2,733 | 8/27/2023 | |
6.2.2 | 264 | 8/22/2023 | |
6.2.1 | 2,373 | 6/17/2023 | |
6.2.0 | 858 | 5/16/2023 |
- Dependencies upgrade. This is the last 6.2.x release, please, upgrade to the 7.0.x version of the package.