v1.1.7: add get public liquidations endpoint
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user