From 9f2421ee2a6bb8a86da780cdcc75d5917337301e Mon Sep 17 00:00:00 2001 From: TatLead Date: Wed, 6 Oct 2021 05:05:34 +0800 Subject: [PATCH 1/2] Fix spot-client.ts getCandles function --- src/spot-client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spot-client.ts b/src/spot-client.ts index 2c67f0a..4c8c8a5 100644 --- a/src/spot-client.ts +++ b/src/spot-client.ts @@ -73,7 +73,7 @@ export class SpotClient extends BaseRestClient { } 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, interval, limit, From 4e91d874241d130ef1349553add440f6561442ae Mon Sep 17 00:00:00 2001 From: TatLead Date: Wed, 6 Oct 2021 05:41:12 +0800 Subject: [PATCH 2/2] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d9955ab..5a6f4f8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "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.", "main": "lib/index.js", "types": "lib/index.d.ts",