From a835c793c808079f0e6a0ea27d9eaed737968b09 Mon Sep 17 00:00:00 2001 From: JJ-Cro Date: Tue, 17 Dec 2024 17:25:57 +0100 Subject: [PATCH] chore(): updated candle types --- src/types/response/v2/futures.ts | 19 ++++++++++--------- src/types/response/v2/spot.ts | 20 ++++++++++---------- 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/src/types/response/v2/futures.ts b/src/types/response/v2/futures.ts index 8bb7592..49cba3c 100644 --- a/src/types/response/v2/futures.ts +++ b/src/types/response/v2/futures.ts @@ -85,15 +85,16 @@ export interface FuturesFillV2 { symbol: string; } -export interface FuturesCandlestickV2 { - [0]: string; // timestamp - [1]: string; // open - [2]: string; // high - [3]: string; // low - [4]: string; // close - [5]: string; // baseVolume - [6]: string; // quoteVolume -} +export type FuturesCandlestickV2 = [ + string, + string, + string, + string, + string, + string, + string, + string, +]; export interface FuturesOpenInterestV2 { symbol: string; diff --git a/src/types/response/v2/spot.ts b/src/types/response/v2/spot.ts index df9c819..87495be 100644 --- a/src/types/response/v2/spot.ts +++ b/src/types/response/v2/spot.ts @@ -92,16 +92,16 @@ export interface SpotOrderBookDepthV2 { ts: string; } -export interface SpotCandlestickV2 { - [0]: string; // timestamp - [1]: string; // open - [2]: string; // high - [3]: string; // low - [4]: string; // close - [5]: string; // baseVolume - [6]: string; // usdtVolume - [7]: string; // quoteVolume -} +export type SpotCandlestickV2 = [ + string, + string, + string, + string, + string, + string, + string, + string, +]; export interface SpotTradeV2 { symbol: string;