Skip to content

Commit

Permalink
Fixed incorrect response type V5Api.Trading.SetDisconnectCancelAllAsy…
Browse files Browse the repository at this point in the history
…nc endpoint
  • Loading branch information
JKorf committed Mar 11, 2024
1 parent 5c032ec commit b506c61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ByBit.Net/Clients/V5/BybitRestClientApiTrading.cs
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ public async Task<WebCallResult<BybitBorrowQuota>> GetBorrowQuotaAsync(
#region Set Disconnect Cancel All

/// <inheritdoc />
public async Task<WebCallResult<BybitBorrowQuota>> SetDisconnectCancelAllAsync(
public async Task<WebCallResult> SetDisconnectCancelAllAsync(
int windowSeconds,
CancellationToken ct = default)
{
Expand All @@ -483,7 +483,7 @@ public async Task<WebCallResult<BybitBorrowQuota>> SetDisconnectCancelAllAsync(
{ "timeWindow", windowSeconds },
};

return await _baseClient.SendRequestAsync<BybitBorrowQuota>(_baseClient.GetUrl("v5/order/disconnected-cancel-all"), HttpMethod.Post, ct, parameters, true).ConfigureAwait(false);
return await _baseClient.SendRequestAsync(_baseClient.GetUrl("v5/order/disconnected-cancel-all"), HttpMethod.Post, ct, parameters, true).ConfigureAwait(false);
}

#endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ Task<WebCallResult<BybitOrderId>> PlaceOrderAsync(
/// <param name="windowSeconds">Time after which to cancel all orders</param>
/// <param name="ct">Cancellation token</param>
/// <returns></returns>
Task<WebCallResult<BybitBorrowQuota>> SetDisconnectCancelAllAsync(int windowSeconds, CancellationToken ct = default);
Task<WebCallResult> SetDisconnectCancelAllAsync(int windowSeconds, CancellationToken ct = default);

/// <summary>
/// Set trading stop parameters
Expand Down

0 comments on commit b506c61

Please sign in to comment.