From 2f9df061641a1d5fecf4cc91a76a80ec70cff182 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1zaro=20Armando?= <2146818+uranio-235@users.noreply.github.com> Date: Thu, 17 Oct 2024 11:10:47 +0100 Subject: [PATCH] fix: binding for option type response (#756) (cherry picked from commit 8137296ceafb503b5712d2fd99f5d35de7153c28) --- Alpaca.Markets/Messages/JsonOptionContract.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Alpaca.Markets/Messages/JsonOptionContract.cs b/Alpaca.Markets/Messages/JsonOptionContract.cs index dd00fb8e..1e108165 100644 --- a/Alpaca.Markets/Messages/JsonOptionContract.cs +++ b/Alpaca.Markets/Messages/JsonOptionContract.cs @@ -25,7 +25,7 @@ internal sealed class JsonOptionContract : IOptionContract public Decimal Size { get; set; } [JsonProperty(PropertyName = "type", Required = Required.Always)] - public OptionType OptionType { get; } + public OptionType OptionType { get; set; } [JsonProperty(PropertyName = "strike_price", Required = Required.Always)] public Decimal StrikePrice { get; set; }