From 127156e16689fc002e0e701b657fbe0bb514b0a5 Mon Sep 17 00:00:00 2001 From: Andrii Fomin Date: Tue, 26 Dec 2023 13:27:39 +0200 Subject: [PATCH] Change orderId type (#1325) * Update BinanceSocketClientSpotApiTrading.cs Change type of orderId parameter in GetOrderAsync and CancelOrderAsync * Update Binance.Net.xml * Update IBinanceSocketClientSpotApiTrading.cs --- Binance.Net/Binance.Net.xml | 4 ++-- .../Clients/SpotApi/BinanceSocketClientSpotApiTrading.cs | 4 ++-- .../Clients/SpotApi/IBinanceSocketClientSpotApiTrading.cs | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Binance.Net/Binance.Net.xml b/Binance.Net/Binance.Net.xml index 83d70d85c..009de0b59 100644 --- a/Binance.Net/Binance.Net.xml +++ b/Binance.Net/Binance.Net.xml @@ -1832,7 +1832,7 @@ - + @@ -10373,7 +10373,7 @@ Filter by symbols - + Get order by either orderId or clientOrderId diff --git a/Binance.Net/Clients/SpotApi/BinanceSocketClientSpotApiTrading.cs b/Binance.Net/Clients/SpotApi/BinanceSocketClientSpotApiTrading.cs index e97036088..f1eaf58bb 100644 --- a/Binance.Net/Clients/SpotApi/BinanceSocketClientSpotApiTrading.cs +++ b/Binance.Net/Clients/SpotApi/BinanceSocketClientSpotApiTrading.cs @@ -123,7 +123,7 @@ public async Task>> PlaceTestOrde #region Get Order /// - public async Task>> GetOrderAsync(string symbol, int? orderId = null, string? clientOrderId = null) + public async Task>> GetOrderAsync(string symbol, long? orderId = null, string? clientOrderId = null) { var parameters = new Dictionary(); parameters.AddParameter("symbol", symbol); @@ -137,7 +137,7 @@ public async Task>> GetOrderAsync(strin #region Cancel Order /// - public async Task>> CancelOrderAsync(string symbol, int? orderId = null, string? clientOrderId = null, string? newClientOrderId = null) + public async Task>> CancelOrderAsync(string symbol, long? orderId = null, string? clientOrderId = null, string? newClientOrderId = null) { var parameters = new Dictionary(); parameters.AddParameter("symbol", symbol); diff --git a/Binance.Net/Interfaces/Clients/SpotApi/IBinanceSocketClientSpotApiTrading.cs b/Binance.Net/Interfaces/Clients/SpotApi/IBinanceSocketClientSpotApiTrading.cs index 52050b374..67e05ceee 100644 --- a/Binance.Net/Interfaces/Clients/SpotApi/IBinanceSocketClientSpotApiTrading.cs +++ b/Binance.Net/Interfaces/Clients/SpotApi/IBinanceSocketClientSpotApiTrading.cs @@ -39,7 +39,7 @@ public interface IBinanceSocketClientSpotApiTrading /// Client order id /// New client order id for the order /// - Task>> CancelOrderAsync(string symbol, int? orderId = null, string? clientOrderId = null, string? newClientOrderId = null); + Task>> CancelOrderAsync(string symbol, long? orderId = null, string? clientOrderId = null, string? newClientOrderId = null); /// /// Get an oco order by either orderId or clientOrderId /// @@ -79,7 +79,7 @@ public interface IBinanceSocketClientSpotApiTrading /// Order id /// Client order id /// - Task>> GetOrderAsync(string symbol, int? orderId = null, string? clientOrderId = null); + Task>> GetOrderAsync(string symbol, long? orderId = null, string? clientOrderId = null); /// /// Get order history /// @@ -209,4 +209,4 @@ public interface IBinanceSocketClientSpotApiTrading /// Task>> ReplaceOrderAsync(string symbol, OrderSide side, SpotOrderType type, CancelReplaceMode cancelReplaceMode, long? cancelOrderId = null, string? cancelClientOrderId = null, string? newCancelClientOrderId = null, string? newClientOrderId = null, decimal? quantity = null, decimal? quoteQuantity = null, decimal? price = null, TimeInForce? timeInForce = null, decimal? stopPrice = null, decimal? icebergQty = null, OrderResponseType? orderResponseType = null, int? trailingDelta = null, int? strategyId = null, int? strategyType = null); } -} \ No newline at end of file +}