fetch
, and bundling (e.g. with esbuild, webpack, or Vite)package.json
should look like:
tsconfig.json
:
src/index.html
:
src/main.ts
:
src/main.ts
:
package.json
:
main.js
.src/index.html
at http://127.0.0.1:8080.boolean
value to fetchCandles()
, such as const candles = await fetchCandles(true);
from
/to
(Unix seconds) to fetchCandles()
url.searchParams.set('carry','true')
fills gaps with synthetic candlescreateChart
options