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", 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;