Merge pull request #115 from BattlefieldDuck/master

Fix spot-client.ts getCandles function
This commit is contained in:
Tiago
2021-10-05 22:42:20 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "bybit-api", "name": "bybit-api",
"version": "2.1.0", "version": "2.1.1",
"description": "Node.js connector for Bybit's REST APIs and WebSockets, with TypeScript & integration tests.", "description": "Node.js connector for Bybit's REST APIs and WebSockets, with TypeScript & integration tests.",
"main": "lib/index.js", "main": "lib/index.js",
"types": "lib/index.d.ts", "types": "lib/index.d.ts",

View File

@@ -73,7 +73,7 @@ export class SpotClient extends BaseRestClient {
} }
getCandles(symbol: string, interval: KlineInterval, limit?: number, startTime?: number, endTime?: number) { getCandles(symbol: string, interval: KlineInterval, limit?: number, startTime?: number, endTime?: number) {
return this.get('/spot/v1/trades', { return this.get('/spot/quote/v1/kline', {
symbol, symbol,
interval, interval,
limit, limit,