diff --git a/README.md b/README.md index 74550c8..6cceccb 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # bybit-api -[![npm version](https://img.shields.io/npm/v/bybit-api/latest)][1] [![npm size](https://img.shields.io/bundlephobia/min/bybit-api/latest)][1] [![npm downloads](https://img.shields.io/npm/dt/bybit-api)][1] +[![npm version](https://img.shields.io/npm/v/bybit-api)][1] [![npm size](https://img.shields.io/bundlephobia/min/bybit-api/latest)][1] [![npm downloads](https://img.shields.io/npm/dt/bybit-api)][1] [![last commit](https://img.shields.io/github/last-commit/tiagosiebler/bybit-api)][1] [![CodeFactor](https://www.codefactor.io/repository/github/tiagosiebler/bybit-api/badge)](https://www.codefactor.io/repository/github/tiagosiebler/bybit-api) diff --git a/lib/util/requestUtils.js b/lib/util/requestUtils.js index 5dafab5..1e7f348 100644 --- a/lib/util/requestUtils.js +++ b/lib/util/requestUtils.js @@ -6,7 +6,7 @@ module.exports = { .update(message) .digest('hex'); }, - serializeParams(params, strict_validation) { + serializeParams(params = {}, strict_validation = false) { return Object.keys(params) .sort() .map(key => {