Merge pull request #25 from Tim142857/master
update SpotKlineInterval for V2
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "bitget-api",
|
"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.",
|
"description": "Node.js & JavaScript SDK for Bitget REST APIs & WebSockets, with TypeScript & end-to-end tests.",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"types": "lib/index.d.ts",
|
"types": "lib/index.d.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 {
|
export interface SpotCandlesRequestV2 {
|
||||||
symbol: string;
|
symbol: string;
|
||||||
granularity: SpotKlineInterval;
|
granularity: SpotKlineIntervalV2;
|
||||||
startTime?: string;
|
startTime?: string;
|
||||||
endTime?: string;
|
endTime?: string;
|
||||||
limit?: string;
|
limit?: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user