openalgo-charts 1.8.7 → 1.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -6
- package/dist/index.d.ts +1 -1
- package/dist/openalgo-charts.mjs +1 -1
- package/dist/openalgo-charts.standalone.js +1 -1
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -54,20 +54,39 @@ const chart = createChart(document.getElementById('chart'));
|
|
|
54
54
|
chart.addSeries('candlestick').setData(generateBars(1700000000, 200, 3600));
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
+
## No build step
|
|
58
|
+
|
|
59
|
+
Every release is on unpkg and jsDelivr the moment it is published, because both sit
|
|
60
|
+
in front of npm rather than being places you upload to. A chart is one HTML file:
|
|
61
|
+
|
|
62
|
+
```html
|
|
63
|
+
<div id="chart" style="width:100vw;height:100vh"></div>
|
|
64
|
+
<script type="module">
|
|
65
|
+
import { createChart } from 'https://unpkg.com/openalgo-charts@1.8.8/dist/openalgo-charts.mjs';
|
|
66
|
+
const chart = createChart(document.getElementById('chart'), { timezone: 'Asia/Kolkata' });
|
|
67
|
+
chart.addSeries('candlestick').setData(bars);
|
|
68
|
+
</script>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Each tier is its own file, so `openalgo-charts.indicators.mjs` next to it registers
|
|
72
|
+
all 102 built-ins. Pin the version in anything you leave running. There is no
|
|
73
|
+
stylesheet to load: the engine ships no DOM. See
|
|
74
|
+
[Use from a CDN](https://marketcalls.github.io/openalgo-charts/docs/cdn).
|
|
75
|
+
|
|
57
76
|
## Tiers
|
|
58
77
|
|
|
59
78
|
Import only what you use. Each tier is a separate bundle that registers into the base engine's registries, so the cost of a feature you don't load is zero.
|
|
60
79
|
|
|
61
80
|
| Import | Contents | Brotli |
|
|
62
81
|
|---|---|---|
|
|
63
|
-
| `openalgo-charts` | Engine, 13 chart types, panes & scales, primitives, registries, chart state, chart linking, bar cache, interval registry, trading overlay, OpenAlgo feeds | 60.
|
|
82
|
+
| `openalgo-charts` | Engine, 13 chart types, panes & scales, primitives, registries, chart state, chart linking, bar cache, interval registry, trading overlay, OpenAlgo feeds | 60.6 KB |
|
|
64
83
|
| `openalgo-charts/indicators` | 102 built-in indicators, the `registerIndicator` contract for your own, and the Tier-2 (external-data) contract | 27.3 KB |
|
|
65
84
|
| `openalgo-charts/draw` | 43 drawing tools + a headless drawing controller and clipboard | 13.1 KB |
|
|
66
85
|
| `openalgo-charts/transform` | Heikin Ashi, Renko, Range bars, Line Break, Point & Figure, Kagi | 2.7 KB |
|
|
67
86
|
| `openalgo-charts/profile` | Volume Profile, Market Profile (TPO), Footprint, order flow | 10.7 KB |
|
|
68
87
|
| `openalgo-charts/trade` | Order / position / bracket tools + DOM ladder | 7.6 KB |
|
|
69
88
|
|
|
70
|
-
Everything together is **121.
|
|
89
|
+
Everything together is **121.90 KB Brotli**. Figures are the measured `size-limit` output. The trade tier is listed as its delta over the base, so loading base + trade costs 68.18 KB.
|
|
71
90
|
|
|
72
91
|
## What's built
|
|
73
92
|
|
|
@@ -208,13 +227,13 @@ Enforced in CI by [`size-limit`](./.size-limit.json). Nothing is excluded, becau
|
|
|
208
227
|
|
|
209
228
|
| Bundle | Limit | Actual |
|
|
210
229
|
|---|---|---|
|
|
211
|
-
| Base engine | 62 KB | 60.
|
|
212
|
-
| Base + trade | 70 KB | 68.
|
|
230
|
+
| Base engine | 62 KB | 60.57 KB |
|
|
231
|
+
| Base + trade | 70 KB | 68.18 KB |
|
|
213
232
|
| Indicators tier | 30 KB | 27.27 KB |
|
|
214
233
|
| Draw tier | 14 KB | 13.13 KB |
|
|
215
234
|
| Transform tier | 5 KB | 2.66 KB |
|
|
216
235
|
| Profile tier | 11 KB | 10.66 KB |
|
|
217
|
-
| **Everything** | **124 KB** | **121.
|
|
236
|
+
| **Everything** | **124 KB** | **121.90 KB** |
|
|
218
237
|
|
|
219
238
|
## Documentation
|
|
220
239
|
|
|
@@ -271,7 +290,7 @@ npm run verify # typecheck + test + build + size
|
|
|
271
290
|
|
|
272
291
|
## Status & limitations
|
|
273
292
|
|
|
274
|
-
Version **1.8.
|
|
293
|
+
Version **1.8.8**. All engine build phases are implemented with 2466 unit tests across 137 files.
|
|
275
294
|
|
|
276
295
|
Known gaps, stated plainly:
|
|
277
296
|
|
package/dist/index.d.ts
CHANGED