Merge pull request #20 from tiagosiebler/feat/requestOpts
feat: readme fix + serialize fn defaults
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# bybit-api
|
# bybit-api
|
||||||
[][1] [][1] [][1]
|
[][1] [][1] [][1]
|
||||||
[][1]
|
[][1]
|
||||||
[](https://www.codefactor.io/repository/github/tiagosiebler/bybit-api)
|
[](https://www.codefactor.io/repository/github/tiagosiebler/bybit-api)
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ module.exports = {
|
|||||||
.update(message)
|
.update(message)
|
||||||
.digest('hex');
|
.digest('hex');
|
||||||
},
|
},
|
||||||
serializeParams(params, strict_validation) {
|
serializeParams(params = {}, strict_validation = false) {
|
||||||
return Object.keys(params)
|
return Object.keys(params)
|
||||||
.sort()
|
.sort()
|
||||||
.map(key => {
|
.map(key => {
|
||||||
|
|||||||
Reference in New Issue
Block a user