@tradecanvas/core 2.8.1 → 2.9.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/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +819 -791
- package/dist/index.js.map +1 -1
- package/dist/trading/DepthOverlay.d.ts +3 -2
- package/dist/trading/DepthOverlay.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -8,9 +8,10 @@ export interface DepthBar {
|
|
|
8
8
|
* The bars of a book, each side nearest the market first: a level's own size
|
|
9
9
|
* (`'level'`) or its size plus every level nearer the market (`'cumulative'`).
|
|
10
10
|
* Levels that are not numbers or rest no size are left out; the order a feed
|
|
11
|
-
* lists them in does not matter. `
|
|
11
|
+
* lists them in does not matter. With a `rowSize` (in price), the levels are
|
|
12
|
+
* added up into rows that far apart first. `max` is the longest bar, 0 with none.
|
|
12
13
|
*/
|
|
13
|
-
export declare function depthBars(depth: DepthData, mode?: 'cumulative' | 'level'): {
|
|
14
|
+
export declare function depthBars(depth: DepthData, mode?: 'cumulative' | 'level', rowSize?: number): {
|
|
14
15
|
bids: DepthBar[];
|
|
15
16
|
asks: DepthBar[];
|
|
16
17
|
max: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepthOverlay.d.ts","sourceRoot":"","sources":["../../src/trading/DepthOverlay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAShG,yDAAyD;AACzD,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;
|
|
1
|
+
{"version":3,"file":"DepthOverlay.d.ts","sourceRoot":"","sources":["../../src/trading/DepthOverlay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,KAAK,EAAE,a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
|
"type": "module",
|
|
5
5
|
"description": "The rendering engine of @tradecanvas/chart, the open-source trading chart library: viewport, Canvas 2D and WebGL renderers, indicators, drawing tools.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"README.md"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@tradecanvas/commons": "2.
|
|
47
|
+
"@tradecanvas/commons": "2.9.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"jsdom": "^25.0.1",
|