diff --git a/FTX.Net/Clients/TradeApi/FTXClientTradeApiTrading.cs b/FTX.Net/Clients/TradeApi/FTXClientTradeApiTrading.cs index 9af755f..b8b94c3 100644 --- a/FTX.Net/Clients/TradeApi/FTXClientTradeApiTrading.cs +++ b/FTX.Net/Clients/TradeApi/FTXClientTradeApiTrading.cs @@ -117,7 +117,7 @@ public async Task> ModifyTriggerOrderAsync(long o } /// - public async Task> ModifyOrderByClientOrderIdAsync(long clientOrderId, decimal? price = null, decimal? quantity = null, string? newClientOrderId = null, string? subaccountName = null, CancellationToken ct = default) + public async Task> ModifyOrderByClientOrderIdAsync(string clientOrderId, decimal? price = null, decimal? quantity = null, string? newClientOrderId = null, string? subaccountName = null, CancellationToken ct = default) { var parameters = new Dictionary(); parameters.AddOptionalParameter("price", price?.ToString(CultureInfo.InvariantCulture)); diff --git a/FTX.Net/FTX.Net.xml b/FTX.Net/FTX.Net.xml index 8ed2abf..6409bd8 100644 --- a/FTX.Net/FTX.Net.xml +++ b/FTX.Net/FTX.Net.xml @@ -467,7 +467,7 @@ - + @@ -2124,7 +2124,7 @@ Cancellation token - + Modify an order. Will internally cancel the original order and place a new order with the new price/quantity. The new order will have a new order id. Note: there's a chance that the order meant to be canceled gets filled and its replacement still gets placed. diff --git a/FTX.Net/Interfaces/Clients/TradeApi/IFTXClientTradeApiTrading.cs b/FTX.Net/Interfaces/Clients/TradeApi/IFTXClientTradeApiTrading.cs index 30edf1d..36d08cc 100644 --- a/FTX.Net/Interfaces/Clients/TradeApi/IFTXClientTradeApiTrading.cs +++ b/FTX.Net/Interfaces/Clients/TradeApi/IFTXClientTradeApiTrading.cs @@ -101,7 +101,7 @@ Task> PlaceTriggerOrderAsync( /// Subaccount name to execute this request for /// Cancellation token /// - Task> ModifyOrderByClientOrderIdAsync(long clientOrderId, decimal? price = null, decimal? quantity = null, string? newClientOrderId = null, string? subaccountName = null, CancellationToken ct = default); + Task> ModifyOrderByClientOrderIdAsync(string clientOrderId, decimal? price = null, decimal? quantity = null, string? newClientOrderId = null, string? subaccountName = null, CancellationToken ct = default); /// /// Get the status of an order