Skip to content

Commit c4111e0

Browse files
committed
fix chart.js
1 parent 5903898 commit c4111e0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/js/chart.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ async function getIndicatorData(inficatorCode, tickerId, timeframe = '1w', perio
88
console.log('Getting indicator data...');
99

1010
(async () => {
11-
const promises = [getIndicatorData(macdIndicator, 'BTCUSDT', 'W', DATA_LENGTH)];
12-
const results = await Promise.all(promises);
13-
14-
const { marketData, plots: macdPlots } = results[1];
11+
const { marketData, plots: macdPlots } = await getIndicatorData(macdIndicator, 'BTCUSDT', 'W', DATA_LENGTH);
1512

1613
// Map Market Data to QFChart OHLCV format
1714
// marketData is array of objects: { openTime, open, high, low, close, volume }

0 commit comments

Comments
 (0)