From 4ec7b6b6260a86aefe804627e828d01af3d51745 Mon Sep 17 00:00:00 2001 From: Jkorf Date: Wed, 6 Sep 2023 10:16:45 +0200 Subject: [PATCH] Added GoodTillDate TimeInForce, fixing UsdFutures GetExchangeInfoAsync --- Binance.Net/Enums/TimeInForce.cs | 7 ++++++- Binance.Net/Objects/Models/Futures/BinanceFuturesSymbol.cs | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Binance.Net/Enums/TimeInForce.cs b/Binance.Net/Enums/TimeInForce.cs index 08210e174..8e37630c6 100644 --- a/Binance.Net/Enums/TimeInForce.cs +++ b/Binance.Net/Enums/TimeInForce.cs @@ -31,6 +31,11 @@ public enum TimeInForce /// Good til the order expires or is canceled /// [Map("GTE_GTC")] - GoodTillExpiredOrCanceled + GoodTillExpiredOrCanceled, + /// + /// Good til date + /// + [Map("GTD")] + GoodTillDate } } diff --git a/Binance.Net/Objects/Models/Futures/BinanceFuturesSymbol.cs b/Binance.Net/Objects/Models/Futures/BinanceFuturesSymbol.cs index c161ea86f..64055fce9 100644 --- a/Binance.Net/Objects/Models/Futures/BinanceFuturesSymbol.cs +++ b/Binance.Net/Objects/Models/Futures/BinanceFuturesSymbol.cs @@ -116,7 +116,7 @@ public class BinanceFuturesSymbol /// /// Allowed order time in force /// - [JsonProperty(ItemConverterType = typeof(TimeInForceConverter))] + [JsonProperty(ItemConverterType = typeof(EnumConverter))] public IEnumerable TimeInForce { get; set; } = Array.Empty(); /// /// Filter for the max accuracy of the price for this symbol