From e28a41bf074f83d85815c2c27b7da41bd1f0350b Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Wed, 12 Aug 2020 00:27:52 +0100 Subject: [PATCH] v1.1.7: add get public liquidations endpoint --- lib/rest-client.js | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/rest-client.js b/lib/rest-client.js index 96839bc..b634561 100644 --- a/lib/rest-client.js +++ b/lib/rest-client.js @@ -217,6 +217,13 @@ module.exports = class RestClient { return await this.request.get('v2/public/trading-records', params); } + async getPublicLiquidatedOrders(params) { + assert(params, 'No params passed'); + assert(params.symbol, 'Parameter symbol is required'); + + return await this.request.get('v2/public/liq-records', params); + } + async getServerTime() { return await this.request.get('v2/public/time'); } diff --git a/package.json b/package.json index f52a161..f2f9a79 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bybit-api", - "version": "1.1.6", + "version": "1.1.7", "description": "An unofficial node.js lowlevel wrapper for the Bybit Cryptocurrency Derivative exchange API", "main": "index.js", "scripts": {