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:
@@ -18,8 +18,8 @@ export interface OrderParamsV5 {
|
||||
orderType: OrderTypeV5;
|
||||
qty: string;
|
||||
marketUnit?: 'baseCoin' | 'quoteCoin';
|
||||
slippageToleranceType: string;
|
||||
slippageTolerance: string;
|
||||
slippageToleranceType?: string;
|
||||
slippageTolerance?: string;
|
||||
price?: string;
|
||||
triggerDirection?: 1 | 2;
|
||||
orderFilter?: OrderFilterV5;
|
||||
|
||||
@@ -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