openalgo-charts 2.6.4 → 2.6.5
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 +17 -15
- package/dist/index.d.ts +4 -1
- 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/dist/openalgo-charts.widget.mjs +1 -1
- package/dist/openalgo-charts.widget.mjs.map +1 -1
- package/dist/openalgo-charts.widget.standalone.js +1 -1
- package/package.json +2 -2
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,9 @@ with no runtime dependencies.
|
|
|
25
25
|
npm install openalgo-charts
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
Current version: **2.6.
|
|
28
|
+
Current version: **2.6.5**. OpenAlgo trade edits serialize per order and retain only acknowledged changes; a failed on-wire modify requires a fresh readable orderbook before another edit, while preserving cancellation identity. The optional widget adds compact drawing search, tool groups, SVG previews and Favorites using the rail's saved pins, with Running studies before the indicator catalog.
|
|
29
|
+
|
|
30
|
+
2.6.4 was an order flow release: a footprint finds the imbalances beside a row that never traded, prints volume shaded by delta, alerts once when price comes back to a zone, extends only the zone kinds you pick, and takes a colour for each of its parts or one of six named themes; the website gains an Order flow page of live footprint and market profile examples. 2.6.3 was a finish release: finer glyphs at one line weight, a drawing rail that folds away, a smoother wheel and trackpad zoom, a widget whose drag keeps the price scale fitting, and a log scale that fills the pane. 2.6.2 was a fix for the bottom bar's ranges and Go to, which reported missing history across a weekend or another gap no session trades in. 2.6.1 was order flow analytics for the footprint (trade classification, a trade size filter, imbalance and delta views, zones, unfinished auctions, delta flips and session statistics), rows aligned on the even boundary, Renko and point and figure sizing from price or the ATR, and settings dialogs for both chart types in the widget and the reference host. 2.6.0 was analysis depth and a stricter API: the chart applies Heikin Ashi, Renko, range bars, line break, point and figure and Kagi to the bars you feed, live, with each study on the elements or the underlying bars; seven new built-ins and a timeframe input on 29 of them; symbol search through the OpenAlgo feed; rich event details with host actions; a typed event map for `chart.on`; a classic-script build of every tier and `require()` of the ESM files; and declarations that hold for a host compiling with both strict flags. 2.5.10 was the persistence, saved layouts and chart grid release.
|
|
29
31
|
See the [changelog](./CHANGELOG.md) for release notes.
|
|
30
32
|
|
|
31
33
|
## Quick start
|
|
@@ -66,7 +68,7 @@ Firefox and WebKit. In Vue, hold the chart in a `shallowRef`, never in `ref()` o
|
|
|
66
68
|
|
|
67
69
|
## Architecture
|
|
68
70
|
|
|
69
|
-
<a href="docs/architecture-diagram.svg"><img src="docs/architecture-diagram.svg" alt="OpenAlgo Charts 2.6.
|
|
71
|
+
<a href="docs/architecture-diagram.svg"><img src="docs/architecture-diagram.svg" alt="OpenAlgo Charts 2.6.5 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>
|
|
70
72
|
|
|
71
73
|
How data reaches the chart, what your app owns, and which features you can import.
|
|
72
74
|
[Open the full-size diagram](docs/architecture-diagram.svg).
|
|
@@ -117,7 +119,7 @@ You can also load the library from a CDN in a plain HTML page:
|
|
|
117
119
|
```html
|
|
118
120
|
<div id="chart" style="width:100vw;height:100vh"></div>
|
|
119
121
|
<script type="module">
|
|
120
|
-
import { createChart, generateBars } from 'https://unpkg.com/openalgo-charts@2.6.
|
|
122
|
+
import { createChart, generateBars } from 'https://unpkg.com/openalgo-charts@2.6.5/dist/openalgo-charts.mjs';
|
|
121
123
|
const chart = createChart(document.getElementById('chart'), { timezone: 'Asia/Kolkata' });
|
|
122
124
|
chart.addSeries('candlestick').setData(generateBars(1700000000, 200, 3600));
|
|
123
125
|
chart.fitContent();
|
|
@@ -179,17 +181,17 @@ Unused optional tiers stay out of the base chart download.
|
|
|
179
181
|
|
|
180
182
|
| Import | Contents | Brotli |
|
|
181
183
|
|---|---|---|
|
|
182
|
-
| `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 | 137.
|
|
184
|
+
| `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 | 137.83 kB |
|
|
183
185
|
| `openalgo-charts/indicators` | 112 built-in indicators, calculation helpers and helpers for studies that use external data | 43.02 kB |
|
|
184
186
|
| `openalgo-charts/draw` | 87 drawing tools + a headless drawing controller, clipboard, settings schema, level palette, freehand geometry and SVG icons | 58.44 kB |
|
|
185
187
|
| `openalgo-charts/transform` | Heikin Ashi, Renko, Range bars, Line Break, Point & Figure, Kagi, and symbol arithmetic (`AAPL/MSFT`) | 6.23 kB |
|
|
186
188
|
| `openalgo-charts/profile` | Volume Profile, Market Profile (TPO) with compact pixel letters, Footprint, order flow | 20.83 kB |
|
|
187
189
|
| `openalgo-charts/trade` | Order, position and bracket tools, account state, order preview and position commands, plus a depth-of-market ladder | 16.88 kB |
|
|
188
190
|
| `openalgo-charts/webgl` | GPU drawing for supported series, with Canvas 2D fallback | 6.97 kB |
|
|
189
|
-
| `openalgo-charts/widget` | `createWidget`: toolbar, bottom bar, Data, Objects, Watchlist and News dock, account summary, symbol search, dialogs, mobile controls, a shortcuts editor, saved layouts, the chart grid (`createChartGrid`) and optional persistence in IndexedDB |
|
|
191
|
+
| `openalgo-charts/widget` | `createWidget`: toolbar, bottom bar, Data, Objects, Watchlist and News dock, account summary, symbol search, dialogs, mobile controls, a shortcuts editor, saved layouts, the chart grid (`createChartGrid`) and optional persistence in IndexedDB | 125.89 kB |
|
|
190
192
|
| `openalgo-charts/workspace` | Validated workspace and indicator-template documents, named watchlists, named catalogs with revision checks, asynchronous storage and an IndexedDB adapter; no DOM | 11.73 kB |
|
|
191
193
|
|
|
192
|
-
Everything together is **
|
|
194
|
+
Everything together is **427.81 kB Brotli**; a widget terminal with built-in indicators (base + draw + indicators + widget) is 365.19 kB. The widget's eight first-use parts (the shortcuts editor, the Layouts menu, the templates list, the chart data dialog, the chart type settings dialog, the grid bar and its menus, and the IndexedDB store) add 21.00 kB in files of their own, fetched only when a widget first uses one. The nine classic-script files together are 441.42 kB. Figures are measured from the 2.6.5 release build. The trade tier is 16.88 kB on its own; base + trade costs 154.71 kB. Sizes use decimal kB.
|
|
193
195
|
|
|
194
196
|
## What's built
|
|
195
197
|
|
|
@@ -515,19 +517,19 @@ Enforced in CI by [`size-limit`](./.size-limit.json). Nothing is excluded, becau
|
|
|
515
517
|
|
|
516
518
|
| Bundle | Limit | Actual |
|
|
517
519
|
|---|---|---|
|
|
518
|
-
| Base engine | 137.
|
|
519
|
-
| Base + trade | 154.
|
|
520
|
+
| Base engine | 137.84 kB | 137.83 kB |
|
|
521
|
+
| Base + trade | 154.72 kB | 154.71 kB |
|
|
520
522
|
| Indicators tier | 43.02 kB | 43.02 kB |
|
|
521
523
|
| Draw tier | 58.45 kB | 58.44 kB |
|
|
522
524
|
| Transform tier | 6.23 kB | 6.23 kB |
|
|
523
525
|
| Profile tier | 20.83 kB | 20.83 kB |
|
|
524
526
|
| WebGL2 tier | 6.97 kB | 6.97 kB |
|
|
525
|
-
| Widget tier |
|
|
527
|
+
| Widget tier | 125.90 kB | 125.89 kB |
|
|
526
528
|
| Widget first-use parts (eight files beside the widget tier) | 21.00 kB | 21.00 kB |
|
|
527
|
-
| Widget terminal (base + draw + indicators + widget) |
|
|
529
|
+
| Widget terminal (base + draw + indicators + widget) | 365.19 kB | 365.19 kB |
|
|
528
530
|
| Workspace tier | 11.73 kB | 11.73 kB |
|
|
529
|
-
| Script tags (the nine classic-script files) |
|
|
530
|
-
| **Everything** |
|
|
531
|
+
| Script tags (the nine classic-script files) | 441.42 kB | 441.42 kB |
|
|
532
|
+
| **Everything** | 427.82 kB | 427.81 kB |
|
|
531
533
|
|
|
532
534
|
## Documentation
|
|
533
535
|
|
|
@@ -578,7 +580,7 @@ See [Contributing](./CONTRIBUTING.md) for setup, targeted checks, documentation
|
|
|
578
580
|
```bash
|
|
579
581
|
npm install # install dev toolchain
|
|
580
582
|
npm run typecheck # TypeScript: src with the stricter flags, then the tests
|
|
581
|
-
npm test # engine unit tests (Vitest):
|
|
583
|
+
npm test # engine unit tests (Vitest): 11725 across 518 files
|
|
582
584
|
npm run test:demo # reference-host tests: 730 across 68 files
|
|
583
585
|
npm run test:endurance # node endurance-harness tests: 7 cases
|
|
584
586
|
npm run build # Rollup -> dist/ (minified ESM per tier + types)
|
|
@@ -599,7 +601,7 @@ npm run verify # lint + types + cycles + unused exports + unit + endurance h
|
|
|
599
601
|
|
|
600
602
|
## Status & limitations
|
|
601
603
|
|
|
602
|
-
Version **2.6.
|
|
604
|
+
Version **2.6.5**. All engine build phases are implemented. Upgrading a 1.9.x host: [Migrating to 2.0](./docs/migrating-to-2.md).
|
|
603
605
|
|
|
604
606
|
Known gaps, stated plainly:
|
|
605
607
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Library version string. Matches package.json (including locally prepared releases). */
|
|
2
|
-
declare const VERSION = "2.6.
|
|
2
|
+
declare const VERSION = "2.6.5";
|
|
3
3
|
/** Returns the current library version. */
|
|
4
4
|
declare function version(): string;
|
|
5
5
|
|
|
@@ -11645,6 +11645,8 @@ declare class OpenAlgoTradeFeed implements OrderFeed {
|
|
|
11645
11645
|
private readonly _strategy;
|
|
11646
11646
|
private readonly _defaultProduct;
|
|
11647
11647
|
private readonly _ctx;
|
|
11648
|
+
private readonly _modifies;
|
|
11649
|
+
private _bookRead;
|
|
11648
11650
|
/**
|
|
11649
11651
|
* Client order ids this feed has put on the wire, and whether the outcome is
|
|
11650
11652
|
* known. A claimed-but-unresolved entry blocks a repeat. See `_claimToken`.
|
|
@@ -11765,6 +11767,7 @@ declare class OpenAlgoTradeFeed implements OrderFeed {
|
|
|
11765
11767
|
triggerPrice?: number;
|
|
11766
11768
|
qty?: number;
|
|
11767
11769
|
}): Promise<void>;
|
|
11770
|
+
private _modify;
|
|
11768
11771
|
cancel(orderId: string): Promise<void>;
|
|
11769
11772
|
/**
|
|
11770
11773
|
* Fetch the order book, keeping the rows that could not be read.
|