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:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user