fix(v3.11.0): ensure private GET requests use serialised/encoded params appended to URL. Update slippage tolerance type to optional.

This commit is contained in:
tiagosiebler
2025-02-28 11:23:57 +00:00
parent dd0b7ad535
commit df047a0cdb
5 changed files with 38 additions and 7 deletions

View File

@@ -67,6 +67,7 @@ interface SignedRequest<T> {
interface UnsignedRequest<T> {
originalParams: T;
paramsWithSign: T;
serializedParams: string;
sign?: string;
timestamp?: number;
recvWindow?: number;
@@ -285,7 +286,9 @@ export default abstract class BaseRestClient {
return {
...options,
headers,
params: signResult.originalParams,
url: signResult.serializedParams
? options.url + '?' + signResult.serializedParams
: options.url,
};
}