Skip to content

Commit

Permalink
Fixed typo in MexcAggregatedTrade and MexcKline models
Browse files Browse the repository at this point in the history
  • Loading branch information
JKorf committed Dec 5, 2024
1 parent 9de5b8e commit 480d118
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 83 deletions.
8 changes: 4 additions & 4 deletions Mexc.Net/Clients/SpotApi/MexcRestClientSpotApiExchangeData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public async Task<WebCallResult<IEnumerable<MexcTrade>>> GetRecentTradesAsync(st
#region Get Aggregated Trades List

/// <inheritdoc />
public async Task<WebCallResult<IEnumerable<MecxAggregatedTrade>>> GetAggregatedTradeHistoryAsync(string symbol, DateTime? startTime = null, DateTime? endTime = null, int? limit = null, CancellationToken ct = default)
public async Task<WebCallResult<IEnumerable<MexcAggregatedTrade>>> GetAggregatedTradeHistoryAsync(string symbol, DateTime? startTime = null, DateTime? endTime = null, int? limit = null, CancellationToken ct = default)
{
limit?.ValidateIntBetween(nameof(limit), 1, 1000);

Expand All @@ -128,15 +128,15 @@ public async Task<WebCallResult<IEnumerable<MecxAggregatedTrade>>> GetAggregated
parameters.AddOptionalMilliseconds("startTime", startTime);
parameters.AddOptionalMilliseconds("endTime", endTime);
parameters.AddOptional("limit", limit);
return await _baseClient.SendRequestInternal<IEnumerable<MecxAggregatedTrade>>("/api/v3/aggTrades", HttpMethod.Get, ct, parameters).ConfigureAwait(false);
return await _baseClient.SendRequestInternal<IEnumerable<MexcAggregatedTrade>>("/api/v3/aggTrades", HttpMethod.Get, ct, parameters).ConfigureAwait(false);
}

#endregion

#region Get Klines

/// <inheritdoc />
public async Task<WebCallResult<IEnumerable<MecxKline>>> GetKlinesAsync(string symbol, KlineInterval interval, DateTime? startTime = null, DateTime? endTime = null, int? limit = null, CancellationToken ct = default)
public async Task<WebCallResult<IEnumerable<MexcKline>>> GetKlinesAsync(string symbol, KlineInterval interval, DateTime? startTime = null, DateTime? endTime = null, int? limit = null, CancellationToken ct = default)
{
limit?.ValidateIntBetween(nameof(limit), 1, 1000);

Expand All @@ -148,7 +148,7 @@ public async Task<WebCallResult<IEnumerable<MecxKline>>> GetKlinesAsync(string s
parameters.AddOptionalMilliseconds("startTime", startTime);
parameters.AddOptionalMilliseconds("endTime", endTime);
parameters.AddOptional("limit", limit);
return await _baseClient.SendRequestInternal<IEnumerable<MecxKline>>("/api/v3/klines", HttpMethod.Get, ct, parameters).ConfigureAwait(false);
return await _baseClient.SendRequestInternal<IEnumerable<MexcKline>>("/api/v3/klines", HttpMethod.Get, ct, parameters).ConfigureAwait(false);
}

#endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public interface IMexcRestClientSpotApiExchangeData
/// <param name="limit">Number of rows, max 1000</param>
/// <param name="ct">Cancellation token</param>
/// <returns></returns>
Task<WebCallResult<IEnumerable<MecxAggregatedTrade>>> GetAggregatedTradeHistoryAsync(string symbol, DateTime? startTime = null, DateTime? endTime = null, int? limit = null, CancellationToken ct = default);
Task<WebCallResult<IEnumerable<MexcAggregatedTrade>>> GetAggregatedTradeHistoryAsync(string symbol, DateTime? startTime = null, DateTime? endTime = null, int? limit = null, CancellationToken ct = default);

/// <summary>
/// Get kline/candlestick data
Expand All @@ -89,7 +89,7 @@ public interface IMexcRestClientSpotApiExchangeData
/// <param name="limit">Number of rows, max 1000</param>
/// <param name="ct">Cancellation token</param>
/// <returns></returns>
Task<WebCallResult<IEnumerable<MecxKline>>> GetKlinesAsync(string symbol, KlineInterval interval, DateTime? startTime = null, DateTime? endTime = null, int? limit = null, CancellationToken ct = default);
Task<WebCallResult<IEnumerable<MexcKline>>> GetKlinesAsync(string symbol, KlineInterval interval, DateTime? startTime = null, DateTime? endTime = null, int? limit = null, CancellationToken ct = default);

/// <summary>
/// Get average price for a symbol
Expand Down
150 changes: 75 additions & 75 deletions Mexc.Net/Mexc.Net.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Mexc.Net.Objects.Models.Spot
/// <summary>
/// Aggregated trade info
/// </summary>
public record MecxAggregatedTrade
public record MexcAggregatedTrade
{
/// <summary>
/// Trade price
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Mexc.Net.Objects.Models.Spot
/// Kline/candlestick info
/// </summary>
[JsonConverter(typeof(ArrayConverter))]
public record MecxKline
public record MexcKline
{
/// <summary>
/// The time this candlestick opened
Expand Down

0 comments on commit 480d118

Please sign in to comment.