diff --git a/Alpaca.Markets/Alpaca.Markets.csproj b/Alpaca.Markets/Alpaca.Markets.csproj index 22550155..1778441e 100644 --- a/Alpaca.Markets/Alpaca.Markets.csproj +++ b/Alpaca.Markets/Alpaca.Markets.csproj @@ -12,14 +12,14 @@ - 7.0.4.0 - 7.0.4.0 - 7.0.4 + 7.0.5.0 + 7.0.5.0 + 7.0.5 -= The implementation of the `IAuction.Closings` and `IAuction.Openings` properties were marked as optional. +- The new enum value `AssetClass.UsOption` was added for supporting option contracts in the assets response. C# SDK for Alpaca Trade API https://docs.alpaca.markets/ https://github.com/alpacahq/alpaca-trade-api-csharp diff --git a/Alpaca.Markets/Enums/AssetClass.cs b/Alpaca.Markets/Enums/AssetClass.cs index 9babd4e5..b55bad92 100644 --- a/Alpaca.Markets/Enums/AssetClass.cs +++ b/Alpaca.Markets/Enums/AssetClass.cs @@ -18,5 +18,12 @@ public enum AssetClass /// [UsedImplicitly] [EnumMember(Value = "crypto")] - Crypto + Crypto, + + /// + /// US option asset class. + /// + [UsedImplicitly] + [EnumMember(Value = "us_option")] + UsOption } diff --git a/Alpaca.Markets/Helpers/OpenClose.cs b/Alpaca.Markets/Helpers/OpenClose.cs index 3d1862ec..058b4256 100644 --- a/Alpaca.Markets/Helpers/OpenClose.cs +++ b/Alpaca.Markets/Helpers/OpenClose.cs @@ -32,11 +32,13 @@ internal OpenClose( /// /// Gets open time in EST time zone. /// + // ReSharper disable once AutoPropertyCanBeMadeGetOnly.Global public DateTimeOffset OpenEst { get; init; } /// /// Gets close time in EST time zone. /// + // ReSharper disable once AutoPropertyCanBeMadeGetOnly.Global public DateTimeOffset CloseEst { get; init; } /// diff --git a/Alpaca.Markets/PublicAPI.Shipped.txt b/Alpaca.Markets/PublicAPI.Shipped.txt index 3e05b9f2..8a672318 100644 --- a/Alpaca.Markets/PublicAPI.Shipped.txt +++ b/Alpaca.Markets/PublicAPI.Shipped.txt @@ -129,6 +129,7 @@ Alpaca.Markets.AssetAttributes.Unknown = 0 -> Alpaca.Markets.AssetAttributes Alpaca.Markets.AssetClass Alpaca.Markets.AssetClass.Crypto = 1 -> Alpaca.Markets.AssetClass Alpaca.Markets.AssetClass.UsEquity = 0 -> Alpaca.Markets.AssetClass +Alpaca.Markets.AssetClass.UsOption = 2 -> Alpaca.Markets.AssetClass Alpaca.Markets.AssetsRequest Alpaca.Markets.AssetsRequest.Attributes.get -> System.Collections.Generic.ISet! Alpaca.Markets.AssetsRequest.AssetClass.get -> Alpaca.Markets.AssetClass?