openalgo-charts 1.0.7 → 1.0.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 +10 -5
- package/dist/draw/index.d.ts +2047 -0
- package/dist/index.d.ts +700 -70
- package/dist/indicators/index.d.ts +139 -0
- package/dist/openalgo-charts.draw.mjs +2 -0
- package/dist/openalgo-charts.draw.mjs.map +1 -0
- package/dist/openalgo-charts.indicators.mjs +2 -0
- package/dist/openalgo-charts.indicators.mjs.map +1 -0
- 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.transform.mjs +1 -1
- package/dist/openalgo-charts.transform.mjs.map +1 -1
- package/dist/profile/index.d.ts +33 -0
- package/dist/trade/index.d.ts +33 -0
- package/dist/transform/index.d.ts +62 -9
- package/package.json +101 -72
package/README.md
CHANGED
|
@@ -8,8 +8,8 @@ Professional interactive financial charts, on-chart trading, and live data - in
|
|
|
8
8
|
|
|
9
9
|
[](https://www.npmjs.com/package/openalgo-charts)
|
|
10
10
|
[](./LICENSE)
|
|
11
|
-
[](./ARCHITECTURE.md)
|
|
12
|
+
[](#develop)
|
|
13
13
|
[](#principles)
|
|
14
14
|
|
|
15
15
|
[**Documentation**](https://marketcalls.github.io/openalgo-charts/) · [**Live examples**](https://marketcalls.github.io/openalgo-charts/examples) · [**Getting started**](./docs/getting-started.md) · [**Architecture**](./ARCHITECTURE.md)
|
|
@@ -62,14 +62,19 @@ Loadable tiers - lazy-load only what you use:
|
|
|
62
62
|
| `openalgo-charts/trade` | On-chart order/position/bracket tools + DOM ladder |
|
|
63
63
|
| `openalgo-charts/transform` | Renko, Range bars, Point & Figure, Kagi, Line Break, Heikin Ashi |
|
|
64
64
|
| `openalgo-charts/profile` | Volume Profile, Market Profile (TPO), Footprint, Order flow |
|
|
65
|
+
| `openalgo-charts/indicators` | 18 built-in indicators + the Tier-2 (external-data) contract |
|
|
66
|
+
| `openalgo-charts/draw` | 18 drawing tools + a headless drawing controller |
|
|
65
67
|
|
|
66
68
|
## What's built
|
|
67
69
|
|
|
68
70
|
- **Chart types:** candles, hollow/volume candles, bars, high-low, line, line+markers, step, area, HLC-area, baseline, columns, histogram.
|
|
69
71
|
- **Transforms:** Heikin Ashi, Renko, Range bars, Line Break, Point & Figure, Kagi.
|
|
70
72
|
- **Profiles & order flow:** Volume Profile, Market Profile (TPO), Footprint, cumulative delta.
|
|
73
|
+
- **Indicators:** 18 built-ins via `chart.addIndicator(...)` - SMA, EMA, WMA, VWAP, Bollinger, Supertrend, Parabolic SAR, Ichimoku, RSI, MACD, Stochastic, ADX/DMI, CCI, MFI, ATR, Volume, OBV, A/D - plus a registry for your own, and a Tier-2 contract for indicators with external data (open interest, CVD).
|
|
71
74
|
- **Trading:** order/position/bracket lines, live P&L, one-click + drag-to-modify, OCO, validation, analyzer mode, and a depth-of-market ladder (5 to 200 levels).
|
|
72
|
-
- **
|
|
75
|
+
- **Drawing tools:** 18 tools (trend/ray/fib/channel/position/measure/text/...) with a headless controller - placement, selection, per-anchor drag, magnet snap, undo/redo, and persistence through the chart state.
|
|
76
|
+
- **Panes:** draggable dividers, move/maximize/remove, and TradingView-style pane legends with inline show-hide / settings / delete controls.
|
|
77
|
+
- **Live + historical** OpenAlgo data (REST history + WebSocket ticks with auto-reconnect), a unified `chart.on(...)` event bus, markers/signals, earnings/dividend/expiry event markers, and custom price/time formatters.
|
|
73
78
|
|
|
74
79
|
## Documentation
|
|
75
80
|
|
|
@@ -89,7 +94,7 @@ cd website && npm install && npm run dev # http://localhost:3000/openalgo-cha
|
|
|
89
94
|
```bash
|
|
90
95
|
npm install # install dev toolchain
|
|
91
96
|
npm run typecheck # strict TypeScript check
|
|
92
|
-
npm test # unit tests (vitest) -
|
|
97
|
+
npm test # unit tests (vitest) - 468 across 47 files
|
|
93
98
|
npm run build # Rollup -> dist/ (minified ESM per tier + types)
|
|
94
99
|
npm run size # size-limit (Brotli) against the budget
|
|
95
100
|
npm run e2e # Playwright Chromium smoke tests
|
|
@@ -105,7 +110,7 @@ npm run verify # typecheck + test + build + size
|
|
|
105
110
|
|
|
106
111
|
## Status & limitations
|
|
107
112
|
|
|
108
|
-
Version **1.0.
|
|
113
|
+
Version **1.0.8 (published)** - all engine build phases are implemented with 468 unit tests, base engine ~33 KB Brotli, full package ~58 KB Brotli (all six tiers). The OpenAlgo WS/trade adapters ship and auto-reconnect, but their exact message/endpoint schemas should be verified against your running OpenAlgo build. An optional DOM chrome package (toolbar, dialogs, command palette, objects panel) is the next planned piece; the Footprint/order-flow renderer still needs its visual pass, and overlay and `indexed-to-100` price scales are unimplemented - see [`ARCHITECTURE.md`](./ARCHITECTURE.md) for the honest deferred list.
|
|
109
114
|
|
|
110
115
|
## License
|
|
111
116
|
|