Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JKorf committed Apr 17, 2024
1 parent 949bd0c commit 99e211c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public async Task<WebCallResult<KucoinDepositAddress>> CreateDepositAddressAsync
asset.ValidateNotNull(nameof(asset));
var parameters = new ParameterCollection { { "currency", asset } };
parameters.AddOptionalParameter("chain", network);
var request = _definitions.GetOrCreate(HttpMethod.Post, $"api/v2/deposit-addresses", KucoinExchange.RateLimiter.ManagementRest, 20, true);
var request = _definitions.GetOrCreate(HttpMethod.Post, $"api/v1/deposit-addresses", KucoinExchange.RateLimiter.ManagementRest, 20, true);
return await _baseClient.SendAsync<KucoinDepositAddress>(request, parameters, ct).ConfigureAwait(false);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,15 @@ public async Task<WebCallResult<IEnumerable<KucoinKline>>> GetKlinesAsync(string
/// <inheritdoc />
public async Task<WebCallResult<IEnumerable<KucoinAssetDetails>>> GetAssetsAsync(CancellationToken ct = default)
{
var request = _definitions.GetOrCreate(HttpMethod.Get, $"api/v1/currencies", KucoinExchange.RateLimiter.PublicRest, 3);
var request = _definitions.GetOrCreate(HttpMethod.Get, $"api/v3/currencies", KucoinExchange.RateLimiter.PublicRest, 3);
return await _baseClient.SendAsync<IEnumerable<KucoinAssetDetails>>(request, null, ct).ConfigureAwait(false);
}

/// <inheritdoc />
public async Task<WebCallResult<KucoinAssetDetails>> GetAssetAsync(string asset, CancellationToken ct = default)
{
asset.ValidateNotNull(nameof(asset));
var request = _definitions.GetOrCreate(HttpMethod.Get, $"api/v1/currencies/{asset}", KucoinExchange.RateLimiter.PublicRest, 3);
var request = _definitions.GetOrCreate(HttpMethod.Get, $"api/v3/currencies/{asset}", KucoinExchange.RateLimiter.PublicRest, 3);
return await _baseClient.SendAsync<KucoinAssetDetails>(request, null, ct).ConfigureAwait(false);
}

Expand Down

0 comments on commit 99e211c

Please sign in to comment.