v1.1.7: add get public liquidations endpoint

This commit is contained in:
tiagosiebler
2020-08-12 00:27:52 +01:00
parent 7d9ce80b64
commit e28a41bf07
2 changed files with 8 additions and 1 deletions

View File

@@ -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');
}

View File

@@ -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": {