kline-orderbook-chart 2.1.0 → 2.2.1
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 +88 -2
- package/LICENSE +126 -90
- package/README.md +128 -599
- package/dist/chart-engine.mjs +469 -44
- package/dist/chart_engine.js +1 -1
- package/dist/chart_engine_bg.wasm +0 -0
- package/dist/index.d.ts +585 -149
- package/dist/ingestWorker.js +1 -1
- package/dist/mboWorker.js +14 -0
- package/dist/panelWorker.js +363 -5
- package/dist/tapeScriptWorker.js +19 -0
- package/dist/tickWorker.js +453 -34
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,92 @@ This project follows [Semantic Versioning](https://semver.org/).
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## 2.2.1 — README screenshots
|
|
9
|
+
|
|
10
|
+
- README screenshots replaced with current tick heatmap captures. No code changes.
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## 2.2.0 — Complete types, license handling, setup fixes
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- RSI computes from the candles again: Wilder's RSI with an EMA 9 and a WMA 45
|
|
19
|
+
overlay, overbought / oversold zones at 80–90 and 10–20. `enableRsi()` no
|
|
20
|
+
longer needs a supplied state. Settings: `setRsiPeriod`, `setRsiShowWma`,
|
|
21
|
+
`setRsiShowEma`, `setRsiLineColor`, `setRsiLineWidth`.
|
|
22
|
+
- Custom indicators (`addIndicator`) are included in the Professional plan.
|
|
23
|
+
- Desktop and mobile license keys (`platform: 'desktop'` / `'mobile'`).
|
|
24
|
+
`chart.license` reports `platform`, `grace`, `graceEndsAt`, `warning`.
|
|
25
|
+
|
|
26
|
+
### Removed from the supported API
|
|
27
|
+
|
|
28
|
+
- Pullback Signals (`enableMrdPullback`, `setMrdPullbackStateJson` and related
|
|
29
|
+
methods) and the RSI state methods (`setRsiStateJson`, `applyRsiTickJson`,
|
|
30
|
+
`clearRsiState`, `isRsiStateDriven`). They are not declared in `index.d.ts`
|
|
31
|
+
and may change or disappear in any release.
|
|
32
|
+
|
|
33
|
+
### Changed
|
|
34
|
+
|
|
35
|
+
- `createChartBridge` no longer rejects because of the license. An invalid
|
|
36
|
+
key shows a notice on the canvas and logs one warning; read
|
|
37
|
+
`chart.license` for the state. Code that caught the rejection to detect an
|
|
38
|
+
expired trial should check `chart.license.expired` instead.
|
|
39
|
+
- An expired paid key keeps every plan feature for 7 days, with a "Renew
|
|
40
|
+
license" badge, then runs the free tier with a "License expired" badge. In
|
|
41
|
+
2.1.0 an expired key replaced the chart with a notice. A trial still ends
|
|
42
|
+
on its expiry date.
|
|
43
|
+
- Keys issued from 2026-12-05 are bound to a platform: a web key does not
|
|
44
|
+
run inside a desktop or mobile app (Electron, Tauri, Capacitor, Cordova,
|
|
45
|
+
React Native, `file://`), and a desktop or mobile key does not run on a
|
|
46
|
+
website. Both show "License invalid" with the reason in the console. Keys
|
|
47
|
+
issued earlier keep working as in 2.1 until they expire; renewals are issued
|
|
48
|
+
per platform at no extra cost.
|
|
49
|
+
- A `licenseKey` that is not a signed key (for example `'trial'` or a
|
|
50
|
+
placeholder) now runs the free tier with a console notice. In 2.1.0 it
|
|
51
|
+
blocked the chart with "License invalid". Trial keys are signed keys issued
|
|
52
|
+
by Tape Delta.
|
|
53
|
+
- The local trial timer is removed, so the library no longer writes cookies,
|
|
54
|
+
`localStorage` or IndexedDB entries.
|
|
55
|
+
|
|
56
|
+
### Fixed
|
|
57
|
+
|
|
58
|
+
- Candles loaded with `setKlines` before `setCandleInterval` were laid out
|
|
59
|
+
on a default interval and could fall outside the view. The interval is now
|
|
60
|
+
taken from the timestamps until `setCandleInterval` is called.
|
|
61
|
+
- `addMarker` returns the marker id that `removeMarker` and `selectMarker`
|
|
62
|
+
take. It returned `undefined`.
|
|
63
|
+
- `setCrosshairStyle` accepts `'dashed'`, `'solid'` and `'dotted'` as well as
|
|
64
|
+
`0`, `1`, `2`.
|
|
65
|
+
- Color setters accept three-digit hex (`#fff`).
|
|
66
|
+
- License expiry is read from `exp` as well as `e`, matching the engine.
|
|
67
|
+
- The package contains every worker file the bundle loads.
|
|
68
|
+
- When a bundler serves HTML instead of the engine file, the error names the
|
|
69
|
+
fix (Vite `optimizeDeps.exclude`). The non-streaming fallback requested the
|
|
70
|
+
engine file from a wrong path.
|
|
71
|
+
|
|
72
|
+
### Types and documentation
|
|
73
|
+
|
|
74
|
+
- `index.d.ts` declares the complete supported API and is checked against the
|
|
75
|
+
bundle on every release. Corrected declarations from 2.1.0:
|
|
76
|
+
- `setKlines(timestamps, open, high, low, close, volume)` takes six arrays.
|
|
77
|
+
- `setHeatmap(matrix, rows, cols, xStart, xStep, yStart, yStep)`; the
|
|
78
|
+
matrix is row-major with row 0 at the lowest price.
|
|
79
|
+
- `enableVolume()` and `enableRsi()` take no arguments; each indicator has
|
|
80
|
+
`disableX()` and `isXEnabled()`.
|
|
81
|
+
- `enableHeatmap` was declared but never existed; it is removed.
|
|
82
|
+
- Custom indicator ids are numbers.
|
|
83
|
+
TypeScript code written against the incorrect 2.1.0 declarations may need
|
|
84
|
+
these corrections; runtime behavior of those methods is unchanged.
|
|
85
|
+
- Methods not declared in `index.d.ts` are internal.
|
|
86
|
+
- `hasPremiumCompute`, listed in the 2.0.0 notes, was never available on the
|
|
87
|
+
chart object and is not part of the API.
|
|
88
|
+
- Documentation rewritten against the shipped API, with an API reference
|
|
89
|
+
generated from `index.d.ts`:
|
|
90
|
+
https://tapedelta.com/docs/charting-library/api-reference
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
8
94
|
## 2.1.0 — GPU heatmap performance
|
|
9
95
|
|
|
10
96
|
### Performance
|
|
@@ -179,7 +265,7 @@ us about a licensed build.
|
|
|
179
265
|
### Updates
|
|
180
266
|
|
|
181
267
|
- README now links to the live in-browser demos at
|
|
182
|
-
[
|
|
268
|
+
[tapedelta.com/examples](https://tapedelta.com/examples).
|
|
183
269
|
|
|
184
270
|
---
|
|
185
271
|
|
|
@@ -406,7 +492,7 @@ If you have a valid `0.x` license key, **it will not validate against
|
|
|
406
492
|
|
|
407
493
|
1. `npm uninstall kline-orderbook-chart`
|
|
408
494
|
2. `npm install kline-orderbook-chart@1.0.0`
|
|
409
|
-
3. Email <support@
|
|
495
|
+
3. Email <support@tapedelta.com> with your previous license key for
|
|
410
496
|
a free replacement Ed25519 token (same plan, same expiry).
|
|
411
497
|
4. Update any `generateLicenseKey` calls — there should be none in
|
|
412
498
|
production code; they were only ever used during evaluation.
|
package/LICENSE
CHANGED
|
@@ -1,94 +1,130 @@
|
|
|
1
|
-
|
|
1
|
+
KLINE-ORDERBOOK-CHART — COMMERCIAL SOFTWARE LICENSE
|
|
2
2
|
|
|
3
3
|
Copyright (c) 2025-2026 TapeDelta Technologies. All rights reserved.
|
|
4
4
|
|
|
5
|
-
This
|
|
6
|
-
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|