openalgo-charts 2.5.6 → 2.5.7
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 +12 -12
- package/dist/index.d.ts +562 -1045
- package/dist/openalgo-charts.mjs +1 -1
- package/dist/openalgo-charts.mjs.map +1 -1
- package/dist/openalgo-charts.standalone.js +1 -1
- package/dist/openalgo-charts.standalone.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ with no runtime dependencies.
|
|
|
12
12
|
[](https://www.npmjs.com/package/openalgo-charts)
|
|
13
13
|
[](./LICENSE)
|
|
14
14
|
[](https://www.npmjs.com/package/openalgo-charts)
|
|
15
|
-
[](#develop)
|
|
16
16
|
[](#principles)
|
|
17
17
|
|
|
18
18
|
[**Documentation**](https://marketcalls.github.io/openalgo-charts/) · [**Live examples**](https://marketcalls.github.io/openalgo-charts/examples) · [**Getting started**](./docs/getting-started.md) · [**Migrating to 2.0**](./docs/migrating-to-2.md) · [**Architecture**](./ARCHITECTURE.md)
|
|
@@ -25,7 +25,7 @@ with no runtime dependencies.
|
|
|
25
25
|
npm install openalgo-charts
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
Current version: **2.5.6
|
|
28
|
+
Current version: **2.5.7**, an internal release: the chart's code is split by responsibility with no change to the API or to what it paints. 2.5.6 added one undo timeline for the whole chart, study policies, one draw order for studies and drawings, extended hours and adjusted prices as their own series, study inputs that follow other settings, and the space past the last bar laid out in the venue's hours.
|
|
29
29
|
See the [changelog](./CHANGELOG.md) for release notes.
|
|
30
30
|
|
|
31
31
|
## Quick start
|
|
@@ -56,7 +56,7 @@ for live data, or [the widget example](#the-whole-terminal-in-one-call) for char
|
|
|
56
56
|
|
|
57
57
|
## Architecture
|
|
58
58
|
|
|
59
|
-
<a href="docs/architecture-diagram.svg"><img src="docs/architecture-diagram.svg" alt="OpenAlgo Charts 2.5.
|
|
59
|
+
<a href="docs/architecture-diagram.svg"><img src="docs/architecture-diagram.svg" alt="OpenAlgo Charts 2.5.7 architecture: host responsibilities, the base data-to-rendering pipeline with alerts and shared replay, and eight optional tiers including workspace storage, trading tools and the widget" width="920" /></a>
|
|
60
60
|
|
|
61
61
|
How data reaches the chart, what your app owns, and which features you can import.
|
|
62
62
|
[Open the full-size diagram](docs/architecture-diagram.svg).
|
|
@@ -107,7 +107,7 @@ You can also load the library from a CDN in a plain HTML page:
|
|
|
107
107
|
```html
|
|
108
108
|
<div id="chart" style="width:100vw;height:100vh"></div>
|
|
109
109
|
<script type="module">
|
|
110
|
-
import { createChart, generateBars } from 'https://unpkg.com/openalgo-charts@2.5.
|
|
110
|
+
import { createChart, generateBars } from 'https://unpkg.com/openalgo-charts@2.5.7/dist/openalgo-charts.mjs';
|
|
111
111
|
const chart = createChart(document.getElementById('chart'), { timezone: 'Asia/Kolkata' });
|
|
112
112
|
chart.addSeries('candlestick').setData(generateBars(1700000000, 200, 3600));
|
|
113
113
|
chart.fitContent();
|
|
@@ -165,7 +165,7 @@ Unused optional tiers stay out of the base chart download.
|
|
|
165
165
|
|
|
166
166
|
| Import | Contents | Brotli |
|
|
167
167
|
|---|---|---|
|
|
168
|
-
| `openalgo-charts` | Engine, 13 chart types, panes and scales, custom indicator registry, primitives, alerts, replay, comparisons, chart linking, state, feeds, bar cache, trading overlays, CSV and SVG export |
|
|
168
|
+
| `openalgo-charts` | Engine, 13 chart types, panes and scales, custom indicator registry, primitives, alerts, replay, comparisons, chart linking, state, feeds, bar cache, trading overlays, CSV and SVG export | 126.91 kB |
|
|
169
169
|
| `openalgo-charts/indicators` | 105 built-in indicators, calculation helpers and helpers for studies that use external data | 36.44 kB |
|
|
170
170
|
| `openalgo-charts/draw` | 87 drawing tools + a headless drawing controller, clipboard, settings schema, level palette, freehand geometry and SVG icons | 48.42 kB |
|
|
171
171
|
| `openalgo-charts/transform` | Heikin Ashi, Renko, Range bars, Line Break, Point & Figure, Kagi, and symbol arithmetic (`AAPL/MSFT`) | 4.50 kB |
|
|
@@ -175,7 +175,7 @@ Unused optional tiers stay out of the base chart download.
|
|
|
175
175
|
| `openalgo-charts/widget` | `createWidget`: toolbar, Data, Objects, Watchlist and News dock, account summary, symbol search, dialogs, mobile controls, shortcuts and optional layout persistence | 92.72 kB |
|
|
176
176
|
| `openalgo-charts/workspace` | Validated workspace and indicator-template documents, named watchlists, named catalogs with revision checks, asynchronous storage and an IndexedDB adapter; no DOM | 10.47 kB |
|
|
177
177
|
|
|
178
|
-
Everything together is **
|
|
178
|
+
Everything together is **357.50 kB Brotli**; a widget terminal with built-in indicators (base + draw + indicators + widget) is 304.49 kB. Figures are measured from the 2.5.7 release build. The trade tier is 16.69 kB on its own; base + trade costs 143.60 kB. Sizes use decimal kB.
|
|
179
179
|
|
|
180
180
|
## What's built
|
|
181
181
|
|
|
@@ -501,17 +501,17 @@ Enforced in CI by [`size-limit`](./.size-limit.json). Nothing is excluded, becau
|
|
|
501
501
|
|
|
502
502
|
| Bundle | Limit | Actual |
|
|
503
503
|
|---|---|---|
|
|
504
|
-
| Base engine |
|
|
505
|
-
| Base + trade |
|
|
504
|
+
| Base engine | 126.91 kB | 126.91 kB |
|
|
505
|
+
| Base + trade | 143.60 kB | 143.60 kB |
|
|
506
506
|
| Indicators tier | 36.44 kB | 36.44 kB |
|
|
507
507
|
| Draw tier | 48.42 kB | 48.42 kB |
|
|
508
508
|
| Transform tier | 6 kB | 4.50 kB |
|
|
509
509
|
| Profile tier | 15 kB | 14.96 kB |
|
|
510
510
|
| WebGL2 tier | 7 kB | 6.39 kB |
|
|
511
511
|
| Widget tier | 92.72 kB | 92.72 kB |
|
|
512
|
-
| Widget terminal (base + draw + indicators + widget) |
|
|
512
|
+
| Widget terminal (base + draw + indicators + widget) | 304.49 kB | 304.49 kB |
|
|
513
513
|
| Workspace tier | 10.47 kB | 10.47 kB |
|
|
514
|
-
| **Everything** |
|
|
514
|
+
| **Everything** | 357.50 kB | 357.50 kB |
|
|
515
515
|
|
|
516
516
|
## Documentation
|
|
517
517
|
|
|
@@ -556,7 +556,7 @@ See [Contributing](./CONTRIBUTING.md) for setup, targeted checks, documentation
|
|
|
556
556
|
```bash
|
|
557
557
|
npm install # install dev toolchain
|
|
558
558
|
npm run typecheck # strict TypeScript check
|
|
559
|
-
npm test # engine unit tests (Vitest):
|
|
559
|
+
npm test # engine unit tests (Vitest): 9247 across 409 files
|
|
560
560
|
npm run test:demo # reference-host tests: 653 across 62 files
|
|
561
561
|
npm run test:endurance # node endurance-harness tests: 7 cases
|
|
562
562
|
npm run build # Rollup -> dist/ (minified ESM per tier + types)
|
|
@@ -575,7 +575,7 @@ npm run verify # lint + types + unit + endurance harness + build + demo + dt
|
|
|
575
575
|
|
|
576
576
|
## Status & limitations
|
|
577
577
|
|
|
578
|
-
Version **2.5.
|
|
578
|
+
Version **2.5.7**. All engine build phases are implemented. Upgrading a 1.9.x host: [Migrating to 2.0](./docs/migrating-to-2.md).
|
|
579
579
|
|
|
580
580
|
Known gaps, stated plainly:
|
|
581
581
|
|