Merge pull request #20 from tiagosiebler/feat/requestOpts

feat: readme fix + serialize fn defaults
This commit is contained in:
Tiago
2020-10-08 22:19:55 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -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 => {