Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MaticConradi committed Apr 23, 2024
1 parent ebf338e commit 2b414aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ccxt.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HttpsProxyAgent } from "https-proxy-agent"
import ccxt, { binance, binanceusdm, binancecoinm, Exchange, NetworkError } from "ccxt"
import ccxt, { binance, binanceusdm, binancecoinm, Exchange, NetworkError, OHLCV } from "ccxt"
import { BigQuery } from "@google-cloud/bigquery"

import AbstractProvider, { CandleResponse } from "./abstract.js"
Expand Down Expand Up @@ -92,7 +92,7 @@ export default class CCXT extends AbstractProvider {
}

let payload: CandleResponse = {
candles: rawData.map((e: number[]) => [e[0] / 1000, e[1], e[2], e[3], e[4]]),
candles: rawData.map((e: OHLCV) => [e[0]! / 1000, e[1]!, e[2]!, e[3]!, e[4]!]),
title: request.ticker.name,
sourceText: "Data from " + request.ticker.exchange.name,
platform: "CCXT",
Expand Down

0 comments on commit 2b414aa

Please sign in to comment.