Co-authored-by: tiagosiebler <ts@github.com>
This commit is contained in:
@@ -197,6 +197,15 @@ module.exports = class RestClient {
|
||||
return await this.request.get('/v2/public/orderBook/L2', params);
|
||||
}
|
||||
|
||||
async getKline(params) {
|
||||
assert(params, 'No params passed');
|
||||
assert(params.symbol, 'Parameter symbol is required');
|
||||
assert(params.interval, 'Parameter interval is required');
|
||||
assert(params.from, 'Parameter from is required');
|
||||
|
||||
return await this.request.get('/v2/public/kline/list', params);
|
||||
}
|
||||
|
||||
async getLatestInformation() {
|
||||
return await this.request.get('/v2/public/tickers');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user