v3.3.1: fix(#199) wrong endpoint for contract.getOpenInterestLimitInfo
This commit is contained in:
@@ -216,9 +216,11 @@ export default abstract class BaseRestClient {
|
||||
options.headers['X-BAPI-RECV-WINDOW'] = signResult.recvWindow;
|
||||
|
||||
if (method === 'GET') {
|
||||
// const serialisedParams = signResult.serializedParams;
|
||||
return {
|
||||
...options,
|
||||
params: signResult.originalParams,
|
||||
// url: url + (serialisedParams ? '?' + serialisedParams : ''),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -359,6 +361,7 @@ export default abstract class BaseRestClient {
|
||||
|
||||
const paramsStr = timestamp + key + recvWindow + signRequestParams;
|
||||
res.sign = await signMessage(paramsStr, this.secret);
|
||||
res.serializedParams = signRequestParams;
|
||||
|
||||
// console.log('sign req: ', paramsStr);
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user