From 661bc55ce1ef632eb4b44bebc390004ef71a7a09 Mon Sep 17 00:00:00 2001 From: Tim142857 Date: Thu, 16 Nov 2023 10:47:20 +0100 Subject: [PATCH 1/2] update SpotKlineInterval for V2 --- src/types/request/v2/spot.ts | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/src/types/request/v2/spot.ts b/src/types/request/v2/spot.ts index 6fdeaaa..74a8cae 100644 --- a/src/types/request/v2/spot.ts +++ b/src/types/request/v2/spot.ts @@ -1,8 +1,26 @@ -import { SpotKlineInterval } from '../v1/spotV1'; +type SpotKlineIntervalV2 = + | '1min' + | '5min' + | '15min' + | '30min' + | '1h' + | '4h' + | '6h' + | '12h' + | '1day' + | '3day' + | '1week' + | '1M' + | '6Hutc' + | '12Hutc' + | '1Dutc' + | '3Dutc' + | '1Wutc' + | '1Mutc'; export interface SpotCandlesRequestV2 { symbol: string; - granularity: SpotKlineInterval; + granularity: SpotKlineIntervalV2; startTime?: string; endTime?: string; limit?: string; From 79d25c751162c5eb7920062cbf9155be9fc86b2a Mon Sep 17 00:00:00 2001 From: Tim142857 Date: Thu, 16 Nov 2023 11:18:57 +0100 Subject: [PATCH 2/2] update version numero --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ee04dfc..9c0a0b5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bitget-api", - "version": "2.0.0", + "version": "2.0.1", "description": "Node.js & JavaScript SDK for Bitget REST APIs & WebSockets, with TypeScript & end-to-end tests.", "main": "lib/index.js", "types": "lib/index.d.ts",