From 0305f46118e7f9ce1179afe9ee726e7135244286 Mon Sep 17 00:00:00 2001 From: Jkorf Date: Fri, 18 Oct 2024 14:52:47 +0200 Subject: [PATCH] Fixed restClient.GeneralApi.AutoInvest.GetSubscriptionTransactionHistoryAsync planId parameter being required --- Binance.Net/Binance.Net.xml | 4 ++-- .../GeneralApi/BinanceRestClientGeneralApiAutoInvest.cs | 4 ++-- .../GeneralApi/IBinanceRestClientGeneralApiAutoInvest.cs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Binance.Net/Binance.Net.xml b/Binance.Net/Binance.Net.xml index a75f9b7d..5ecb9782 100644 --- a/Binance.Net/Binance.Net.xml +++ b/Binance.Net/Binance.Net.xml @@ -674,7 +674,7 @@ - + @@ -6762,7 +6762,7 @@ Redemption percentage Cancellation token - + Get subscription transaction history diff --git a/Binance.Net/Clients/GeneralApi/BinanceRestClientGeneralApiAutoInvest.cs b/Binance.Net/Clients/GeneralApi/BinanceRestClientGeneralApiAutoInvest.cs index 776b83bc..6d3eda17 100644 --- a/Binance.Net/Clients/GeneralApi/BinanceRestClientGeneralApiAutoInvest.cs +++ b/Binance.Net/Clients/GeneralApi/BinanceRestClientGeneralApiAutoInvest.cs @@ -192,10 +192,10 @@ public async Task> RedeemIndexL #region Get Subscription Transaction History /// - public async Task>> GetSubscriptionTransactionHistoryAsync(long planId, DateTime? startTime = null, DateTime? endTime = null, string? targetAsset = null, AutoInvestPlanType? planType = null, int? page = null, int? pageSize = null, CancellationToken ct = default) + public async Task>> GetSubscriptionTransactionHistoryAsync(long? planId = null, DateTime? startTime = null, DateTime? endTime = null, string? targetAsset = null, AutoInvestPlanType? planType = null, int? page = null, int? pageSize = null, CancellationToken ct = default) { var parameters = new ParameterCollection(); - parameters.Add("planId", planId); + parameters.AddOptional("planId", planId); parameters.AddOptionalMillisecondsString("startTime", startTime); parameters.AddOptionalMillisecondsString("endTime", endTime); parameters.AddOptional("targetAsset", targetAsset); diff --git a/Binance.Net/Interfaces/Clients/GeneralApi/IBinanceRestClientGeneralApiAutoInvest.cs b/Binance.Net/Interfaces/Clients/GeneralApi/IBinanceRestClientGeneralApiAutoInvest.cs index a5fbd194..c0ff9e1d 100644 --- a/Binance.Net/Interfaces/Clients/GeneralApi/IBinanceRestClientGeneralApiAutoInvest.cs +++ b/Binance.Net/Interfaces/Clients/GeneralApi/IBinanceRestClientGeneralApiAutoInvest.cs @@ -122,7 +122,7 @@ public interface IBinanceRestClientGeneralApiAutoInvest /// Current page /// Page size /// Cancellation token - Task>> GetSubscriptionTransactionHistoryAsync(long planId, DateTime? startTime = null, DateTime? endTime = null, string? targetAsset = null, AutoInvestPlanType? planType = null, int? page = null, int? pageSize = null, CancellationToken ct = default); + Task>> GetSubscriptionTransactionHistoryAsync(long? planId = null, DateTime? startTime = null, DateTime? endTime = null, string? targetAsset = null, AutoInvestPlanType? planType = null, int? page = null, int? pageSize = null, CancellationToken ct = default); /// /// Get one time transaction status