Skip to content

Commit

Permalink
forgotten parameters #issue-116 (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
UncleJey authored Sep 18, 2024
1 parent 7453bac commit 74b341a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions HTX.Net/Clients/SpotApi/HTXRestClientSpotApiAccount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public async Task<WebCallResult<HTXTransactionResult>> InternalTransferAsync(lon
parameters.AddEnum("to-account-type", toAccountType);

var request = _definitions.GetOrCreate(HttpMethod.Post, $"v1/account/transfer", HTXExchange.RateLimiter.EndpointLimit, 1, true);
return await _baseClient.SendBasicAsync<HTXTransactionResult>(request, null, ct).ConfigureAwait(false);
return await _baseClient.SendBasicAsync<HTXTransactionResult>(request, parameters, ct).ConfigureAwait(false);
}

#endregion
Expand All @@ -127,7 +127,7 @@ public async Task<WebCallResult<IEnumerable<HTXAccountHistory>>> GetAccountHisto

var request = _definitions.GetOrCreate(HttpMethod.Get, $"v1/account/history", HTXExchange.RateLimiter.EndpointLimit, 1, true,
new SingleLimitGuard(5, TimeSpan.FromSeconds(2), RateLimitWindowType.Sliding, keySelector: SingleLimitGuard.PerApiKey));
return await _baseClient.SendBasicAsync<IEnumerable<HTXAccountHistory>>(request, null, ct).ConfigureAwait(false);
return await _baseClient.SendBasicAsync<IEnumerable<HTXAccountHistory>>(request, parameters, ct).ConfigureAwait(false);
}

#endregion
Expand Down
2 changes: 1 addition & 1 deletion HTX.Net/Clients/SpotApi/HTXRestClientSpotApiSubAccount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public async Task<WebCallResult<long>> TransferWithSubAccountAsync(long subAccou

var request = _definitions.GetOrCreate(HttpMethod.Post, $"v1/subuser/transfer", HTXExchange.RateLimiter.EndpointLimit, 1, true,
new SingleLimitGuard(2, TimeSpan.FromSeconds(2), RateLimitWindowType.Sliding, keySelector: SingleLimitGuard.PerApiKey));
return await _baseClient.SendBasicAsync<long>(request, null, ct).ConfigureAwait(false);
return await _baseClient.SendBasicAsync<long>(request, parameters, ct).ConfigureAwait(false);
}

#endregion
Expand Down

0 comments on commit 74b341a

Please sign in to comment.