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);
|
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() {
|
async getServerTime() {
|
||||||
return await this.request.get('v2/public/time');
|
return await this.request.get('v2/public/time');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "bybit-api",
|
"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",
|
"description": "An unofficial node.js lowlevel wrapper for the Bybit Cryptocurrency Derivative exchange API",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user