Skip to content

Commit

Permalink
Correction missing parameter in method BinanceRestClientGeneralApiSav…
Browse files Browse the repository at this point in the history
…ings
  • Loading branch information
bornbygoogle committed Dec 29, 2023
1 parent 5d373a9 commit 4b7eb3e
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 7 deletions.
59 changes: 57 additions & 2 deletions Binance.Net/Binance.Net.xml
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@
<member name="M:Binance.Net.Clients.GeneralApi.BinanceRestClientGeneralApiSavings.RedeemFlexibleProductAsync(System.String,System.Decimal,Binance.Net.Enums.RedeemType,System.Nullable{System.Int64},System.Threading.CancellationToken)">
<inheritdoc />
</member>
<member name="M:Binance.Net.Clients.GeneralApi.BinanceRestClientGeneralApiSavings.GetFlexibleProductPositionAsync(System.String,System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int64},System.Threading.CancellationToken)">
<member name="M:Binance.Net.Clients.GeneralApi.BinanceRestClientGeneralApiSavings.GetFlexibleProductPositionAsync(System.String,System.String,System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int64},System.Threading.CancellationToken)">
<inheritdoc />
</member>
<member name="M:Binance.Net.Clients.GeneralApi.BinanceRestClientGeneralApiSavings.GetFixedAndCustomizedFixedProjectListAsync(Binance.Net.Enums.ProjectType,System.String,System.Nullable{Binance.Net.Enums.ProductStatus},System.Nullable{System.Boolean},System.String,System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int64},System.Threading.CancellationToken)">
Expand Down Expand Up @@ -6938,7 +6938,7 @@
<param name="ct">Cancellation token</param>
<returns></returns>
</member>
<member name="M:Binance.Net.Interfaces.Clients.GeneralApi.IBinanceRestClientGeneralApiSavings.GetFlexibleProductPositionAsync(System.String,System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int64},System.Threading.CancellationToken)">
<member name="M:Binance.Net.Interfaces.Clients.GeneralApi.IBinanceRestClientGeneralApiSavings.GetFlexibleProductPositionAsync(System.String,System.String,System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int64},System.Threading.CancellationToken)">
<summary>
Get flexible product position
<para><a href="https://binance-docs.github.io/apidocs/spot/en/#get-flexible-product-position-user_data" /></para>
Expand Down Expand Up @@ -14191,6 +14191,61 @@
Status
</summary>
</member>
<member name="T:Binance.Net.Objects.Models.Spot.BinanceConvertTrade">
<summary>
Convert trade info
</summary>
</member>
<member name="P:Binance.Net.Objects.Models.Spot.BinanceConvertTrade.QuoteId">
<summary>
Quote id
</summary>
</member>
<member name="P:Binance.Net.Objects.Models.Spot.BinanceConvertTrade.OrderId">
<summary>
Order id
</summary>
</member>
<member name="P:Binance.Net.Objects.Models.Spot.BinanceConvertTrade.OrderStatus">
<summary>
Order status
</summary>
</member>
<member name="P:Binance.Net.Objects.Models.Spot.BinanceConvertTrade.FromAsset">
<summary>
From asset
</summary>
</member>
<member name="P:Binance.Net.Objects.Models.Spot.BinanceConvertTrade.FromQuantity">
<summary>
From quantity
</summary>
</member>
<member name="P:Binance.Net.Objects.Models.Spot.BinanceConvertTrade.ToAsset">
<summary>
To asset
</summary>
</member>
<member name="P:Binance.Net.Objects.Models.Spot.BinanceConvertTrade.ToQuantity">
<summary>
To quantity
</summary>
</member>
<member name="P:Binance.Net.Objects.Models.Spot.BinanceConvertTrade.Ratio">
<summary>
Price ratio
</summary>
</member>
<member name="P:Binance.Net.Objects.Models.Spot.BinanceConvertTrade.InverseRatio">
<summary>
Inverse price ratio
</summary>
</member>
<member name="P:Binance.Net.Objects.Models.Spot.BinanceConvertTrade.CreateTime">
<summary>
Creation time
</summary>
</member>
<member name="T:Binance.Net.Objects.Models.Spot.BinanceDepositAddress">
<summary>
Deposit address info
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,11 @@ public async Task<WebCallResult<object>> RedeemFlexibleProductAsync(string produ

#region Get Flexible Product Position
/// <inheritdoc />
public async Task<WebCallResult<IEnumerable<BinanceFlexibleProductPosition>>> GetFlexibleProductPositionAsync(string? asset = null, int? page = null, int? pageSize = null, long? receiveWindow = null, CancellationToken ct = default)
public async Task<WebCallResult<IEnumerable<BinanceFlexibleProductPosition>>> GetFlexibleProductPositionAsync(string? asset = null, string? productId = null, int? page = null, int? pageSize = null, long? receiveWindow = null, CancellationToken ct = default)
{
var parameters = new Dictionary<string, object>();
parameters.AddOptionalParameter("asset", asset);
parameters.AddOptionalParameter("productId", productId);
parameters.AddOptionalParameter("current", page?.ToString(CultureInfo.InvariantCulture));
parameters.AddOptionalParameter("size", pageSize?.ToString(CultureInfo.InvariantCulture));
parameters.AddOptionalParameter("recvWindow", receiveWindow?.ToString(CultureInfo.InvariantCulture) ?? _baseClient.ClientOptions.ReceiveWindow.TotalMilliseconds.ToString(CultureInfo.InvariantCulture));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1312,15 +1312,15 @@ public async Task<WebCallResult<BinanceConvertOrderStatus>> GetConvertOrderStatu
#region Get Convert Trade History

/// <inheritdoc />
public async Task<WebCallResult<BinanceListResult<BinanceConvertTrade>>> GetConvertTradeHistoryAsync(DateTime startTime, DateTime endTime, int? limit = null, long? receiveWindow = null, CancellationToken ct = default)
public async Task<WebCallResult<BinanceListResult<Objects.Models.Spot.Convert.BinanceConvertTrade>>> GetConvertTradeHistoryAsync(DateTime startTime, DateTime endTime, int? limit = null, long? receiveWindow = null, CancellationToken ct = default)
{
var parameters = new Dictionary<string, object>();
parameters.AddParameter("startTime", DateTimeConverter.ConvertToMilliseconds(startTime));
parameters.AddParameter("endTime", DateTimeConverter.ConvertToMilliseconds(endTime));
parameters.AddOptionalParameter("limit", limit);
parameters.AddOptionalParameter("recvWindow", receiveWindow?.ToString(CultureInfo.InvariantCulture) ?? _baseClient.ClientOptions.ReceiveWindow.TotalMilliseconds.ToString(CultureInfo.InvariantCulture));

return await _baseClient.SendRequestInternal<BinanceListResult<BinanceConvertTrade>>(_baseClient.GetUrl(convertTradeHistoryEndpoint, convertApi, convertVersion), HttpMethod.Get, ct, parameters, true, weight: 3000).ConfigureAwait(false);
return await _baseClient.SendRequestInternal<BinanceListResult<Objects.Models.Spot.Convert.BinanceConvertTrade>>(_baseClient.GetUrl(convertTradeHistoryEndpoint, convertApi, convertVersion), HttpMethod.Get, ct, parameters, true, weight: 3000).ConfigureAwait(false);
}

#endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public interface IBinanceRestClientGeneralApiSavings
/// <param name="receiveWindow">The receive window for which this request is active. When the request takes longer than this to complete the server will reject the request</param>
/// <param name="ct">Cancellation token</param>
/// <returns>Flexible product position(s)</returns>
Task<WebCallResult<IEnumerable<BinanceFlexibleProductPosition>>> GetFlexibleProductPositionAsync(string? asset = null, int? page = null, int? pageSize = null, long? receiveWindow = null, CancellationToken ct = default);
Task<WebCallResult<IEnumerable<BinanceFlexibleProductPosition>>> GetFlexibleProductPositionAsync(string? asset = null, string? productId = null, int? page = null, int? pageSize = null, long? receiveWindow = null, CancellationToken ct = default);

Check warning on line 83 in Binance.Net/Interfaces/Clients/GeneralApi/IBinanceRestClientGeneralApiSavings.cs

View workflow job for this annotation

GitHub Actions / build

Parameter 'productId' has no matching param tag in the XML comment for 'IBinanceRestClientGeneralApiSavings.GetFlexibleProductPositionAsync(string?, string?, int?, int?, long?, CancellationToken)' (but other parameters do)

Check warning on line 83 in Binance.Net/Interfaces/Clients/GeneralApi/IBinanceRestClientGeneralApiSavings.cs

View workflow job for this annotation

GitHub Actions / build

Parameter 'productId' has no matching param tag in the XML comment for 'IBinanceRestClientGeneralApiSavings.GetFlexibleProductPositionAsync(string?, string?, int?, int?, long?, CancellationToken)' (but other parameters do)

/// <summary>
/// Get fixed and customized fixed project list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ Task<WebCallResult<BinanceMarginOrderOcoList>> PlaceMarginOCOOrderAsync(string s
/// <param name="receiveWindow">The receive window for which this request is active. When the request takes longer than this to complete the server will reject the request</param>
/// <param name="ct">Cancellation token</param>
/// <returns></returns>
Task<WebCallResult<BinanceListResult<BinanceConvertTrade>>> GetConvertTradeHistoryAsync(DateTime startTime, DateTime endTime, int? limit = null, long? receiveWindow = null, CancellationToken ct = default);
Task<WebCallResult<BinanceListResult<Objects.Models.Spot.Convert.BinanceConvertTrade>>> GetConvertTradeHistoryAsync(DateTime startTime, DateTime endTime, int? limit = null, long? receiveWindow = null, CancellationToken ct = default);

/// <summary>
/// Convert between BUSD and stablecoins
Expand Down

0 comments on commit 4b7eb3e

Please sign in to comment.