This repository was archived by the owner on Dec 4, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,9 @@ If you only use the [public endpoints](#public-endpoints) you can ommit key and
101
101
#### async getOrderBook(params)
102
102
[ See bybit documentation] ( https://bybit-exchange.github.io/docs/inverse/#t-orderbook )
103
103
104
+ #### async getKline(params)
105
+ [ See bybit documentation] ( https://bybit-exchange.github.io/docs/inverse/#t-querykline )
106
+
104
107
#### async getLatestInformation()
105
108
[ See bybit documentation] ( https://bybit-exchange.github.io/docs/inverse/#t-latestsymbolinfo )
106
109
Original file line number Diff line number Diff line change @@ -197,6 +197,15 @@ module.exports = class RestClient {
197
197
return await this . request . get ( '/v2/public/orderBook/L2' , params ) ;
198
198
}
199
199
200
+ async getKline ( params ) {
201
+ assert ( params , 'No params passed' ) ;
202
+ assert ( params . symbol , 'Parameter symbol is required' ) ;
203
+ assert ( params . interval , 'Parameter interval is required' ) ;
204
+ assert ( params . from , 'Parameter from is required' ) ;
205
+
206
+ return await this . request . get ( '/v2/public/kline/list' , params ) ;
207
+ }
208
+
200
209
async getLatestInformation ( ) {
201
210
return await this . request . get ( '/v2/public/tickers' ) ;
202
211
}
You can’t perform that action at this time.
0 commit comments