kline-orderbook-chart 2.0.0 → 2.2.0

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/CHANGELOG.md CHANGED
@@ -5,6 +5,128 @@ This project follows [Semantic Versioning](https://semver.org/).
5
5
 
6
6
  ---
7
7
 
8
+ ## 2.2.0 — Complete types, license handling, setup fixes
9
+
10
+ ### Added
11
+
12
+ - RSI computes from the candles again: Wilder's RSI with an EMA 9 and a WMA 45
13
+ overlay, overbought / oversold zones at 80–90 and 10–20. `enableRsi()` no
14
+ longer needs a supplied state. Settings: `setRsiPeriod`, `setRsiShowWma`,
15
+ `setRsiShowEma`, `setRsiLineColor`, `setRsiLineWidth`.
16
+ - Custom indicators (`addIndicator`) are included in the Professional plan.
17
+ - Desktop and mobile license keys (`platform: 'desktop'` / `'mobile'`).
18
+ `chart.license` reports `platform`, `grace`, `graceEndsAt`, `warning`.
19
+
20
+ ### Removed from the supported API
21
+
22
+ - Pullback Signals (`enableMrdPullback`, `setMrdPullbackStateJson` and related
23
+ methods) and the RSI state methods (`setRsiStateJson`, `applyRsiTickJson`,
24
+ `clearRsiState`, `isRsiStateDriven`). They are not declared in `index.d.ts`
25
+ and may change or disappear in any release.
26
+
27
+ ### Changed
28
+
29
+ - `createChartBridge` no longer rejects because of the license. An invalid
30
+ key shows a notice on the canvas and logs one warning; read
31
+ `chart.license` for the state. Code that caught the rejection to detect an
32
+ expired trial should check `chart.license.expired` instead.
33
+ - An expired paid key keeps every plan feature for 7 days, with a "Renew
34
+ license" badge, then runs the free tier with a "License expired" badge. In
35
+ 2.1.0 an expired key replaced the chart with a notice. A trial still ends
36
+ on its expiry date.
37
+ - Keys issued from 2026-12-05 are bound to a platform: a web key does not
38
+ run inside a desktop or mobile app (Electron, Tauri, Capacitor, Cordova,
39
+ React Native, `file://`), and a desktop or mobile key does not run on a
40
+ website. Both show "License invalid" with the reason in the console. Keys
41
+ issued earlier keep working as in 2.1 until they expire; renewals are issued
42
+ per platform at no extra cost.
43
+ - A `licenseKey` that is not a signed key (for example `'trial'` or a
44
+ placeholder) now runs the free tier with a console notice. In 2.1.0 it
45
+ blocked the chart with "License invalid". Trial keys are signed keys issued
46
+ by Tape Delta.
47
+ - The local trial timer is removed, so the library no longer writes cookies,
48
+ `localStorage` or IndexedDB entries.
49
+
50
+ ### Fixed
51
+
52
+ - Candles loaded with `setKlines` before `setCandleInterval` were laid out
53
+ on a default interval and could fall outside the view. The interval is now
54
+ taken from the timestamps until `setCandleInterval` is called.
55
+ - `addMarker` returns the marker id that `removeMarker` and `selectMarker`
56
+ take. It returned `undefined`.
57
+ - `setCrosshairStyle` accepts `'dashed'`, `'solid'` and `'dotted'` as well as
58
+ `0`, `1`, `2`.
59
+ - Color setters accept three-digit hex (`#fff`).
60
+ - License expiry is read from `exp` as well as `e`, matching the engine.
61
+ - The package contains every worker file the bundle loads.
62
+ - When a bundler serves HTML instead of the engine file, the error names the
63
+ fix (Vite `optimizeDeps.exclude`). The non-streaming fallback requested the
64
+ engine file from a wrong path.
65
+
66
+ ### Types and documentation
67
+
68
+ - `index.d.ts` declares the complete supported API and is checked against the
69
+ bundle on every release. Corrected declarations from 2.1.0:
70
+ - `setKlines(timestamps, open, high, low, close, volume)` takes six arrays.
71
+ - `setHeatmap(matrix, rows, cols, xStart, xStep, yStart, yStep)`; the
72
+ matrix is row-major with row 0 at the lowest price.
73
+ - `enableVolume()` and `enableRsi()` take no arguments; each indicator has
74
+ `disableX()` and `isXEnabled()`.
75
+ - `enableHeatmap` was declared but never existed; it is removed.
76
+ - Custom indicator ids are numbers.
77
+ TypeScript code written against the incorrect 2.1.0 declarations may need
78
+ these corrections; runtime behavior of those methods is unchanged.
79
+ - Methods not declared in `index.d.ts` are internal.
80
+ - `hasPremiumCompute`, listed in the 2.0.0 notes, was never available on the
81
+ chart object and is not part of the API.
82
+ - Documentation rewritten against the shipped API, with an API reference
83
+ generated from `index.d.ts`:
84
+ https://tapedelta.com/docs/charting-library/api-reference
85
+
86
+ ---
87
+
88
+ ## 2.1.0 — GPU heatmap performance
89
+
90
+ ### Performance
91
+
92
+ - The heatmap depth field now rasterises into price BUCKETS sized to the
93
+ zoom instead of one row per price level. Zoomed out, many ticks share a
94
+ texel and a bucket is at most one pixel tall, so frame cost tracks the
95
+ pane rather than the depth of the book. The field is bounded by a
96
+ total-cell ceiling instead of by the level count, so memory no longer
97
+ grows with how deep the book goes.
98
+ - Buckets fold by MAX, not by sum. A wall keeps its magnitude at every
99
+ zoom level; summing merged a wall into the quiet levels beside it and
100
+ the picture went flat at zoom-out.
101
+ - Vertical smoothing is a Gaussian-weighted MAX dilate with a radius of
102
+ ceil(3 sigma), capped at 64 rows. Sigma is derived from how many price
103
+ levels a pixel row has to represent — i.e. from the zoom — rather than
104
+ from texel height, which is always at most a pixel now and so says
105
+ nothing about how much detail is still resolvable.
106
+ - The colour-window cut-off is picked from a log-binned histogram of the
107
+ frame instead of a fixed bound.
108
+
109
+ ### Added
110
+
111
+ - Candles on the tick heatmap — K-line or a per-candle volume / delta
112
+ profile drawn as a footprint column, built from the recorded tape:
113
+ `set_kl_enabled`, `set_kl_tf_ms`, `set_kl_style`, `set_kl_body_px`,
114
+ `set_kl_col_px`, `set_kl_show_values`, `set_kl_text_size`, and the
115
+ `set_kl_*_color` setters.
116
+ - Tick history encode + replay: `createTickHistoryEncoder()`,
117
+ `TH_KEYFRAME_MS`.
118
+ - Live L2 + tape ingest stream: `openIngestStream()`, `ingestSupported()`,
119
+ `setIngestRowBudget()`, `setIngestKeepBookHidden()`.
120
+ - A BBO track on the tick heatmap.
121
+
122
+ ### Notes
123
+
124
+ - `index.d.ts` does not declare the new entry points yet — they are
125
+ callable but untyped.
126
+ - RSI and Pullback Signals still render a state you supply; see 2.0.0.
127
+
128
+ ---
129
+
8
130
  ## 2.0.0 — Performance & architecture
9
131
 
10
132
  ### Performance
@@ -137,7 +259,7 @@ us about a licensed build.
137
259
  ### Updates
138
260
 
139
261
  - README now links to the live in-browser demos at
140
- [mrd-indicators.com/examples](https://mrd-indicators.com/examples).
262
+ [tapedelta.com/examples](https://tapedelta.com/examples).
141
263
 
142
264
  ---
143
265
 
@@ -364,7 +486,7 @@ If you have a valid `0.x` license key, **it will not validate against
364
486
 
365
487
  1. `npm uninstall kline-orderbook-chart`
366
488
  2. `npm install kline-orderbook-chart@1.0.0`
367
- 3. Email <support@mrd-indicators.com> with your previous license key for
489
+ 3. Email <support@tapedelta.com> with your previous license key for
368
490
  a free replacement Ed25519 token (same plan, same expiry).
369
491
  4. Update any `generateLicenseKey` calls — there should be none in
370
492
  production code; they were only ever used during evaluation.
package/LICENSE CHANGED
@@ -1,94 +1,130 @@
1
- MRD CHART ENGINE — COMMERCIAL SOFTWARE LICENSE AGREEMENT
1
+ KLINE-ORDERBOOK-CHART — COMMERCIAL SOFTWARE LICENSE
2
2
 
3
3
  Copyright (c) 2025-2026 TapeDelta Technologies. All rights reserved.
4
4
 
5
- This software and associated documentation files (the "Software") are proprietary
6
- and confidential. The Software is licensed, not sold.
5
+ This license governs the use of the kline-orderbook-chart software, including
6
+ its JavaScript files, engine binaries, type declarations and documentation
7
+ (the "Software"). The Software is licensed, not sold.
8
+
9
+ 1. DEFINITIONS
10
+
11
+ "Licensor" means TapeDelta Technologies, contact support@tapedelta.com.
12
+ "Licensee" means the person or organization that obtains a License Key or
13
+ uses the Software under section 4.
14
+ "License Key" means the signed key issued by Licensor for a plan
15
+ (Trial, Standard, Professional or Enterprise), stating the platform (web,
16
+ desktop or mobile), the authorized web domains or mobile application
17
+ identifiers, and the expiry date.
18
+ "Application" means a website, web application, desktop or mobile
19
+ application developed by Licensee that provides functionality beyond the
20
+ Software itself.
21
+
22
+ 2. LICENSE GRANT
23
+
24
+ Subject to this license and payment of the applicable fees, Licensor grants
25
+ Licensee a non-exclusive, non-transferable, worldwide license, for the term
26
+ of the License Key, to:
27
+
28
+ a. use the Software to develop, test and operate Applications;
29
+ b. use the features included in the plan of the License Key, on the
30
+ platform, domains or application identifiers stated in it;
31
+ c. distribute the Software to end users solely as an integrated part of an
32
+ Application, including in the Application's web bundle;
33
+ d. use the Software in commercial and paid Applications, including
34
+ Applications that provide analytics, screeners, signals or alerts of
35
+ their own.
36
+
37
+ Development and testing in a browser on localhost, 127.0.0.1 and [::1]
38
+ need no domain in the License Key. Desktop and mobile Applications require
39
+ a License Key issued for that platform, in development and in production.
40
+
41
+ 3. TRIAL
42
+
43
+ A Trial License Key grants the rights of section 2 for evaluation only, for
44
+ the period stated in the key (30 days unless otherwise stated). A trial
45
+ chart shows a trial badge. Trial use in production is not permitted.
46
+
47
+ 4. FREE TIER
48
+
49
+ Without a License Key the Software runs with a reduced feature set (candles,
50
+ volume and basic drawing tools) and displays a Tape Delta brand mark.
51
+ Licensee may use the free tier in Applications, including in production,
52
+ provided the brand mark is not removed, hidden or obscured. Sections 5 to 10
53
+ apply to free tier use.
54
+
55
+ 5. RESTRICTIONS
56
+
57
+ Licensee shall not:
58
+
59
+ a. sell, sublicense, rent or distribute the Software on its own, or as part
60
+ of a product whose primary purpose is to provide charting components or
61
+ a charting library to developers;
62
+ b. share a License Key with third parties or use it outside the platform,
63
+ domains and application identifiers it states;
64
+ c. reverse engineer, decompile or disassemble the Software, except to the
65
+ extent applicable law expressly permits it despite this restriction;
66
+ d. remove, alter or circumvent the license verification, watermark, trial
67
+ badge or proprietary notices of the Software;
68
+ e. use the Software in violation of applicable law.
69
+
70
+ 6. TERM AND EXPIRY
71
+
72
+ A License Key is valid until the expiry date it contains. For 7 days after
73
+ the expiry of a paid License Key the Software keeps the plan's features and
74
+ displays a renewal notice. After that period, and immediately for a Trial
75
+ License Key, the Software runs as the free tier of section 4 with a license
76
+ notice until a valid License Key is supplied. Licensee's data and settings
77
+ are not affected. Renewal is made by issuing a new License Key, which
78
+ Licensee supplies to the Software without other changes to the Application.
79
+ A subscription renewed without interruption is renewed at the price
80
+ Licensee first paid.
81
+
82
+ Licensor may terminate this license if Licensee materially breaches it and
83
+ does not cure the breach within 30 days of written notice.
84
+
85
+ 7. UPDATES AND SUPPORT
86
+
87
+ During the term of a paid License Key, Licensee may use every version of the
88
+ Software released in that term. Support is provided by email at
89
+ support@tapedelta.com, with the first-response targets published on the
90
+ licensing page of the documentation. The Software runs within the
91
+ Application and Licensor operates no service for it, so no availability
92
+ commitment applies. Service levels beyond this section require a separate
93
+ written agreement.
94
+
95
+ 8. DATA
96
+
97
+ The Software verifies License Keys on the device and does not send usage or
98
+ personal data to Licensor. In worker rendering mode, the Orderbook and DOM
99
+ Ladder engines load a font stylesheet from fonts.googleapis.com; the
100
+ main-thread rendering mode does not.
101
+
102
+ 9. INTELLECTUAL PROPERTY
103
+
104
+ The Software is the property of Licensor and is protected by copyright and
105
+ trade secret law. All rights not expressly granted are reserved.
106
+
107
+ 10. WARRANTY DISCLAIMER AND LIMITATION OF LIABILITY
108
+
109
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
110
+ IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
111
+ PARTICULAR PURPOSE AND NON-INFRINGEMENT. THE SOFTWARE DISPLAYS DATA SUPPLIED
112
+ BY LICENSEE AND DOES NOT PROVIDE FINANCIAL ADVICE.
113
+
114
+ TO THE EXTENT PERMITTED BY LAW, LICENSOR SHALL NOT BE LIABLE FOR INDIRECT,
115
+ INCIDENTAL, SPECIAL, CONSEQUENTIAL OR PUNITIVE DAMAGES, OR FOR LOSS OF
116
+ PROFITS, DATA OR TRADING LOSSES. LICENSOR'S TOTAL LIABILITY SHALL NOT EXCEED
117
+ THE FEES PAID BY LICENSEE FOR THE SOFTWARE IN THE TWELVE MONTHS BEFORE THE
118
+ CLAIM.
119
+
120
+ 11. GOVERNING LAW
7
121
 
8
- 1. GRANT OF LICENSE
9
-
10
- Subject to the terms of this agreement and payment of applicable fees,
11
- TapeDelta Technologies grants you a non-exclusive, non-transferable, limited
12
- license to use the Software in accordance with your purchased license tier
13
- (Standard, Professional, or Enterprise).
14
-
15
- 2. PERMITTED USE
16
-
17
- a. You may integrate the Software into your own applications and products.
18
- b. You may use the Software on the number of domains/projects specified
19
- by your license tier.
20
- c. You may make backup copies of the Software for archival purposes.
21
-
22
- 3. RESTRICTIONS
23
-
24
- You may NOT:
25
- a. Redistribute, sublicense, sell, rent, lease, or share the Software
26
- or any portion thereof to third parties.
27
- b. Reverse engineer, decompile, disassemble, or otherwise attempt to
28
- derive the source code of the Software.
29
- c. Remove, alter, or obscure any proprietary notices, labels, or marks
30
- on the Software.
31
- d. Use the Software in any way that violates applicable laws.
32
- e. Share your license key with unauthorized parties.
33
- f. Use the Software after your license has expired without renewal.
34
-
35
- 4. LICENSE TIERS
36
-
37
- - Standard: Up to 1 production domain, core features only.
38
- - Professional: Up to 3 production domains, full feature set.
39
- - Enterprise: Unlimited domains, white-label rights, priority support.
40
-
41
- 5. EVALUATION LICENSE
42
-
43
- A free evaluation license may be provided for testing purposes.
44
- Evaluation licenses include a visible watermark and may not be used
45
- in production environments.
46
-
47
- 6. INTELLECTUAL PROPERTY
48
-
49
- The Software is the intellectual property of TapeDelta Technologies. This
50
- license does not grant you ownership of the Software. All rights not
51
- expressly granted are reserved. The Software's underlying algorithms,
52
- data structures, rendering pipeline, license-enforcement subsystem,
53
- and DeltaDSL interpreter sandbox are protected by copyright laws,
54
- international copyright treaties (including the Berne Convention),
55
- and applicable trade-secret laws.
56
-
57
- 7. WARRANTY DISCLAIMER
58
-
59
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
60
- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
61
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
62
-
63
- 8. LIMITATION OF LIABILITY
64
-
65
- IN NO EVENT SHALL TapeDelta Technologies BE LIABLE FOR ANY INDIRECT, INCIDENTAL,
66
- SPECIAL, CONSEQUENTIAL, OR PUNITIVE DAMAGES ARISING OUT OF OR RELATED TO
67
- YOUR USE OF THE SOFTWARE.
68
-
69
- 9. TERMINATION
70
-
71
- This license is effective until terminated. It will terminate automatically
72
- if you fail to comply with any term of this agreement or if your license
73
- key expires without renewal. Upon termination, you must destroy all copies
74
- of the Software.
75
-
76
- 10. GOVERNING LAW
77
-
78
- This agreement shall be governed by and construed in accordance with the
79
- laws of the Socialist Republic of Vietnam. Any dispute arising out of
80
- or in connection with this agreement shall be subject to the exclusive
81
- jurisdiction of the competent courts of Vietnam. The United Nations
82
- Convention on Contracts for the International Sale of Goods (CISG)
83
- shall not apply.
84
-
85
- 11. CONTACT
86
-
87
- For licensing inquiries: support@mrd-indicators.com
88
- For technical support: support@mrd-indicators.com
89
- Website: https://app.tapedelta.com
90
-
91
- ---
92
-
93
- By using this Software, you acknowledge that you have read this agreement,
94
- understand it, and agree to be bound by its terms and conditions.
122
+ This license is governed by the laws of the Socialist Republic of Vietnam.
123
+ Disputes are subject to the exclusive jurisdiction of the competent courts
124
+ of Vietnam. The United Nations Convention on Contracts for the
125
+ International Sale of Goods does not apply.
126
+
127
+ 12. CONTACT
128
+
129
+ Licensing and support: support@tapedelta.com
130
+ Website: https://tapedelta.com