openalgo-charts 1.0.11 → 1.0.12

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 CHANGED
@@ -60,14 +60,14 @@ Import only what you use. Each tier is a separate bundle that registers into the
60
60
 
61
61
  | Import | Contents | Brotli |
62
62
  |---|---|---|
63
- | `openalgo-charts` | Engine, 13 chart types, panes & scales, primitives, registries, chart state, trading overlay, OpenAlgo feeds | 32.7 KB |
63
+ | `openalgo-charts` | Engine, 13 chart types, panes & scales, primitives, registries, chart state, trading overlay, OpenAlgo feeds | 34.6 KB |
64
64
  | `openalgo-charts/indicators` | 18 built-in indicators + the Tier-2 (external-data) contract | 4.5 KB |
65
65
  | `openalgo-charts/draw` | 34 drawing tools + a headless drawing controller | 8.3 KB |
66
66
  | `openalgo-charts/transform` | Heikin Ashi, Renko, Range bars, Line Break, Point & Figure, Kagi | 2.7 KB |
67
- | `openalgo-charts/profile` | Volume Profile, Market Profile (TPO), Footprint, order flow | 5.5 KB |
67
+ | `openalgo-charts/profile` | Volume Profile, Market Profile (TPO), Footprint, order flow | 10.1 KB |
68
68
  | `openalgo-charts/trade` | Order / position / bracket tools + DOM ladder | 6.6 KB |
69
69
 
70
- Everything together is **58 KB Brotli**.
70
+ Everything together is **66.7 KB Brotli**.
71
71
 
72
72
  ## What's built
73
73
 
@@ -189,7 +189,10 @@ declare class DataLayer {
189
189
  /** Register a new series; returns its id. */
190
190
  createSeries(): SeriesId;
191
191
  removeSeries(id: SeriesId): void;
192
- /** Bulk-load (full replace) one series' data, then re-merge the time axis. */
192
+ /**
193
+ * Bulk-load (full replace) one series' data, then re-merge the time axis.
194
+ * Input is sorted and de-duplicated by time (see {@link sortedUniqueByTime}).
195
+ */
193
196
  setSeriesData(id: SeriesId, bars: readonly Bar[]): void;
194
197
  /**
195
198
  * Upsert bars into a series by time (used for history paging / backfill /
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /** Library version string. Matches package.json (published npm release). */
2
- declare const VERSION = "1.0.8";
2
+ declare const VERSION = "1.0.12";
3
3
  /** Returns the current library version. */
4
4
  declare function version(): string;
5
5
 
@@ -312,7 +312,10 @@ declare class DataLayer {
312
312
  /** Register a new series; returns its id. */
313
313
  createSeries(): SeriesId;
314
314
  removeSeries(id: SeriesId): void;
315
- /** Bulk-load (full replace) one series' data, then re-merge the time axis. */
315
+ /**
316
+ * Bulk-load (full replace) one series' data, then re-merge the time axis.
317
+ * Input is sorted and de-duplicated by time (see {@link sortedUniqueByTime}).
318
+ */
316
319
  setSeriesData(id: SeriesId, bars: readonly Bar[]): void;
317
320
  /**
318
321
  * Upsert bars into a series by time (used for history paging / backfill /