From 15f7ba32e1662a89f82ea69654e1eb027150cbfa Mon Sep 17 00:00:00 2001 From: Jkorf Date: Fri, 18 Sep 2026 13:54:48 +0200 Subject: [PATCH] wip --- .../SharedApiClientTests.cs | 28 ++++++- CryptoExchange.Net/ExtensionMethods.cs | 18 +++++ .../Objects/Results/ICallResult.cs | 12 +++ .../Objects/Results/IHttpResult.cs | 2 +- .../Objects/Results/IWebSocketResult.cs | 2 +- CryptoExchange.Net/SharedApis/SharedUtils.cs | 79 +++++++++++++++++++ .../V2/Assets/GetAllAssets/IGetAllAssets.cs | 2 +- .../V2/Assets/GetAsset/IGetAsset.cs | 2 +- .../V2/Balances/GetBalances/IGetBalances.cs | 2 +- .../IGetDepositAddresses.cs | 2 +- .../GetDepositHistory/IGetDepositHistory.cs | 2 +- .../SharedApis/V2/Fees/GetFees/IGetFees.cs | 2 +- .../Funding/GetFundingInfo/IGetFundingInfo.cs | 2 +- .../IGetFundingRateHistory.cs | 2 +- .../IGetUserFundingHistory.cs | 2 +- .../GetAllIndexPrices/IGetAllIndexPrices.cs | 2 +- .../GetIndexPrice/IGetIndexPrice.cs | 2 +- .../IGetIndexPriceKlines.cs | 2 +- .../GetMarkPriceKlines/IGetMarkPriceKlines.cs | 2 +- .../V2/Klines/GetKlines/IGetKlines.cs | 2 +- .../V2/Ledger/GetLedger/IGetLedger.cs | 2 +- .../V2/Leverage/GetLeverage/IGetLeverage.cs | 2 +- .../GetLeverageTiers/IGetLeverageTiers.cs | 2 +- .../V2/Leverage/SetLeverage/ISetLeverage.cs | 2 +- .../GetAllMarkPrices/IGetAllMarkPrices.cs | 2 +- .../MarkPrice/GetMarkPrice/IGetMarkPrice.cs | 2 +- .../V2/OpenInterest/IGetOpenInterest.cs | 2 +- .../GetBookTicker/IGetBookTicker.cs | 2 +- .../OrderBooks/GetOrderBook/IGetOrderBook.cs | 2 +- .../ICancelAllFuturesOrder.cs | 2 +- .../ICancelAllFuturesSymbolOrders.cs | 2 +- .../CancelFuturesOrder/ICancelFuturesOrder.cs | 2 +- .../ICancelFuturesOrderByClientOrderId.cs | 2 +- .../EditFuturesOrder/IEditFuturesOrder.cs | 2 +- .../IEditFuturesOrderByClientOrderId.cs | 2 +- .../IGetClosedFuturesOrders.cs | 2 +- .../GetFuturesOrder/IGetFuturesOrder.cs | 2 +- .../IGetFuturesOrderByClientOrderId.cs | 2 +- .../IGetOpenFuturesOrders.cs | 2 +- .../PlaceFuturesOrder/IPlaceFuturesOrder.cs | 2 +- .../IPlaceMultipleFuturesOrders.cs | 2 +- .../ICancelAllSpotOrder.cs | 2 +- .../ICancelAllSpotSymbolOrders.cs | 2 +- .../Spot/CancelSpotOrder/ICancelSpotOrder.cs | 2 +- .../ICancelSpotOrderByClientOrderId.cs | 2 +- .../Spot/EditSpotOrder/IEditSpotOrder.cs | 2 +- .../IEditSpotOrderByClientOrderId.cs | 2 +- .../IGetClosedSpotOrders.cs | 2 +- .../GetOpenSpotOrders/IGetOpenSpotOrders.cs | 2 +- .../Orders/Spot/GetSpotOrder/IGetSpotOrder.cs | 2 +- .../IGetSpotOrderByClientOrderId.cs | 2 +- .../IPlaceMultipleSpotOrders.cs | 2 +- .../Spot/PlaceSpotOrder/IPlaceSpotOrder.cs | 2 +- .../GetPositionMode/IGetPositionMode.cs | 2 +- .../SetPositionMode/ISetPositionMode.cs | 2 +- .../ClosePosition/ICloseFullPosition.cs | 2 +- .../GetPositionHistory/IGetPositionHistory.cs | 2 +- .../Positions/GetPositions/IGetPositions.cs | 2 +- .../GetFuturesSymbols/IGetFuturesSymbols.cs | 2 +- .../Symbols/GetSpotSymbols/IGetSpotSymbols.cs | 2 +- .../Tickers/GetAllTickers/IGetAllTickers.cs | 2 +- .../V2/Tickers/GetTicker/IGetTicker.cs | 2 +- .../CancelFuturesTpSl/ICancelFuturesTpSl.cs | 2 +- .../V2/TpSl/SetFuturesTpSl/ISetFuturesTpSl.cs | 2 +- .../GetRecentTrades/IGetRecentTrades.cs | 2 +- .../GetTradeHistory/IGetTradeHistory.cs | 2 +- .../GetTransferHistory/IGetTransferHistory.cs | 2 +- .../SharedApis/V2/Transfers/ITransfer.cs | 2 +- .../ICancelFuturesTriggerOrder.cs | 2 +- .../IGetFuturesTriggerOrder.cs | 2 +- .../IPlaceFuturesTriggerOrder.cs | 2 +- .../ICancelSpotTriggerOrder.cs | 2 +- .../IGetSpotTriggerOrder.cs | 2 +- .../IPlaceSpotTriggerOrder.cs | 2 +- .../IGetFuturesOrderTrades.cs | 2 +- .../IGetFuturesUserTradeHistory.cs | 2 +- .../GetSpotOrderTrades/IGetSpotOrderTrades.cs | 2 +- .../IGetSpotUserTradeHistory.cs | 2 +- .../IGetWithdrawalHistory.cs | 2 +- .../V2/Withdrawals/Withdraw/IWithdraw.cs | 2 +- CryptoExchange.Net/Testing/TestHelpers.cs | 4 +- 81 files changed, 213 insertions(+), 80 deletions(-) diff --git a/CryptoExchange.Net.UnitTests/SharedApiClientTests.cs b/CryptoExchange.Net.UnitTests/SharedApiClientTests.cs index c3635699..40878c02 100644 --- a/CryptoExchange.Net.UnitTests/SharedApiClientTests.cs +++ b/CryptoExchange.Net.UnitTests/SharedApiClientTests.cs @@ -1,7 +1,11 @@ +using CryptoExchange.Net.Interfaces.Clients; +using CryptoExchange.Net.RateLimiting; using CryptoExchange.Net.SharedApis; using Microsoft.Extensions.DependencyInjection; using NUnit.Framework; +using System; using System.Linq; +using System.Threading.Tasks; namespace CryptoExchange.Net.UnitTests { @@ -189,6 +193,24 @@ namespace CryptoExchange.Net.UnitTests { } + private sealed class TestApiClient : IBaseApiClient + { + public string Exchange => "TestExchange"; + public string BaseAddress => "https://test.invalid"; + + public string FormatSymbol( + string baseAsset, + string quoteAsset, + TradingMode tradingMode, + DateTime? deliverDate = null) + => $"{baseAsset}{quoteAsset}"; + + public Task WithRateLimitAdmissionAsync( + RateLimitAdmission admission, + Func> operation) + => operation(); + } + private interface ITestRestCapability : ITestCapability, ISharedRest { } @@ -236,7 +258,7 @@ namespace CryptoExchange.Net.UnitTests TradingMode[]? applicableTradingModes) : base( SharedTransport.Rest, - "TestExchange", + new TestApiClient(), apiTradingModes, () => false, (baseAsset, quoteAsset, tradingMode, deliverDate) => $"{baseAsset}{quoteAsset}") @@ -258,7 +280,7 @@ namespace CryptoExchange.Net.UnitTests public TestOptionsHost(TradingMode[] apiTradingModes, CapabilityOptions capabilityOptions) : base( SharedTransport.Rest, - "TestExchange", + new TestApiClient(), apiTradingModes, () => false, (baseAsset, quoteAsset, tradingMode, deliverDate) => $"{baseAsset}{quoteAsset}") @@ -274,7 +296,7 @@ namespace CryptoExchange.Net.UnitTests protected TestTransportSharedApi(SharedTransport transport) : base( transport, - "TestExchange", + new TestApiClient(), [TradingMode.Spot], () => false, (baseAsset, quoteAsset, tradingMode, deliverDate) => $"{baseAsset}{quoteAsset}") diff --git a/CryptoExchange.Net/ExtensionMethods.cs b/CryptoExchange.Net/ExtensionMethods.cs index 62643872..eb437d81 100644 --- a/CryptoExchange.Net/ExtensionMethods.cs +++ b/CryptoExchange.Net/ExtensionMethods.cs @@ -531,6 +531,24 @@ namespace CryptoExchange.Net admission, () => operation(client)); } + + + /// + /// Return the task results in the form of an IAsyncEnumerable, returning the first completed task first + /// + /// Type of task result + /// Task list + public static async IAsyncEnumerable ParallelEnumerateAsync(this IEnumerable> tasks) + { + var remaining = new List>(tasks); + + while (remaining.Count != 0) + { + var task = await Task.WhenAny(remaining).ConfigureAwait(false); + remaining.Remove(task); + yield return await task.ConfigureAwait(false); + } + } } } diff --git a/CryptoExchange.Net/Objects/Results/ICallResult.cs b/CryptoExchange.Net/Objects/Results/ICallResult.cs index 8df43ec6..2a5b0627 100644 --- a/CryptoExchange.Net/Objects/Results/ICallResult.cs +++ b/CryptoExchange.Net/Objects/Results/ICallResult.cs @@ -40,4 +40,16 @@ public interface ICallResult : ICallResult /// The result data, only available when Success = true /// T? Data { get; } +} + +/// +/// Exchange call result +/// +/// Result data type +public interface IExchangeCallResult : ICallResult, ICallResult +{ + /// + /// Exchange name + /// + public string Exchange { get; set; } } \ No newline at end of file diff --git a/CryptoExchange.Net/Objects/Results/IHttpResult.cs b/CryptoExchange.Net/Objects/Results/IHttpResult.cs index f462521a..d1e98bb2 100644 --- a/CryptoExchange.Net/Objects/Results/IHttpResult.cs +++ b/CryptoExchange.Net/Objects/Results/IHttpResult.cs @@ -79,7 +79,7 @@ namespace CryptoExchange.Net.Objects /// HTTP call result /// /// Result data type - public interface IHttpResult : IHttpResult, ICallResult + public interface IHttpResult : IHttpResult, IExchangeCallResult { } } diff --git a/CryptoExchange.Net/Objects/Results/IWebSocketResult.cs b/CryptoExchange.Net/Objects/Results/IWebSocketResult.cs index bdd8d900..cfc8e456 100644 --- a/CryptoExchange.Net/Objects/Results/IWebSocketResult.cs +++ b/CryptoExchange.Net/Objects/Results/IWebSocketResult.cs @@ -42,7 +42,7 @@ namespace CryptoExchange.Net.Objects /// WebSocket call result /// /// Data result type - public interface IWebSocketResult : IWebSocketResult, ICallResult + public interface IWebSocketResult : IWebSocketResult, IExchangeCallResult { } diff --git a/CryptoExchange.Net/SharedApis/SharedUtils.cs b/CryptoExchange.Net/SharedApis/SharedUtils.cs index 40ce34a9..f3a86806 100644 --- a/CryptoExchange.Net/SharedApis/SharedUtils.cs +++ b/CryptoExchange.Net/SharedApis/SharedUtils.cs @@ -4,6 +4,7 @@ using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; +using System.Threading; namespace CryptoExchange.Net.SharedApis { @@ -76,5 +77,83 @@ namespace CryptoExchange.Net.SharedApis return services; } + + /// + /// Execute GetTickerAsync for all capabilities in parallel and return results as they arrive + /// + public static IAsyncEnumerable> ExecuteAllAsync( + this IEnumerable> capabilities, + GetTickerRequest request, + CancellationToken ct = default) + { + return capabilities + .Select(x => x.Capability.GetTickerAsync(request, ct)) + .ParallelEnumerateAsync(); + } + + /// + /// Execute GetAllTickersAsync for all capabilities in parallel and return results as they arrive + /// + public static IAsyncEnumerable> ExecuteAllAsync( + this IEnumerable> capabilities, + GetTickersRequest request, + CancellationToken ct = default) + { + return capabilities + .Select(x => x.Capability.GetAllTickersAsync(request, ct)) + .ParallelEnumerateAsync(); + } + + /// + /// Execute GetAssetAsync for all capabilities in parallel and return results as they arrive + /// + public static IAsyncEnumerable> ExecuteAllAsync( + this IEnumerable> capabilities, + GetAssetRequest request, + CancellationToken ct = default) + { + return capabilities + .Select(x => x.Capability.GetAssetAsync(request, ct)) + .ParallelEnumerateAsync(); + } + + /// + /// Execute GetAllAssetsAsync for all capabilities in parallel and return results as they arrive + /// + public static IAsyncEnumerable> ExecuteAllAsync( + this IEnumerable> capabilities, + GetAssetsRequest request, + CancellationToken ct = default) + { + return capabilities + .Select(x => x.Capability.GetAllAssetsAsync(request, ct)) + .ParallelEnumerateAsync(); + } + + /// + /// Execute GetAllBalancesAsync for all capabilities in parallel and return results as they arrive + /// + public static IAsyncEnumerable> ExecuteAllAsync( + this IEnumerable> capabilities, + GetBalancesRequest request, + CancellationToken ct = default) + { + return capabilities + .Select(x => x.Capability.GetBalancesAsync(request, ct)) + .ParallelEnumerateAsync(); + } + + /// + /// Execute GetAllBalancesAsync for all capabilities in parallel and return results as they arrive + /// + public static IAsyncEnumerable> ExecuteAllAsync( + this IEnumerable> capabilities, + GetBalancesRequest request, + CancellationToken ct = default) + { + return capabilities + .Select(x => x.Capability.GetBalancesAsync(request, ct)) + .ParallelEnumerateAsync(); + } } } diff --git a/CryptoExchange.Net/SharedApis/V2/Assets/GetAllAssets/IGetAllAssets.cs b/CryptoExchange.Net/SharedApis/V2/Assets/GetAllAssets/IGetAllAssets.cs index 6f2c5933..9d1213bc 100644 --- a/CryptoExchange.Net/SharedApis/V2/Assets/GetAllAssets/IGetAllAssets.cs +++ b/CryptoExchange.Net/SharedApis/V2/Assets/GetAllAssets/IGetAllAssets.cs @@ -24,7 +24,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> GetAllAssetsAsync(GetAssetsRequest request, CancellationToken ct = default); + Task> GetAllAssetsAsync(GetAssetsRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Assets/GetAsset/IGetAsset.cs b/CryptoExchange.Net/SharedApis/V2/Assets/GetAsset/IGetAsset.cs index 1150a8d2..718d0160 100644 --- a/CryptoExchange.Net/SharedApis/V2/Assets/GetAsset/IGetAsset.cs +++ b/CryptoExchange.Net/SharedApis/V2/Assets/GetAsset/IGetAsset.cs @@ -24,7 +24,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> GetAssetAsync(GetAssetRequest request, CancellationToken ct = default); + Task> GetAssetAsync(GetAssetRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Balances/GetBalances/IGetBalances.cs b/CryptoExchange.Net/SharedApis/V2/Balances/GetBalances/IGetBalances.cs index 9b4601cd..ebfde46b 100644 --- a/CryptoExchange.Net/SharedApis/V2/Balances/GetBalances/IGetBalances.cs +++ b/CryptoExchange.Net/SharedApis/V2/Balances/GetBalances/IGetBalances.cs @@ -25,7 +25,7 @@ namespace CryptoExchange.Net.SharedApis /// Request info /// Cancellation token /// - Task> GetBalancesAsync(GetBalancesRequest request, CancellationToken ct = default); + Task> GetBalancesAsync(GetBalancesRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Deposits/GetDepositAddresses/IGetDepositAddresses.cs b/CryptoExchange.Net/SharedApis/V2/Deposits/GetDepositAddresses/IGetDepositAddresses.cs index 5f352b3f..2a4ce693 100644 --- a/CryptoExchange.Net/SharedApis/V2/Deposits/GetDepositAddresses/IGetDepositAddresses.cs +++ b/CryptoExchange.Net/SharedApis/V2/Deposits/GetDepositAddresses/IGetDepositAddresses.cs @@ -25,7 +25,7 @@ namespace CryptoExchange.Net.SharedApis /// Request info /// Cancellation token /// - Task> GetDepositAddressesAsync(GetDepositAddressesRequest request, CancellationToken ct = default); + Task> GetDepositAddressesAsync(GetDepositAddressesRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Deposits/GetDepositHistory/IGetDepositHistory.cs b/CryptoExchange.Net/SharedApis/V2/Deposits/GetDepositHistory/IGetDepositHistory.cs index 9fb7c894..c78e1f7b 100644 --- a/CryptoExchange.Net/SharedApis/V2/Deposits/GetDepositHistory/IGetDepositHistory.cs +++ b/CryptoExchange.Net/SharedApis/V2/Deposits/GetDepositHistory/IGetDepositHistory.cs @@ -27,7 +27,7 @@ namespace CryptoExchange.Net.SharedApis /// The pagination request from the previous request result property to continue pagination /// Cancellation token /// - Task> GetDepositHistoryAsync(GetDepositsRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default); + Task> GetDepositHistoryAsync(GetDepositsRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Fees/GetFees/IGetFees.cs b/CryptoExchange.Net/SharedApis/V2/Fees/GetFees/IGetFees.cs index 901a1e2c..e213c1cd 100644 --- a/CryptoExchange.Net/SharedApis/V2/Fees/GetFees/IGetFees.cs +++ b/CryptoExchange.Net/SharedApis/V2/Fees/GetFees/IGetFees.cs @@ -24,7 +24,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> GetFeesAsync(GetFeeRequest request, CancellationToken ct = default); + Task> GetFeesAsync(GetFeeRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Funding/GetFundingInfo/IGetFundingInfo.cs b/CryptoExchange.Net/SharedApis/V2/Funding/GetFundingInfo/IGetFundingInfo.cs index c447799e..8cd82b17 100644 --- a/CryptoExchange.Net/SharedApis/V2/Funding/GetFundingInfo/IGetFundingInfo.cs +++ b/CryptoExchange.Net/SharedApis/V2/Funding/GetFundingInfo/IGetFundingInfo.cs @@ -23,7 +23,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> GetFundingInfoAsync(GetFundingInfoRequest request, CancellationToken ct = default); + Task> GetFundingInfoAsync(GetFundingInfoRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Funding/GetFundingRateHistory/IGetFundingRateHistory.cs b/CryptoExchange.Net/SharedApis/V2/Funding/GetFundingRateHistory/IGetFundingRateHistory.cs index 761b2811..8e357ea9 100644 --- a/CryptoExchange.Net/SharedApis/V2/Funding/GetFundingRateHistory/IGetFundingRateHistory.cs +++ b/CryptoExchange.Net/SharedApis/V2/Funding/GetFundingRateHistory/IGetFundingRateHistory.cs @@ -25,7 +25,7 @@ namespace CryptoExchange.Net.SharedApis /// Request info /// The pagination request from the previous request result property to continue pagination /// Cancellation token - Task> GetFundingRateHistoryAsync(GetFundingRateHistoryRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default); + Task> GetFundingRateHistoryAsync(GetFundingRateHistoryRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Funding/GetUserFundingHistory/IGetUserFundingHistory.cs b/CryptoExchange.Net/SharedApis/V2/Funding/GetUserFundingHistory/IGetUserFundingHistory.cs index 80a00fd7..4dbc059c 100644 --- a/CryptoExchange.Net/SharedApis/V2/Funding/GetUserFundingHistory/IGetUserFundingHistory.cs +++ b/CryptoExchange.Net/SharedApis/V2/Funding/GetUserFundingHistory/IGetUserFundingHistory.cs @@ -25,7 +25,7 @@ namespace CryptoExchange.Net.SharedApis /// Request info /// The pagination request from the previous request result property to continue pagination /// Cancellation token - Task> GetUserFundingHistoryAsync(GetUserFundingHistoryRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default); + Task> GetUserFundingHistoryAsync(GetUserFundingHistoryRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/IndexPrice/GetAllIndexPrices/IGetAllIndexPrices.cs b/CryptoExchange.Net/SharedApis/V2/IndexPrice/GetAllIndexPrices/IGetAllIndexPrices.cs index 46b29a06..64054eac 100644 --- a/CryptoExchange.Net/SharedApis/V2/IndexPrice/GetAllIndexPrices/IGetAllIndexPrices.cs +++ b/CryptoExchange.Net/SharedApis/V2/IndexPrice/GetAllIndexPrices/IGetAllIndexPrices.cs @@ -23,7 +23,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> GetAllIndexPricesAsync(GetAllIndexPricesRequest request, CancellationToken ct = default); + Task> GetAllIndexPricesAsync(GetAllIndexPricesRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/IndexPrice/GetIndexPrice/IGetIndexPrice.cs b/CryptoExchange.Net/SharedApis/V2/IndexPrice/GetIndexPrice/IGetIndexPrice.cs index 952526ca..392940aa 100644 --- a/CryptoExchange.Net/SharedApis/V2/IndexPrice/GetIndexPrice/IGetIndexPrice.cs +++ b/CryptoExchange.Net/SharedApis/V2/IndexPrice/GetIndexPrice/IGetIndexPrice.cs @@ -23,7 +23,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> GetIndexPriceAsync(GetIndexPriceRequest request, CancellationToken ct = default); + Task> GetIndexPriceAsync(GetIndexPriceRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Klines/Futures/GetIndexPriceKlines/IGetIndexPriceKlines.cs b/CryptoExchange.Net/SharedApis/V2/Klines/Futures/GetIndexPriceKlines/IGetIndexPriceKlines.cs index c62df958..78ad683f 100644 --- a/CryptoExchange.Net/SharedApis/V2/Klines/Futures/GetIndexPriceKlines/IGetIndexPriceKlines.cs +++ b/CryptoExchange.Net/SharedApis/V2/Klines/Futures/GetIndexPriceKlines/IGetIndexPriceKlines.cs @@ -25,7 +25,7 @@ namespace CryptoExchange.Net.SharedApis /// Request info /// The pagination request from the previous request result property to continue pagination /// Cancellation token - Task> GetIndexPriceKlinesAsync(GetKlinesRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default); + Task> GetIndexPriceKlinesAsync(GetKlinesRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Klines/Futures/GetMarkPriceKlines/IGetMarkPriceKlines.cs b/CryptoExchange.Net/SharedApis/V2/Klines/Futures/GetMarkPriceKlines/IGetMarkPriceKlines.cs index d9848b76..4e7e703b 100644 --- a/CryptoExchange.Net/SharedApis/V2/Klines/Futures/GetMarkPriceKlines/IGetMarkPriceKlines.cs +++ b/CryptoExchange.Net/SharedApis/V2/Klines/Futures/GetMarkPriceKlines/IGetMarkPriceKlines.cs @@ -25,7 +25,7 @@ namespace CryptoExchange.Net.SharedApis /// Request info /// The pagination request from the previous request result property to continue pagination /// Cancellation token - Task> GetMarkPriceKlinesAsync(GetKlinesRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default); + Task> GetMarkPriceKlinesAsync(GetKlinesRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Klines/GetKlines/IGetKlines.cs b/CryptoExchange.Net/SharedApis/V2/Klines/GetKlines/IGetKlines.cs index 658d6180..7e5bcf60 100644 --- a/CryptoExchange.Net/SharedApis/V2/Klines/GetKlines/IGetKlines.cs +++ b/CryptoExchange.Net/SharedApis/V2/Klines/GetKlines/IGetKlines.cs @@ -27,7 +27,7 @@ namespace CryptoExchange.Net.SharedApis /// The pagination request from the previous request result property to continue pagination /// Cancellation token /// - Task> GetKlinesAsync(GetKlinesRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default); + Task> GetKlinesAsync(GetKlinesRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Ledger/GetLedger/IGetLedger.cs b/CryptoExchange.Net/SharedApis/V2/Ledger/GetLedger/IGetLedger.cs index 274811ad..15358ff0 100644 --- a/CryptoExchange.Net/SharedApis/V2/Ledger/GetLedger/IGetLedger.cs +++ b/CryptoExchange.Net/SharedApis/V2/Ledger/GetLedger/IGetLedger.cs @@ -25,7 +25,7 @@ namespace CryptoExchange.Net.SharedApis /// Request info /// The pagination request from the previous request result property to continue pagination /// Cancellation token - Task> GetLedgerAsync(GetLedgerRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default); + Task> GetLedgerAsync(GetLedgerRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Leverage/GetLeverage/IGetLeverage.cs b/CryptoExchange.Net/SharedApis/V2/Leverage/GetLeverage/IGetLeverage.cs index e130cf4a..802e643c 100644 --- a/CryptoExchange.Net/SharedApis/V2/Leverage/GetLeverage/IGetLeverage.cs +++ b/CryptoExchange.Net/SharedApis/V2/Leverage/GetLeverage/IGetLeverage.cs @@ -23,7 +23,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> GetLeverageAsync(GetLeverageRequest request, CancellationToken ct = default); + Task> GetLeverageAsync(GetLeverageRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Leverage/GetLeverageTiers/IGetLeverageTiers.cs b/CryptoExchange.Net/SharedApis/V2/Leverage/GetLeverageTiers/IGetLeverageTiers.cs index 4de4ea35..068848dd 100644 --- a/CryptoExchange.Net/SharedApis/V2/Leverage/GetLeverageTiers/IGetLeverageTiers.cs +++ b/CryptoExchange.Net/SharedApis/V2/Leverage/GetLeverageTiers/IGetLeverageTiers.cs @@ -23,7 +23,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> GetLeverageTiersAsync(GetLeverageTiersRequest request, CancellationToken ct = default); + Task> GetLeverageTiersAsync(GetLeverageTiersRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Leverage/SetLeverage/ISetLeverage.cs b/CryptoExchange.Net/SharedApis/V2/Leverage/SetLeverage/ISetLeverage.cs index 9bdf295d..0aa83df6 100644 --- a/CryptoExchange.Net/SharedApis/V2/Leverage/SetLeverage/ISetLeverage.cs +++ b/CryptoExchange.Net/SharedApis/V2/Leverage/SetLeverage/ISetLeverage.cs @@ -28,7 +28,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> SetLeverageAsync(SetLeverageRequest request, CancellationToken ct = default); + Task> SetLeverageAsync(SetLeverageRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/MarkPrice/GetAllMarkPrices/IGetAllMarkPrices.cs b/CryptoExchange.Net/SharedApis/V2/MarkPrice/GetAllMarkPrices/IGetAllMarkPrices.cs index 9217a405..65276b8b 100644 --- a/CryptoExchange.Net/SharedApis/V2/MarkPrice/GetAllMarkPrices/IGetAllMarkPrices.cs +++ b/CryptoExchange.Net/SharedApis/V2/MarkPrice/GetAllMarkPrices/IGetAllMarkPrices.cs @@ -23,7 +23,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> GetAllMarkPricesAsync(GetAllMarkPricesRequest request, CancellationToken ct = default); + Task> GetAllMarkPricesAsync(GetAllMarkPricesRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/MarkPrice/GetMarkPrice/IGetMarkPrice.cs b/CryptoExchange.Net/SharedApis/V2/MarkPrice/GetMarkPrice/IGetMarkPrice.cs index 31a10e8f..955cd641 100644 --- a/CryptoExchange.Net/SharedApis/V2/MarkPrice/GetMarkPrice/IGetMarkPrice.cs +++ b/CryptoExchange.Net/SharedApis/V2/MarkPrice/GetMarkPrice/IGetMarkPrice.cs @@ -23,7 +23,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> GetMarkPriceAsync(GetMarkPriceRequest request, CancellationToken ct = default); + Task> GetMarkPriceAsync(GetMarkPriceRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/OpenInterest/IGetOpenInterest.cs b/CryptoExchange.Net/SharedApis/V2/OpenInterest/IGetOpenInterest.cs index 1c395042..ddbdf089 100644 --- a/CryptoExchange.Net/SharedApis/V2/OpenInterest/IGetOpenInterest.cs +++ b/CryptoExchange.Net/SharedApis/V2/OpenInterest/IGetOpenInterest.cs @@ -23,7 +23,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> GetOpenInterestAsync(GetOpenInterestRequest request, CancellationToken ct = default); + Task> GetOpenInterestAsync(GetOpenInterestRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/OrderBooks/GetBookTicker/IGetBookTicker.cs b/CryptoExchange.Net/SharedApis/V2/OrderBooks/GetBookTicker/IGetBookTicker.cs index 720bfc39..330d4219 100644 --- a/CryptoExchange.Net/SharedApis/V2/OrderBooks/GetBookTicker/IGetBookTicker.cs +++ b/CryptoExchange.Net/SharedApis/V2/OrderBooks/GetBookTicker/IGetBookTicker.cs @@ -25,7 +25,7 @@ namespace CryptoExchange.Net.SharedApis /// Request info /// Cancellation token /// - Task> GetBookTickerAsync(GetBookTickerRequest request, CancellationToken ct = default); + Task> GetBookTickerAsync(GetBookTickerRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/OrderBooks/GetOrderBook/IGetOrderBook.cs b/CryptoExchange.Net/SharedApis/V2/OrderBooks/GetOrderBook/IGetOrderBook.cs index ccf38f0d..1e3e9bfc 100644 --- a/CryptoExchange.Net/SharedApis/V2/OrderBooks/GetOrderBook/IGetOrderBook.cs +++ b/CryptoExchange.Net/SharedApis/V2/OrderBooks/GetOrderBook/IGetOrderBook.cs @@ -25,7 +25,7 @@ namespace CryptoExchange.Net.SharedApis /// Request info /// Cancellation token /// - Task> GetOrderBookAsync(GetOrderBookRequest request, CancellationToken ct = default); + Task> GetOrderBookAsync(GetOrderBookRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Orders/Futures/CancelAllFuturesOrders/ICancelAllFuturesOrder.cs b/CryptoExchange.Net/SharedApis/V2/Orders/Futures/CancelAllFuturesOrders/ICancelAllFuturesOrder.cs index a643d1c2..635217e0 100644 --- a/CryptoExchange.Net/SharedApis/V2/Orders/Futures/CancelAllFuturesOrders/ICancelAllFuturesOrder.cs +++ b/CryptoExchange.Net/SharedApis/V2/Orders/Futures/CancelAllFuturesOrders/ICancelAllFuturesOrder.cs @@ -23,7 +23,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task CancelAllFuturesOrdersAsync(CancelAllOrdersRequest request, CancellationToken ct = default); + Task CancelAllFuturesOrdersAsync(CancelAllOrdersRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Orders/Futures/CancelAllFuturesSymbolOrders/ICancelAllFuturesSymbolOrders.cs b/CryptoExchange.Net/SharedApis/V2/Orders/Futures/CancelAllFuturesSymbolOrders/ICancelAllFuturesSymbolOrders.cs index bd40e522..ebf080c6 100644 --- a/CryptoExchange.Net/SharedApis/V2/Orders/Futures/CancelAllFuturesSymbolOrders/ICancelAllFuturesSymbolOrders.cs +++ b/CryptoExchange.Net/SharedApis/V2/Orders/Futures/CancelAllFuturesSymbolOrders/ICancelAllFuturesSymbolOrders.cs @@ -23,7 +23,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task CancelAllFuturesSymbolOrdersAsync(CancelAllSymbolOrdersRequest request, CancellationToken ct = default); + Task CancelAllFuturesSymbolOrdersAsync(CancelAllSymbolOrdersRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Orders/Futures/CancelFuturesOrder/ICancelFuturesOrder.cs b/CryptoExchange.Net/SharedApis/V2/Orders/Futures/CancelFuturesOrder/ICancelFuturesOrder.cs index d6a6f878..33fd1d18 100644 --- a/CryptoExchange.Net/SharedApis/V2/Orders/Futures/CancelFuturesOrder/ICancelFuturesOrder.cs +++ b/CryptoExchange.Net/SharedApis/V2/Orders/Futures/CancelFuturesOrder/ICancelFuturesOrder.cs @@ -23,7 +23,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> CancelFuturesOrderAsync(CancelOrderRequest request, CancellationToken ct = default); + Task> CancelFuturesOrderAsync(CancelOrderRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Orders/Futures/CancelFuturesOrderByClientOrderId/ICancelFuturesOrderByClientOrderId.cs b/CryptoExchange.Net/SharedApis/V2/Orders/Futures/CancelFuturesOrderByClientOrderId/ICancelFuturesOrderByClientOrderId.cs index feaacce6..ffc9392a 100644 --- a/CryptoExchange.Net/SharedApis/V2/Orders/Futures/CancelFuturesOrderByClientOrderId/ICancelFuturesOrderByClientOrderId.cs +++ b/CryptoExchange.Net/SharedApis/V2/Orders/Futures/CancelFuturesOrderByClientOrderId/ICancelFuturesOrderByClientOrderId.cs @@ -23,7 +23,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> CancelFuturesOrderByClientOrderIdAsync(CancelOrderRequest request, CancellationToken ct = default); + Task> CancelFuturesOrderByClientOrderIdAsync(CancelOrderRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Orders/Futures/EditFuturesOrder/IEditFuturesOrder.cs b/CryptoExchange.Net/SharedApis/V2/Orders/Futures/EditFuturesOrder/IEditFuturesOrder.cs index 82ccd6e2..2cf59a49 100644 --- a/CryptoExchange.Net/SharedApis/V2/Orders/Futures/EditFuturesOrder/IEditFuturesOrder.cs +++ b/CryptoExchange.Net/SharedApis/V2/Orders/Futures/EditFuturesOrder/IEditFuturesOrder.cs @@ -24,7 +24,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> EditFuturesOrderAsync( + Task> EditFuturesOrderAsync( EditOrderRequest request, CancellationToken ct = default); } diff --git a/CryptoExchange.Net/SharedApis/V2/Orders/Futures/EditFuturesOrderByClientOrderId/IEditFuturesOrderByClientOrderId.cs b/CryptoExchange.Net/SharedApis/V2/Orders/Futures/EditFuturesOrderByClientOrderId/IEditFuturesOrderByClientOrderId.cs index b660804e..62b1c090 100644 --- a/CryptoExchange.Net/SharedApis/V2/Orders/Futures/EditFuturesOrderByClientOrderId/IEditFuturesOrderByClientOrderId.cs +++ b/CryptoExchange.Net/SharedApis/V2/Orders/Futures/EditFuturesOrderByClientOrderId/IEditFuturesOrderByClientOrderId.cs @@ -23,7 +23,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> EditFuturesOrderByClientOrderIdAsync(EditOrderRequest request, CancellationToken ct = default); + Task> EditFuturesOrderByClientOrderIdAsync(EditOrderRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Orders/Futures/GetClosedFuturesOrders/IGetClosedFuturesOrders.cs b/CryptoExchange.Net/SharedApis/V2/Orders/Futures/GetClosedFuturesOrders/IGetClosedFuturesOrders.cs index aa5296f2..dacb9e44 100644 --- a/CryptoExchange.Net/SharedApis/V2/Orders/Futures/GetClosedFuturesOrders/IGetClosedFuturesOrders.cs +++ b/CryptoExchange.Net/SharedApis/V2/Orders/Futures/GetClosedFuturesOrders/IGetClosedFuturesOrders.cs @@ -25,7 +25,7 @@ namespace CryptoExchange.Net.SharedApis /// Request info /// The pagination request from the previous request result property to continue pagination /// Cancellation token - Task> GetClosedFuturesOrdersAsync(GetClosedOrdersRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default); + Task> GetClosedFuturesOrdersAsync(GetClosedOrdersRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Orders/Futures/GetFuturesOrder/IGetFuturesOrder.cs b/CryptoExchange.Net/SharedApis/V2/Orders/Futures/GetFuturesOrder/IGetFuturesOrder.cs index 8abb1ac3..53581124 100644 --- a/CryptoExchange.Net/SharedApis/V2/Orders/Futures/GetFuturesOrder/IGetFuturesOrder.cs +++ b/CryptoExchange.Net/SharedApis/V2/Orders/Futures/GetFuturesOrder/IGetFuturesOrder.cs @@ -23,7 +23,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> GetFuturesOrderAsync(GetOrderRequest request, CancellationToken ct = default); + Task> GetFuturesOrderAsync(GetOrderRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Orders/Futures/GetFuturesOrderByClientOrderId/IGetFuturesOrderByClientOrderId.cs b/CryptoExchange.Net/SharedApis/V2/Orders/Futures/GetFuturesOrderByClientOrderId/IGetFuturesOrderByClientOrderId.cs index 97f2a99f..c9ce4663 100644 --- a/CryptoExchange.Net/SharedApis/V2/Orders/Futures/GetFuturesOrderByClientOrderId/IGetFuturesOrderByClientOrderId.cs +++ b/CryptoExchange.Net/SharedApis/V2/Orders/Futures/GetFuturesOrderByClientOrderId/IGetFuturesOrderByClientOrderId.cs @@ -24,7 +24,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> GetFuturesOrderByClientOrderIdAsync(GetOrderRequest request, CancellationToken ct = default); + Task> GetFuturesOrderByClientOrderIdAsync(GetOrderRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Orders/Futures/GetOpenFuturesOrders/IGetOpenFuturesOrders.cs b/CryptoExchange.Net/SharedApis/V2/Orders/Futures/GetOpenFuturesOrders/IGetOpenFuturesOrders.cs index d28d7e63..2451aa7d 100644 --- a/CryptoExchange.Net/SharedApis/V2/Orders/Futures/GetOpenFuturesOrders/IGetOpenFuturesOrders.cs +++ b/CryptoExchange.Net/SharedApis/V2/Orders/Futures/GetOpenFuturesOrders/IGetOpenFuturesOrders.cs @@ -23,7 +23,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> GetOpenFuturesOrdersAsync(GetOpenOrdersRequest request, CancellationToken ct = default); + Task> GetOpenFuturesOrdersAsync(GetOpenOrdersRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Orders/Futures/PlaceFuturesOrder/IPlaceFuturesOrder.cs b/CryptoExchange.Net/SharedApis/V2/Orders/Futures/PlaceFuturesOrder/IPlaceFuturesOrder.cs index 8893432b..41b1f21b 100644 --- a/CryptoExchange.Net/SharedApis/V2/Orders/Futures/PlaceFuturesOrder/IPlaceFuturesOrder.cs +++ b/CryptoExchange.Net/SharedApis/V2/Orders/Futures/PlaceFuturesOrder/IPlaceFuturesOrder.cs @@ -51,7 +51,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> PlaceFuturesOrderAsync(PlaceFuturesOrderRequest request, CancellationToken ct = default); + Task> PlaceFuturesOrderAsync(PlaceFuturesOrderRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Orders/Futures/PlaceMultipleFuturesOrders/IPlaceMultipleFuturesOrders.cs b/CryptoExchange.Net/SharedApis/V2/Orders/Futures/PlaceMultipleFuturesOrders/IPlaceMultipleFuturesOrders.cs index bfac320b..b301c85b 100644 --- a/CryptoExchange.Net/SharedApis/V2/Orders/Futures/PlaceMultipleFuturesOrders/IPlaceMultipleFuturesOrders.cs +++ b/CryptoExchange.Net/SharedApis/V2/Orders/Futures/PlaceMultipleFuturesOrders/IPlaceMultipleFuturesOrders.cs @@ -59,7 +59,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task[]>> PlaceMultipleFuturesOrdersAsync( + Task[]>> PlaceMultipleFuturesOrdersAsync( PlaceMultipleFuturesOrdersRequest request, CancellationToken ct = default); } diff --git a/CryptoExchange.Net/SharedApis/V2/Orders/Spot/CancelAllSpotOrders/ICancelAllSpotOrder.cs b/CryptoExchange.Net/SharedApis/V2/Orders/Spot/CancelAllSpotOrders/ICancelAllSpotOrder.cs index 5713f617..8cc479ab 100644 --- a/CryptoExchange.Net/SharedApis/V2/Orders/Spot/CancelAllSpotOrders/ICancelAllSpotOrder.cs +++ b/CryptoExchange.Net/SharedApis/V2/Orders/Spot/CancelAllSpotOrders/ICancelAllSpotOrder.cs @@ -23,7 +23,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task CancelAllSpotOrdersAsync(CancelAllOrdersRequest request, CancellationToken ct = default); + Task CancelAllSpotOrdersAsync(CancelAllOrdersRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Orders/Spot/CancelAllSpotSymbolOrders/ICancelAllSpotSymbolOrders.cs b/CryptoExchange.Net/SharedApis/V2/Orders/Spot/CancelAllSpotSymbolOrders/ICancelAllSpotSymbolOrders.cs index 9064f86c..272e1aa4 100644 --- a/CryptoExchange.Net/SharedApis/V2/Orders/Spot/CancelAllSpotSymbolOrders/ICancelAllSpotSymbolOrders.cs +++ b/CryptoExchange.Net/SharedApis/V2/Orders/Spot/CancelAllSpotSymbolOrders/ICancelAllSpotSymbolOrders.cs @@ -23,7 +23,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task CancelAllSpotSymbolOrdersAsync(CancelAllSymbolOrdersRequest request, CancellationToken ct = default); + Task CancelAllSpotSymbolOrdersAsync(CancelAllSymbolOrdersRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Orders/Spot/CancelSpotOrder/ICancelSpotOrder.cs b/CryptoExchange.Net/SharedApis/V2/Orders/Spot/CancelSpotOrder/ICancelSpotOrder.cs index e6a9fd71..1e4f5d06 100644 --- a/CryptoExchange.Net/SharedApis/V2/Orders/Spot/CancelSpotOrder/ICancelSpotOrder.cs +++ b/CryptoExchange.Net/SharedApis/V2/Orders/Spot/CancelSpotOrder/ICancelSpotOrder.cs @@ -23,7 +23,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> CancelSpotOrderAsync(CancelOrderRequest request, CancellationToken ct = default); + Task> CancelSpotOrderAsync(CancelOrderRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Orders/Spot/CancelSpotOrderByClientOrderId/ICancelSpotOrderByClientOrderId.cs b/CryptoExchange.Net/SharedApis/V2/Orders/Spot/CancelSpotOrderByClientOrderId/ICancelSpotOrderByClientOrderId.cs index dc472b46..dbb373bb 100644 --- a/CryptoExchange.Net/SharedApis/V2/Orders/Spot/CancelSpotOrderByClientOrderId/ICancelSpotOrderByClientOrderId.cs +++ b/CryptoExchange.Net/SharedApis/V2/Orders/Spot/CancelSpotOrderByClientOrderId/ICancelSpotOrderByClientOrderId.cs @@ -23,7 +23,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> CancelSpotOrderByClientOrderIdAsync(CancelOrderRequest request, CancellationToken ct = default); + Task> CancelSpotOrderByClientOrderIdAsync(CancelOrderRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Orders/Spot/EditSpotOrder/IEditSpotOrder.cs b/CryptoExchange.Net/SharedApis/V2/Orders/Spot/EditSpotOrder/IEditSpotOrder.cs index f73b18ce..a94f341d 100644 --- a/CryptoExchange.Net/SharedApis/V2/Orders/Spot/EditSpotOrder/IEditSpotOrder.cs +++ b/CryptoExchange.Net/SharedApis/V2/Orders/Spot/EditSpotOrder/IEditSpotOrder.cs @@ -24,7 +24,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> EditSpotOrderAsync( + Task> EditSpotOrderAsync( EditOrderRequest request, CancellationToken ct = default); } diff --git a/CryptoExchange.Net/SharedApis/V2/Orders/Spot/EditSpotOrderByClientOrderId/IEditSpotOrderByClientOrderId.cs b/CryptoExchange.Net/SharedApis/V2/Orders/Spot/EditSpotOrderByClientOrderId/IEditSpotOrderByClientOrderId.cs index 4d91ceaf..c6eb1c11 100644 --- a/CryptoExchange.Net/SharedApis/V2/Orders/Spot/EditSpotOrderByClientOrderId/IEditSpotOrderByClientOrderId.cs +++ b/CryptoExchange.Net/SharedApis/V2/Orders/Spot/EditSpotOrderByClientOrderId/IEditSpotOrderByClientOrderId.cs @@ -23,7 +23,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> EditSpotOrderByClientOrderIdAsync(EditOrderRequest request, CancellationToken ct = default); + Task> EditSpotOrderByClientOrderIdAsync(EditOrderRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Orders/Spot/GetClosedSpotOrders/IGetClosedSpotOrders.cs b/CryptoExchange.Net/SharedApis/V2/Orders/Spot/GetClosedSpotOrders/IGetClosedSpotOrders.cs index 2bdb6149..2a569570 100644 --- a/CryptoExchange.Net/SharedApis/V2/Orders/Spot/GetClosedSpotOrders/IGetClosedSpotOrders.cs +++ b/CryptoExchange.Net/SharedApis/V2/Orders/Spot/GetClosedSpotOrders/IGetClosedSpotOrders.cs @@ -25,7 +25,7 @@ namespace CryptoExchange.Net.SharedApis /// Request info /// The pagination request from the previous request result property to continue pagination /// Cancellation token - Task> GetClosedSpotOrdersAsync(GetClosedOrdersRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default); + Task> GetClosedSpotOrdersAsync(GetClosedOrdersRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Orders/Spot/GetOpenSpotOrders/IGetOpenSpotOrders.cs b/CryptoExchange.Net/SharedApis/V2/Orders/Spot/GetOpenSpotOrders/IGetOpenSpotOrders.cs index 75db4e59..8cf1957f 100644 --- a/CryptoExchange.Net/SharedApis/V2/Orders/Spot/GetOpenSpotOrders/IGetOpenSpotOrders.cs +++ b/CryptoExchange.Net/SharedApis/V2/Orders/Spot/GetOpenSpotOrders/IGetOpenSpotOrders.cs @@ -23,7 +23,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> GetOpenSpotOrdersAsync(GetOpenOrdersRequest request, CancellationToken ct = default); + Task> GetOpenSpotOrdersAsync(GetOpenOrdersRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Orders/Spot/GetSpotOrder/IGetSpotOrder.cs b/CryptoExchange.Net/SharedApis/V2/Orders/Spot/GetSpotOrder/IGetSpotOrder.cs index 2a0a4f13..46dd120d 100644 --- a/CryptoExchange.Net/SharedApis/V2/Orders/Spot/GetSpotOrder/IGetSpotOrder.cs +++ b/CryptoExchange.Net/SharedApis/V2/Orders/Spot/GetSpotOrder/IGetSpotOrder.cs @@ -23,7 +23,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> GetSpotOrderAsync(GetOrderRequest request, CancellationToken ct = default); + Task> GetSpotOrderAsync(GetOrderRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Orders/Spot/GetSpotOrderByClientOrderId/IGetSpotOrderByClientOrderId.cs b/CryptoExchange.Net/SharedApis/V2/Orders/Spot/GetSpotOrderByClientOrderId/IGetSpotOrderByClientOrderId.cs index e01273fe..bbff051b 100644 --- a/CryptoExchange.Net/SharedApis/V2/Orders/Spot/GetSpotOrderByClientOrderId/IGetSpotOrderByClientOrderId.cs +++ b/CryptoExchange.Net/SharedApis/V2/Orders/Spot/GetSpotOrderByClientOrderId/IGetSpotOrderByClientOrderId.cs @@ -24,7 +24,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> GetSpotOrderByClientOrderIdAsync(GetOrderRequest request, CancellationToken ct = default); + Task> GetSpotOrderByClientOrderIdAsync(GetOrderRequest request, CancellationToken ct = default); } diff --git a/CryptoExchange.Net/SharedApis/V2/Orders/Spot/PlaceMultipleSpotOrders/IPlaceMultipleSpotOrders.cs b/CryptoExchange.Net/SharedApis/V2/Orders/Spot/PlaceMultipleSpotOrders/IPlaceMultipleSpotOrders.cs index 2cc67eec..10aa26b3 100644 --- a/CryptoExchange.Net/SharedApis/V2/Orders/Spot/PlaceMultipleSpotOrders/IPlaceMultipleSpotOrders.cs +++ b/CryptoExchange.Net/SharedApis/V2/Orders/Spot/PlaceMultipleSpotOrders/IPlaceMultipleSpotOrders.cs @@ -59,7 +59,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task[]>> PlaceMultipleSpotOrdersAsync( + Task[]>> PlaceMultipleSpotOrdersAsync( PlaceMultipleSpotOrdersRequest request, CancellationToken ct = default); } diff --git a/CryptoExchange.Net/SharedApis/V2/Orders/Spot/PlaceSpotOrder/IPlaceSpotOrder.cs b/CryptoExchange.Net/SharedApis/V2/Orders/Spot/PlaceSpotOrder/IPlaceSpotOrder.cs index 06d75a63..0e5f3fce 100644 --- a/CryptoExchange.Net/SharedApis/V2/Orders/Spot/PlaceSpotOrder/IPlaceSpotOrder.cs +++ b/CryptoExchange.Net/SharedApis/V2/Orders/Spot/PlaceSpotOrder/IPlaceSpotOrder.cs @@ -51,7 +51,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> PlaceSpotOrderAsync( + Task> PlaceSpotOrderAsync( PlaceSpotOrderRequest request, CancellationToken ct = default); } diff --git a/CryptoExchange.Net/SharedApis/V2/PositionMode/GetPositionMode/IGetPositionMode.cs b/CryptoExchange.Net/SharedApis/V2/PositionMode/GetPositionMode/IGetPositionMode.cs index acc1fe39..dcc176d7 100644 --- a/CryptoExchange.Net/SharedApis/V2/PositionMode/GetPositionMode/IGetPositionMode.cs +++ b/CryptoExchange.Net/SharedApis/V2/PositionMode/GetPositionMode/IGetPositionMode.cs @@ -23,7 +23,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> GetPositionModeAsync(GetPositionModeRequest request, CancellationToken ct = default); + Task> GetPositionModeAsync(GetPositionModeRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/PositionMode/SetPositionMode/ISetPositionMode.cs b/CryptoExchange.Net/SharedApis/V2/PositionMode/SetPositionMode/ISetPositionMode.cs index 272ad24e..ad12dee4 100644 --- a/CryptoExchange.Net/SharedApis/V2/PositionMode/SetPositionMode/ISetPositionMode.cs +++ b/CryptoExchange.Net/SharedApis/V2/PositionMode/SetPositionMode/ISetPositionMode.cs @@ -28,7 +28,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> SetPositionModeAsync(SetPositionModeRequest request, CancellationToken ct = default); + Task> SetPositionModeAsync(SetPositionModeRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Positions/ClosePosition/ICloseFullPosition.cs b/CryptoExchange.Net/SharedApis/V2/Positions/ClosePosition/ICloseFullPosition.cs index 25b283ad..75f232c6 100644 --- a/CryptoExchange.Net/SharedApis/V2/Positions/ClosePosition/ICloseFullPosition.cs +++ b/CryptoExchange.Net/SharedApis/V2/Positions/ClosePosition/ICloseFullPosition.cs @@ -24,7 +24,7 @@ namespace CryptoExchange.Net.SharedApis /// Request info /// Cancellation token /// - Task> CloseFullPositionAsync(CloseFullPositionRequest request, CancellationToken ct = default); + Task> CloseFullPositionAsync(CloseFullPositionRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Positions/GetPositionHistory/IGetPositionHistory.cs b/CryptoExchange.Net/SharedApis/V2/Positions/GetPositionHistory/IGetPositionHistory.cs index 0327af2d..dbbf9d45 100644 --- a/CryptoExchange.Net/SharedApis/V2/Positions/GetPositionHistory/IGetPositionHistory.cs +++ b/CryptoExchange.Net/SharedApis/V2/Positions/GetPositionHistory/IGetPositionHistory.cs @@ -25,7 +25,7 @@ namespace CryptoExchange.Net.SharedApis /// Request info /// The pagination request from the previous request result property to continue pagination /// Cancellation token - Task> GetPositionHistoryAsync(GetPositionHistoryRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default); + Task> GetPositionHistoryAsync(GetPositionHistoryRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Positions/GetPositions/IGetPositions.cs b/CryptoExchange.Net/SharedApis/V2/Positions/GetPositions/IGetPositions.cs index 77c1e12b..66520db0 100644 --- a/CryptoExchange.Net/SharedApis/V2/Positions/GetPositions/IGetPositions.cs +++ b/CryptoExchange.Net/SharedApis/V2/Positions/GetPositions/IGetPositions.cs @@ -23,7 +23,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> GetPositionsAsync(GetPositionsRequest request, CancellationToken ct = default); + Task> GetPositionsAsync(GetPositionsRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Symbols/GetFuturesSymbols/IGetFuturesSymbols.cs b/CryptoExchange.Net/SharedApis/V2/Symbols/GetFuturesSymbols/IGetFuturesSymbols.cs index 4ff2acb5..f677b1ce 100644 --- a/CryptoExchange.Net/SharedApis/V2/Symbols/GetFuturesSymbols/IGetFuturesSymbols.cs +++ b/CryptoExchange.Net/SharedApis/V2/Symbols/GetFuturesSymbols/IGetFuturesSymbols.cs @@ -28,7 +28,7 @@ namespace CryptoExchange.Net.SharedApis /// Get all futures symbols for a specific base asset /// /// Asset, for example `ETH` - Task> GetFuturesSymbolsForBaseAssetAsync(string baseAsset); + Task> GetFuturesSymbolsForBaseAssetAsync(string baseAsset); /// /// Gets whether the client supports a futures symbol diff --git a/CryptoExchange.Net/SharedApis/V2/Symbols/GetSpotSymbols/IGetSpotSymbols.cs b/CryptoExchange.Net/SharedApis/V2/Symbols/GetSpotSymbols/IGetSpotSymbols.cs index 6fa70296..9ae1decf 100644 --- a/CryptoExchange.Net/SharedApis/V2/Symbols/GetSpotSymbols/IGetSpotSymbols.cs +++ b/CryptoExchange.Net/SharedApis/V2/Symbols/GetSpotSymbols/IGetSpotSymbols.cs @@ -27,7 +27,7 @@ namespace CryptoExchange.Net.SharedApis /// Gets whether the client supports a spot symbol /// /// The symbol - Task> SupportsSpotSymbolAsync(SharedSymbol symbol); + Task> SupportsSpotSymbolAsync(SharedSymbol symbol); /// /// Gets whether the client supports a spot symbol diff --git a/CryptoExchange.Net/SharedApis/V2/Tickers/GetAllTickers/IGetAllTickers.cs b/CryptoExchange.Net/SharedApis/V2/Tickers/GetAllTickers/IGetAllTickers.cs index 63089a8b..745bc8ca 100644 --- a/CryptoExchange.Net/SharedApis/V2/Tickers/GetAllTickers/IGetAllTickers.cs +++ b/CryptoExchange.Net/SharedApis/V2/Tickers/GetAllTickers/IGetAllTickers.cs @@ -23,7 +23,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> GetAllTickersAsync(GetTickersRequest request, CancellationToken ct = default); + Task> GetAllTickersAsync(GetTickersRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Tickers/GetTicker/IGetTicker.cs b/CryptoExchange.Net/SharedApis/V2/Tickers/GetTicker/IGetTicker.cs index c67fa4a0..0a867188 100644 --- a/CryptoExchange.Net/SharedApis/V2/Tickers/GetTicker/IGetTicker.cs +++ b/CryptoExchange.Net/SharedApis/V2/Tickers/GetTicker/IGetTicker.cs @@ -23,7 +23,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> GetTickerAsync(GetTickerRequest request, CancellationToken ct = default); + Task> GetTickerAsync(GetTickerRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/TpSl/CancelFuturesTpSl/ICancelFuturesTpSl.cs b/CryptoExchange.Net/SharedApis/V2/TpSl/CancelFuturesTpSl/ICancelFuturesTpSl.cs index dc752ae4..ea84e6dc 100644 --- a/CryptoExchange.Net/SharedApis/V2/TpSl/CancelFuturesTpSl/ICancelFuturesTpSl.cs +++ b/CryptoExchange.Net/SharedApis/V2/TpSl/CancelFuturesTpSl/ICancelFuturesTpSl.cs @@ -24,7 +24,7 @@ namespace CryptoExchange.Net.SharedApis /// Request info /// Cancellation token /// - Task> CancelFuturesTpSlAsync(CancelTpSlRequest request, CancellationToken ct = default); + Task> CancelFuturesTpSlAsync(CancelTpSlRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/TpSl/SetFuturesTpSl/ISetFuturesTpSl.cs b/CryptoExchange.Net/SharedApis/V2/TpSl/SetFuturesTpSl/ISetFuturesTpSl.cs index b79065c5..5e8ce4cd 100644 --- a/CryptoExchange.Net/SharedApis/V2/TpSl/SetFuturesTpSl/ISetFuturesTpSl.cs +++ b/CryptoExchange.Net/SharedApis/V2/TpSl/SetFuturesTpSl/ISetFuturesTpSl.cs @@ -24,7 +24,7 @@ namespace CryptoExchange.Net.SharedApis /// Request info /// Cancellation token /// - Task> SetFuturesTpSlAsync(SetTpSlRequest request, CancellationToken ct = default); + Task> SetFuturesTpSlAsync(SetTpSlRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Trades/GetRecentTrades/IGetRecentTrades.cs b/CryptoExchange.Net/SharedApis/V2/Trades/GetRecentTrades/IGetRecentTrades.cs index 2cd21cbb..f5412373 100644 --- a/CryptoExchange.Net/SharedApis/V2/Trades/GetRecentTrades/IGetRecentTrades.cs +++ b/CryptoExchange.Net/SharedApis/V2/Trades/GetRecentTrades/IGetRecentTrades.cs @@ -25,7 +25,7 @@ namespace CryptoExchange.Net.SharedApis /// Request info /// Cancellation token /// - Task> GetRecentTradesAsync(GetRecentTradesRequest request, CancellationToken ct = default); + Task> GetRecentTradesAsync(GetRecentTradesRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Trades/GetTradeHistory/IGetTradeHistory.cs b/CryptoExchange.Net/SharedApis/V2/Trades/GetTradeHistory/IGetTradeHistory.cs index e1fc1c70..2887b401 100644 --- a/CryptoExchange.Net/SharedApis/V2/Trades/GetTradeHistory/IGetTradeHistory.cs +++ b/CryptoExchange.Net/SharedApis/V2/Trades/GetTradeHistory/IGetTradeHistory.cs @@ -27,7 +27,7 @@ namespace CryptoExchange.Net.SharedApis /// The pagination request from the previous request result property to continue pagination /// Cancellation token /// - Task> GetTradeHistoryAsync(GetTradeHistoryRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default); + Task> GetTradeHistoryAsync(GetTradeHistoryRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Transfers/GetTransferHistory/IGetTransferHistory.cs b/CryptoExchange.Net/SharedApis/V2/Transfers/GetTransferHistory/IGetTransferHistory.cs index d03f50db..6199d78e 100644 --- a/CryptoExchange.Net/SharedApis/V2/Transfers/GetTransferHistory/IGetTransferHistory.cs +++ b/CryptoExchange.Net/SharedApis/V2/Transfers/GetTransferHistory/IGetTransferHistory.cs @@ -25,7 +25,7 @@ namespace CryptoExchange.Net.SharedApis /// Request info /// The pagination request from the previous request result property to continue pagination /// Cancellation token - Task> GetTransferHistoryAsync(GetTransferHistoryRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default); + Task> GetTransferHistoryAsync(GetTransferHistoryRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Transfers/ITransfer.cs b/CryptoExchange.Net/SharedApis/V2/Transfers/ITransfer.cs index 2a8109a0..20e34e06 100644 --- a/CryptoExchange.Net/SharedApis/V2/Transfers/ITransfer.cs +++ b/CryptoExchange.Net/SharedApis/V2/Transfers/ITransfer.cs @@ -24,7 +24,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> TransferAsync(TransferRequest request, CancellationToken ct = default); + Task> TransferAsync(TransferRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/TriggerOrders/Futures/CancelFuturesTriggerOrder/ICancelFuturesTriggerOrder.cs b/CryptoExchange.Net/SharedApis/V2/TriggerOrders/Futures/CancelFuturesTriggerOrder/ICancelFuturesTriggerOrder.cs index 9e2279f4..88183bd8 100644 --- a/CryptoExchange.Net/SharedApis/V2/TriggerOrders/Futures/CancelFuturesTriggerOrder/ICancelFuturesTriggerOrder.cs +++ b/CryptoExchange.Net/SharedApis/V2/TriggerOrders/Futures/CancelFuturesTriggerOrder/ICancelFuturesTriggerOrder.cs @@ -23,7 +23,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> CancelFuturesTriggerOrderAsync(CancelOrderRequest request, CancellationToken ct = default); + Task> CancelFuturesTriggerOrderAsync(CancelOrderRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/TriggerOrders/Futures/GetFuturesTriggerOrder/IGetFuturesTriggerOrder.cs b/CryptoExchange.Net/SharedApis/V2/TriggerOrders/Futures/GetFuturesTriggerOrder/IGetFuturesTriggerOrder.cs index 9b175e53..94bc4815 100644 --- a/CryptoExchange.Net/SharedApis/V2/TriggerOrders/Futures/GetFuturesTriggerOrder/IGetFuturesTriggerOrder.cs +++ b/CryptoExchange.Net/SharedApis/V2/TriggerOrders/Futures/GetFuturesTriggerOrder/IGetFuturesTriggerOrder.cs @@ -23,7 +23,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> GetFuturesTriggerOrderAsync(GetOrderRequest request, CancellationToken ct = default); + Task> GetFuturesTriggerOrderAsync(GetOrderRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/TriggerOrders/Futures/PlaceFuturesTriggerOrder/IPlaceFuturesTriggerOrder.cs b/CryptoExchange.Net/SharedApis/V2/TriggerOrders/Futures/PlaceFuturesTriggerOrder/IPlaceFuturesTriggerOrder.cs index 6a979243..72fc64f1 100644 --- a/CryptoExchange.Net/SharedApis/V2/TriggerOrders/Futures/PlaceFuturesTriggerOrder/IPlaceFuturesTriggerOrder.cs +++ b/CryptoExchange.Net/SharedApis/V2/TriggerOrders/Futures/PlaceFuturesTriggerOrder/IPlaceFuturesTriggerOrder.cs @@ -25,7 +25,7 @@ namespace CryptoExchange.Net.SharedApis /// Request info /// Cancellation token /// - Task> PlaceFuturesTriggerOrderAsync(PlaceFuturesTriggerOrderRequest request, CancellationToken ct = default); + Task> PlaceFuturesTriggerOrderAsync(PlaceFuturesTriggerOrderRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/TriggerOrders/Spot/CancelSpotTriggerOrder/ICancelSpotTriggerOrder.cs b/CryptoExchange.Net/SharedApis/V2/TriggerOrders/Spot/CancelSpotTriggerOrder/ICancelSpotTriggerOrder.cs index 5d0e2210..397cbfbf 100644 --- a/CryptoExchange.Net/SharedApis/V2/TriggerOrders/Spot/CancelSpotTriggerOrder/ICancelSpotTriggerOrder.cs +++ b/CryptoExchange.Net/SharedApis/V2/TriggerOrders/Spot/CancelSpotTriggerOrder/ICancelSpotTriggerOrder.cs @@ -23,7 +23,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> CancelSpotTriggerOrderAsync(CancelOrderRequest request, CancellationToken ct = default); + Task> CancelSpotTriggerOrderAsync(CancelOrderRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/TriggerOrders/Spot/GetSpotTriggerOrder/IGetSpotTriggerOrder.cs b/CryptoExchange.Net/SharedApis/V2/TriggerOrders/Spot/GetSpotTriggerOrder/IGetSpotTriggerOrder.cs index 6199ebf0..b094d3d2 100644 --- a/CryptoExchange.Net/SharedApis/V2/TriggerOrders/Spot/GetSpotTriggerOrder/IGetSpotTriggerOrder.cs +++ b/CryptoExchange.Net/SharedApis/V2/TriggerOrders/Spot/GetSpotTriggerOrder/IGetSpotTriggerOrder.cs @@ -23,7 +23,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> GetSpotTriggerOrderAsync(GetOrderRequest request, CancellationToken ct = default); + Task> GetSpotTriggerOrderAsync(GetOrderRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/TriggerOrders/Spot/PlaceSpotTriggerOrder/IPlaceSpotTriggerOrder.cs b/CryptoExchange.Net/SharedApis/V2/TriggerOrders/Spot/PlaceSpotTriggerOrder/IPlaceSpotTriggerOrder.cs index b9844e79..4885efd9 100644 --- a/CryptoExchange.Net/SharedApis/V2/TriggerOrders/Spot/PlaceSpotTriggerOrder/IPlaceSpotTriggerOrder.cs +++ b/CryptoExchange.Net/SharedApis/V2/TriggerOrders/Spot/PlaceSpotTriggerOrder/IPlaceSpotTriggerOrder.cs @@ -25,7 +25,7 @@ namespace CryptoExchange.Net.SharedApis /// Request info /// Cancellation token /// - Task> PlaceSpotTriggerOrderAsync(PlaceSpotTriggerOrderRequest request, CancellationToken ct = default); + Task> PlaceSpotTriggerOrderAsync(PlaceSpotTriggerOrderRequest request, CancellationToken ct = default); } diff --git a/CryptoExchange.Net/SharedApis/V2/UserTrades/Futures/GetFuturesOrderTrades/IGetFuturesOrderTrades.cs b/CryptoExchange.Net/SharedApis/V2/UserTrades/Futures/GetFuturesOrderTrades/IGetFuturesOrderTrades.cs index 6e17c655..760224cb 100644 --- a/CryptoExchange.Net/SharedApis/V2/UserTrades/Futures/GetFuturesOrderTrades/IGetFuturesOrderTrades.cs +++ b/CryptoExchange.Net/SharedApis/V2/UserTrades/Futures/GetFuturesOrderTrades/IGetFuturesOrderTrades.cs @@ -23,7 +23,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> GetFuturesOrderTradesAsync(GetOrderTradesRequest request, CancellationToken ct = default); + Task> GetFuturesOrderTradesAsync(GetOrderTradesRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/UserTrades/Futures/GetFuturesUserTradeHistory/IGetFuturesUserTradeHistory.cs b/CryptoExchange.Net/SharedApis/V2/UserTrades/Futures/GetFuturesUserTradeHistory/IGetFuturesUserTradeHistory.cs index 14a02ab9..fc98ed3c 100644 --- a/CryptoExchange.Net/SharedApis/V2/UserTrades/Futures/GetFuturesUserTradeHistory/IGetFuturesUserTradeHistory.cs +++ b/CryptoExchange.Net/SharedApis/V2/UserTrades/Futures/GetFuturesUserTradeHistory/IGetFuturesUserTradeHistory.cs @@ -25,7 +25,7 @@ namespace CryptoExchange.Net.SharedApis /// Request info /// The pagination request from the previous request result property to continue pagination /// Cancellation token - Task> GetFuturesUserTradeHistoryAsync(GetUserTradesRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default); + Task> GetFuturesUserTradeHistoryAsync(GetUserTradesRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/UserTrades/Spot/GetSpotOrderTrades/IGetSpotOrderTrades.cs b/CryptoExchange.Net/SharedApis/V2/UserTrades/Spot/GetSpotOrderTrades/IGetSpotOrderTrades.cs index fe472f86..c17219c6 100644 --- a/CryptoExchange.Net/SharedApis/V2/UserTrades/Spot/GetSpotOrderTrades/IGetSpotOrderTrades.cs +++ b/CryptoExchange.Net/SharedApis/V2/UserTrades/Spot/GetSpotOrderTrades/IGetSpotOrderTrades.cs @@ -24,7 +24,7 @@ namespace CryptoExchange.Net.SharedApis /// /// Request info /// Cancellation token - Task> GetSpotOrderTradesAsync(GetOrderTradesRequest request, CancellationToken ct = default); + Task> GetSpotOrderTradesAsync(GetOrderTradesRequest request, CancellationToken ct = default); } diff --git a/CryptoExchange.Net/SharedApis/V2/UserTrades/Spot/GetSpotUserTradeHistory/IGetSpotUserTradeHistory.cs b/CryptoExchange.Net/SharedApis/V2/UserTrades/Spot/GetSpotUserTradeHistory/IGetSpotUserTradeHistory.cs index be02e3b2..6a56e53a 100644 --- a/CryptoExchange.Net/SharedApis/V2/UserTrades/Spot/GetSpotUserTradeHistory/IGetSpotUserTradeHistory.cs +++ b/CryptoExchange.Net/SharedApis/V2/UserTrades/Spot/GetSpotUserTradeHistory/IGetSpotUserTradeHistory.cs @@ -25,7 +25,7 @@ namespace CryptoExchange.Net.SharedApis /// Request info /// The pagination request from the previous request result property to continue pagination /// Cancellation token - Task> GetSpotUserTradeHistoryAsync(GetUserTradesRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default); + Task> GetSpotUserTradeHistoryAsync(GetUserTradesRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Withdrawals/GetWithdrawalHistory/IGetWithdrawalHistory.cs b/CryptoExchange.Net/SharedApis/V2/Withdrawals/GetWithdrawalHistory/IGetWithdrawalHistory.cs index fbc0a357..711c9b8f 100644 --- a/CryptoExchange.Net/SharedApis/V2/Withdrawals/GetWithdrawalHistory/IGetWithdrawalHistory.cs +++ b/CryptoExchange.Net/SharedApis/V2/Withdrawals/GetWithdrawalHistory/IGetWithdrawalHistory.cs @@ -27,7 +27,7 @@ namespace CryptoExchange.Net.SharedApis /// The pagination request from the previous request result property to continue pagination /// Cancellation token /// - Task> GetWithdrawalHistoryAsync(GetWithdrawalsRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default); + Task> GetWithdrawalHistoryAsync(GetWithdrawalsRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/SharedApis/V2/Withdrawals/Withdraw/IWithdraw.cs b/CryptoExchange.Net/SharedApis/V2/Withdrawals/Withdraw/IWithdraw.cs index 745c43e1..9b65dc71 100644 --- a/CryptoExchange.Net/SharedApis/V2/Withdrawals/Withdraw/IWithdraw.cs +++ b/CryptoExchange.Net/SharedApis/V2/Withdrawals/Withdraw/IWithdraw.cs @@ -25,7 +25,7 @@ namespace CryptoExchange.Net.SharedApis /// Request info /// Cancellation token /// - Task> WithdrawAsync(WithdrawRequest request, CancellationToken ct = default); + Task> WithdrawAsync(WithdrawRequest request, CancellationToken ct = default); } /// diff --git a/CryptoExchange.Net/Testing/TestHelpers.cs b/CryptoExchange.Net/Testing/TestHelpers.cs index 08ba7052..2f3f4e18 100644 --- a/CryptoExchange.Net/Testing/TestHelpers.cs +++ b/CryptoExchange.Net/Testing/TestHelpers.cs @@ -174,7 +174,9 @@ namespace CryptoExchange.Net.Testing foreach (var implementation in implementations) { int methods = 0; - foreach (var method in implementation.GetMethods().Where(m => implementationTypes.IsAssignableFrom(m.ReturnType))) + foreach (var method in implementation.GetMethods() + .Where(m => m.DeclaringType?.Assembly == assembly) + .Where(m => implementationTypes.IsAssignableFrom(m.ReturnType))) { var interfaceMethod = clientInterface.GetMethod(method.Name, method.GetParameters().Select(p => p.ParameterType).ToArray())