@orangecharts/wrun-chart-host 0.8.0 → 0.10.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/README.md +3 -1
- package/dist/constants/feature-flags.constants.d.ts +9 -0
- package/dist/constants/feature-flags.constants.js +86 -16
- package/dist/constants/marketCapabilities.constants.d.ts +14 -9
- package/dist/constants/marketCapabilities.constants.js +36 -13
- package/dist/constants/opra-compliance.constants.d.ts +15 -0
- package/dist/constants/opra-compliance.constants.js +15 -0
- package/dist/constants/option-venues.constants.d.ts +11 -6
- package/dist/constants/option-venues.constants.js +5 -2
- package/dist/constants/scriptEditor/builtin-script-snippets.d.ts +26 -0
- package/dist/constants/scriptEditor/builtin-script-snippets.js +6 -0
- package/dist/constants/scriptEditor/technicalIndicatorScriptKeys.constants.d.ts +15 -0
- package/dist/constants/scriptEditor/technicalIndicatorScriptKeys.constants.js +17 -0
- package/dist/constants/venue-presets.constants.d.ts +20 -20
- package/dist/constants/venue-presets.constants.js +24 -26
- package/dist/host-env.d.ts +39 -9
- package/dist/host-env.js +6 -0
- package/dist/host-ports.types.d.ts +108 -18
- package/dist/index.d.ts +14 -0
- package/dist/index.js +14 -0
- package/dist/interfaces/kscript-diagnostics.interface.d.ts +6 -0
- package/dist/interfaces/opra-realtime.interface.d.ts +13 -11
- package/dist/interfaces/opra-realtime.interface.js +10 -10
- package/dist/interfaces/replay.interface.d.ts +8 -0
- package/dist/interfaces/wrun-runtime.interface.d.ts +52 -15
- package/dist/kscript-data/controls/live-trades-merge.util.d.ts +94 -14
- package/dist/kscript-data/controls/live-trades-merge.util.js +132 -22
- package/dist/kscript-data/controls/live-trades-order-gate.util.d.ts +56 -0
- package/dist/kscript-data/controls/live-trades-order-gate.util.js +107 -0
- package/dist/market-data/billing.interface.d.ts +227 -42
- package/dist/market-data/billing.interface.js +60 -12
- package/dist/market-data/venue.d.ts +88 -6
- package/dist/market-data/venues/cme.contract.copy.json +66 -0
- package/dist/market-data/venues/cme.d.ts +126 -0
- package/dist/market-data/venues/cme.js +133 -0
- package/dist/market-data/venues/index.d.ts +165 -8
- package/dist/market-data/venues/index.js +48 -6
- package/dist/market-data/venues/opra.contract.copy.json +5 -3
- package/dist/market-data/venues/opra.d.ts +3 -3
- package/dist/market-data/venues/opra.js +5 -4
- package/dist/replay/replayLadder.js +3 -1
- package/dist/settings-templates/index.js +7 -3
- package/dist/settings-templates/indicator-fields.d.ts +5 -4
- package/dist/settings-templates/indicator-fields.js +45 -6
- package/dist/settings-templates/tool-rules.d.ts +27 -17
- package/dist/settings-templates/tool-rules.js +27 -11
- package/dist/settings-templates/tool-tables.generated.js +91 -31
- package/dist/utility/chart/book-live-bucket.util.d.ts +15 -0
- package/dist/utility/chart/book-live-bucket.util.js +47 -0
- package/dist/utility/chart/crypto-index.leaf.d.ts +2 -2
- package/dist/utility/chart/crypto-index.leaf.js +2 -2
- package/dist/utility/chart/index-mode-admission.util.js +24 -3
- package/dist/utility/chart/index-mode.util.d.ts +5 -2
- package/dist/utility/chart/index-mode.util.js +23 -13
- package/dist/utility/chart/kscript-drawing-safe-area.util.d.ts +35 -11
- package/dist/utility/chart/kscript-drawing-safe-area.util.js +145 -35
- package/dist/utility/chart/kscript-live-coalesce.util.d.ts +7 -2
- package/dist/utility/chart/kscript-live-coalesce.util.js +9 -3
- package/dist/utility/chart/kscript-provenance-keys.util.js +6 -0
- package/dist/utility/chart/kscript-standin-identity.leaf.d.ts +3 -1
- package/dist/utility/chart/kscript-titancharts-render-keys.constants.d.ts +32 -2
- package/dist/utility/chart/kscript-titancharts-render-keys.constants.js +45 -0
- package/dist/utility/chart/kscript-venue-policy.util.d.ts +53 -27
- package/dist/utility/chart/kscript-venue-policy.util.js +74 -32
- package/dist/utility/chart/market-session-schedule.util.d.ts +10 -0
- package/dist/utility/chart/market-session-schedule.util.js +16 -0
- package/dist/utility/chart/marketKind.util.d.ts +12 -10
- package/dist/utility/chart/marketKind.util.js +17 -7
- package/dist/utility/chart/om-panel-push-style.util.d.ts +7 -7
- package/dist/utility/chart/om-panel-push-style.util.js +17 -15
- package/dist/utility/chart/om-panel.util.js +6 -6
- package/dist/utility/chart/opra-read-access.leaf.d.ts +5 -3
- package/dist/utility/chart/opra-read-access.leaf.js +5 -3
- package/dist/utility/chart/profile-block-size.util.d.ts +16 -0
- package/dist/utility/chart/profile-block-size.util.js +7 -0
- package/dist/utility/chart/quote-perp.leaf.d.ts +17 -0
- package/dist/utility/chart/quote-perp.leaf.js +20 -0
- package/dist/utility/chart/rth-session.util.d.ts +3 -2
- package/dist/utility/chart/rth-session.util.js +2 -1
- package/dist/utility/chart/window-geometry.leaf.d.ts +8 -0
- package/dist/utility/chart/window-geometry.leaf.js +22 -6
- package/dist/utility/chart/wrun-run-result.util.d.ts +17 -0
- package/dist/utility/chart/wrun-run-result.util.js +145 -7
- package/dist/utility/common/transformations.util.d.ts +7 -0
- package/dist/utility/common/transformations.util.js +11 -0
- package/dist/utility/options/option-bar-anchor.util.d.ts +145 -0
- package/dist/utility/options/option-bar-anchor.util.js +340 -0
- package/dist/utility/options/option-venue.util.d.ts +21 -3
- package/dist/utility/options/option-venue.util.js +30 -3
- package/dist/utility/scriptEditor/wrun-runtime-diagnostics.leaf.js +2 -0
- package/dist/utility/wrun/derived-roots.util.d.ts +213 -0
- package/dist/utility/wrun/derived-roots.util.js +471 -0
- package/dist/utility/wrun/run-schedule/wrun-chart-gate-reader.util.d.ts +41 -6
- package/dist/utility/wrun/run-schedule/wrun-chart-gate-reader.util.js +89 -19
- package/dist/utility/wrun/run-schedule/wrun-gate-reader-warm.util.d.ts +9 -4
- package/dist/utility/wrun/run-schedule/wrun-gate-reader-warm.util.js +47 -6
- package/dist/utility/wrun/run-schedule/wrun-late-reads.util.d.ts +5 -3
- package/dist/utility/wrun/run-schedule/wrun-late-reads.util.js +6 -4
- package/dist/utility/wrun/run-schedule/wrun-prefix-feeds.util.d.ts +2 -2
- package/dist/utility/wrun/run-schedule/wrun-prefix-feeds.util.js +5 -1
- package/dist/utility/wrun/sources/lanes/option_daily.js +5 -2
- package/dist/utility/wrun/sources/lanes/options_flow.js +5 -2
- package/dist/utility/wrun/sources/opra-option-lanes.util.d.ts +64 -19
- package/dist/utility/wrun/sources/opra-option-lanes.util.js +105 -35
- package/dist/utility/wrun/sources/row-lane-registry.js +3 -2
- package/dist/utility/wrun/sources/row-lanes/option_contract_flow.js +2 -1
- package/dist/utility/wrun/sources/row-lanes/option_contract_state.d.ts +9 -3
- package/dist/utility/wrun/sources/row-lanes/option_contract_state.js +15 -6
- package/dist/utility/wrun/sources/row-lanes/option_prints.d.ts +14 -0
- package/dist/utility/wrun/sources/row-lanes/option_prints.js +82 -13
- package/dist/utility/wrun/sources/row-lanes/option_strike_flow.js +17 -4
- package/dist/utility/wrun/sources/row-lanes/option_strikes.d.ts +55 -8
- package/dist/utility/wrun/sources/row-lanes/option_strikes.js +95 -14
- package/dist/utility/wrun/sources/row-lanes/option_surface.d.ts +5 -2
- package/dist/utility/wrun/sources/row-lanes/option_surface.js +7 -3
- package/dist/utility/wrun/sources/wrun-poll-lane.types.d.ts +19 -0
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.d.ts +35 -14
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.js +70 -20
- package/dist/utility/wrun/sources/wrun-row-lane-add-memo.util.d.ts +64 -0
- package/dist/utility/wrun/sources/wrun-row-lane-add-memo.util.js +89 -0
- package/dist/utility/wrun/sources/wrun-row-lane-first-paint.util.d.ts +45 -1
- package/dist/utility/wrun/sources/wrun-row-lane-first-paint.util.js +114 -6
- package/dist/utility/wrun/sources/wrun-row-lane.types.d.ts +56 -5
- package/dist/utility/wrun/sources/wrun-row-lanes.util.d.ts +224 -26
- package/dist/utility/wrun/sources/wrun-row-lanes.util.js +822 -58
- package/dist/utility/wrun/wrun-batched-marks.util.d.ts +16 -3
- package/dist/utility/wrun/wrun-batched-marks.util.js +30 -19
- package/dist/utility/wrun/wrun-batched-readout.util.d.ts +37 -9
- package/dist/utility/wrun/wrun-batched-readout.util.js +61 -15
- package/dist/utility/wrun/wrun-builtin-twin.util.d.ts +12 -0
- package/dist/utility/wrun/wrun-builtin-twin.util.js +21 -0
- package/dist/utility/wrun/wrun-canvas-readout.util.d.ts +4 -0
- package/dist/utility/wrun/wrun-cell-capacity.leaf.d.ts +66 -0
- package/dist/utility/wrun/wrun-cell-capacity.leaf.js +86 -0
- package/dist/utility/wrun/wrun-chart-market-facts.util.d.ts +192 -13
- package/dist/utility/wrun/wrun-chart-market-facts.util.js +437 -55
- package/dist/utility/wrun/wrun-color-facts.util.d.ts +19 -9
- package/dist/utility/wrun/wrun-color-facts.util.js +24 -14
- package/dist/utility/wrun/wrun-color-settings.util.d.ts +15 -4
- package/dist/utility/wrun/wrun-color-settings.util.js +31 -12
- package/dist/utility/wrun/wrun-dollar-unit-port.leaf.d.ts +17 -0
- package/dist/utility/wrun/wrun-dollar-unit-port.leaf.js +9 -0
- package/dist/utility/wrun/wrun-download-meter.util.d.ts +107 -0
- package/dist/utility/wrun/wrun-download-meter.util.js +134 -0
- package/dist/utility/wrun/wrun-download-plan.util.d.ts +99 -0
- package/dist/utility/wrun/wrun-download-plan.util.js +118 -0
- package/dist/utility/wrun/wrun-draft-legend-note.util.d.ts +11 -3
- package/dist/utility/wrun/wrun-draft-legend-note.util.js +26 -4
- package/dist/utility/wrun/wrun-draft-overlay.util.d.ts +6 -1
- package/dist/utility/wrun/wrun-draft-overlay.util.js +23 -3
- package/dist/utility/wrun/wrun-frames.d.ts +27 -6
- package/dist/utility/wrun/wrun-frames.js +78 -15
- package/dist/utility/wrun/wrun-hosted-wire-caps.d.ts +2 -2
- package/dist/utility/wrun/wrun-hosted-wire-caps.js +7 -0
- package/dist/utility/wrun/wrun-hosted-wire.util.d.ts +7 -1
- package/dist/utility/wrun/wrun-hosted-wire.util.js +12 -2
- package/dist/utility/wrun/wrun-hud-looks.util.d.ts +51 -21
- package/dist/utility/wrun/wrun-hud-looks.util.js +74 -28
- package/dist/utility/wrun/wrun-latest-snapshot.d.ts +11 -0
- package/dist/utility/wrun/wrun-lifecycle-runtime.util.d.ts +8 -6
- package/dist/utility/wrun/wrun-lifecycle-runtime.util.js +8 -6
- package/dist/utility/wrun/wrun-lifecycle.contract.d.ts +4 -2
- package/dist/utility/wrun/wrun-live-intake.util.d.ts +19 -9
- package/dist/utility/wrun/wrun-live-intake.util.js +213 -45
- package/dist/utility/wrun/wrun-live-tick.util.d.ts +4 -0
- package/dist/utility/wrun/wrun-live-tick.util.js +246 -49
- package/dist/utility/wrun/wrun-market-size-contract-carry.leaf.d.ts +53 -0
- package/dist/utility/wrun/wrun-market-size-contract-carry.leaf.js +162 -0
- package/dist/utility/wrun/wrun-market-size-defaults.leaf.d.ts +205 -48
- package/dist/utility/wrun/wrun-market-size-defaults.leaf.js +277 -34
- package/dist/utility/wrun/wrun-market-size-defaults.util.d.ts +51 -7
- package/dist/utility/wrun/wrun-market-size-defaults.util.js +340 -56
- package/dist/utility/wrun/wrun-opra-lane.util.d.ts +17 -4
- package/dist/utility/wrun/wrun-opra-lane.util.js +6 -4
- package/dist/utility/wrun/wrun-option-prints.util.d.ts +41 -2
- package/dist/utility/wrun/wrun-option-prints.util.js +80 -13
- package/dist/utility/wrun/wrun-option-strike-flow-forecast.util.d.ts +31 -0
- package/dist/utility/wrun/wrun-option-strike-flow-forecast.util.js +119 -0
- package/dist/utility/wrun/wrun-option-strike-flow-lane.util.d.ts +26 -6
- package/dist/utility/wrun/wrun-option-strike-flow-lane.util.js +50 -11
- package/dist/utility/wrun/wrun-option-strike-flow.util.d.ts +109 -19
- package/dist/utility/wrun/wrun-option-strike-flow.util.js +222 -61
- package/dist/utility/wrun/wrun-option-views.util.d.ts +96 -18
- package/dist/utility/wrun/wrun-option-views.util.js +246 -51
- package/dist/utility/wrun/wrun-options-stop.util.d.ts +2 -1
- package/dist/utility/wrun/wrun-options-stop.util.js +3 -2
- package/dist/utility/wrun/wrun-output-style.util.d.ts +6 -2
- package/dist/utility/wrun/wrun-output-style.util.js +20 -2
- package/dist/utility/wrun/wrun-overlay-drivers.util.d.ts +20 -0
- package/dist/utility/wrun/wrun-overlay-lifecycle.lazy.d.ts +31 -14
- package/dist/utility/wrun/wrun-overlay-lifecycle.lazy.js +22 -0
- package/dist/utility/wrun/wrun-overlay-lifecycle.util.d.ts +10 -1
- package/dist/utility/wrun/wrun-overlay-lifecycle.util.js +52 -4
- package/dist/utility/wrun/wrun-overlay-recovery.util.d.ts +7 -0
- package/dist/utility/wrun/wrun-overlay-recovery.util.js +25 -1
- package/dist/utility/wrun/wrun-overlay-result.util.d.ts +7 -1
- package/dist/utility/wrun/wrun-overlay-result.util.js +2 -0
- package/dist/utility/wrun/wrun-overlay-run.util.d.ts +134 -37
- package/dist/utility/wrun/wrun-overlay-run.util.js +1118 -254
- package/dist/utility/wrun/wrun-pack-widths.leaf.d.ts +4 -4
- package/dist/utility/wrun/wrun-pack-widths.leaf.js +4 -4
- package/dist/utility/wrun/wrun-pack.util.d.ts +7 -3
- package/dist/utility/wrun/wrun-pack.util.js +20 -9
- package/dist/utility/wrun/wrun-pane-format.util.d.ts +2 -1
- package/dist/utility/wrun/wrun-pane-format.util.js +7 -3
- package/dist/utility/wrun/wrun-panel-mount.util.d.ts +9 -0
- package/dist/utility/wrun/wrun-panel-mount.util.js +63 -13
- package/dist/utility/wrun/wrun-panel-style.util.d.ts +37 -24
- package/dist/utility/wrun/wrun-panel-style.util.js +100 -29
- package/dist/utility/wrun/wrun-param-map.util.d.ts +15 -11
- package/dist/utility/wrun/wrun-param-map.util.js +13 -5
- package/dist/utility/wrun/wrun-param-values.util.d.ts +21 -3
- package/dist/utility/wrun/wrun-param-values.util.js +6 -0
- package/dist/utility/wrun/wrun-pin-spelling.util.js +12 -11
- package/dist/utility/wrun/wrun-prefix-lanes.util.js +2 -2
- package/dist/utility/wrun/wrun-refusal-surface.util.d.ts +50 -0
- package/dist/utility/wrun/wrun-refusal-surface.util.js +68 -0
- package/dist/utility/wrun/wrun-refusal.util.js +10 -1
- package/dist/utility/wrun/wrun-refused-latest.util.d.ts +10 -0
- package/dist/utility/wrun/wrun-refused-latest.util.js +12 -0
- package/dist/utility/wrun/wrun-row-source.d.ts +11 -0
- package/dist/utility/wrun/wrun-run-interval.util.d.ts +4 -2
- package/dist/utility/wrun/wrun-run-interval.util.js +9 -6
- package/dist/utility/wrun/wrun-script-inputs.util.d.ts +52 -1
- package/dist/utility/wrun/wrun-script-inputs.util.js +112 -4
- package/dist/utility/wrun/wrun-setting-words.util.d.ts +7 -3
- package/dist/utility/wrun/wrun-setting-words.util.js +13 -5
- package/dist/utility/wrun/wrun-socket-row-source.d.ts +27 -2
- package/dist/utility/wrun/wrun-socket-row-source.js +113 -8
- package/dist/utility/wrun/wrun-source-rows.util.d.ts +9 -1
- package/dist/utility/wrun/wrun-source-rows.util.js +108 -43
- package/dist/utility/wrun/wrun-style-words.util.js +6 -4
- package/dist/utility/wrun/wrun-table-chrome.util.d.ts +3 -2
- package/dist/utility/wrun/wrun-table-chrome.util.js +19 -11
- package/dist/utility/wrun/wrun-tape-per-order.util.d.ts +2 -0
- package/dist/utility/wrun/wrun-tape-per-order.util.js +26 -0
- package/dist/utility/wrun/wrun-tape-source.util.d.ts +126 -50
- package/dist/utility/wrun/wrun-tape-source.util.js +193 -68
- package/dist/utility/wrun/wrun-volume-profile-lane.util.d.ts +7 -5
- package/dist/utility/wrun/wrun-volume-profile-lane.util.js +8 -6
- package/dist/utils/replay/replay-buffer-math.d.ts +53 -2
- package/dist/utils/replay/replay-buffer-math.js +227 -20
- package/dist/workers/utils/volume-profile.worker.util.d.ts +4 -1
- package/dist/workers/utils/volume-profile.worker.util.js +5 -2
- package/dist/workers/wrun/wrun-abi-host.js +3 -2
- package/package.json +5 -5
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*
|
|
6
6
|
* - TOOL_DEFAULT_STYLE[type]: the registry defaultStyle, then the held extras below with their declared defaults;
|
|
7
7
|
* - TOOL_TEMPLATE_KEYS[type]: those keys, then the text of a type whose text is a label (the text rule, textRoleOf),
|
|
8
|
-
* then `visibleIntervalsMs` unless the type is interval-bound, never an instance key
|
|
9
|
-
* (`settingsKeysToStrip`).
|
|
8
|
+
* then `visibleIntervalsMs` unless the type is interval-bound, never an instance key (the type's own too,
|
|
9
|
+
* `instanceKeysByType`) or a cached compute key (`settingsKeysToStrip`).
|
|
10
10
|
*
|
|
11
11
|
* The text rule is the hosts' too: a host's text box reads it through toolTextRole (settings-templates/index.ts), so
|
|
12
12
|
* the box and the template tables give every type one answer.
|
|
@@ -22,6 +22,20 @@ export const TOOL_TEMPLATE_RULES = {
|
|
|
22
22
|
* a type whose text is a label (the text rule, `text`) carries it in its template.
|
|
23
23
|
*/
|
|
24
24
|
instanceKeys: ['isLocked', 'isHidden', 'zPriority', 'name', 'text'],
|
|
25
|
+
/**
|
|
26
|
+
* Values the engine computes for one drawing and writes into its settings, by type (titan's tool classes): a
|
|
27
|
+
* GhostFeed seeds its average high-low and variance from the candles of the symbol it is drawn on, in that market's
|
|
28
|
+
* price units, and skips the seed while the drawing holds an averageHL (ghostFeed.ts seedInputs). The registry lists
|
|
29
|
+
* them at 0, the engine's "not seeded yet", so a new drawing seeds its own. They are instance state like
|
|
30
|
+
* `instanceKeys`: no template carries or writes them, Save as default and the style memory keep neither (web
|
|
31
|
+
* src/store/tool-style-memory.ts keeps the default lane), and a template applied to a drawing leaves its own. Until
|
|
32
|
+
* 2026-10-25 they rode both lanes, so a GhostFeed drawn after one on BTC drew BTC's volatility on any symbol.
|
|
33
|
+
* tests/packages/wrun-chart-host/settings-templates/tool-tables.engine-reads.spec.ts fails on a key the engine writes
|
|
34
|
+
* that a lane carries unless this list names it or the spec waives it as a pick the user made.
|
|
35
|
+
*/
|
|
36
|
+
instanceKeysByType: {
|
|
37
|
+
GhostFeed: ['averageHL', 'variance'],
|
|
38
|
+
},
|
|
25
39
|
/**
|
|
26
40
|
* The text rule: which drawing types hold a free text (`key`), and what that text is. It is the one rule for every
|
|
27
41
|
* surface: the template tables (the generator) and the settings panel's text box (web
|
|
@@ -54,24 +68,26 @@ export const TOOL_TEMPLATE_RULES = {
|
|
|
54
68
|
intervalBoundTypes: ['GhostFeed', 'BarPattern', 'GannSquareFixed'],
|
|
55
69
|
/**
|
|
56
70
|
* Keys the engine reads but the registry defaultStyle does not list (web src/components/objects/tool-prop-sections.ts
|
|
57
|
-
* HELD_EXTRA_FIELDS: the price label flag of a horizontal line or ray,
|
|
58
|
-
*
|
|
71
|
+
* HELD_EXTRA_FIELDS: the price label flag of a horizontal line or ray), each with the default the engine seeds
|
|
72
|
+
* (titan's tool classes), so a template, a seed and Save as default see every key. A key belongs in the registry:
|
|
73
|
+
* an extra stays here only while the registry cannot carry it as the editors show it (the price label flag is the
|
|
74
|
+
* `highlight` field under a per-type label). A position's line width and style moved into the registry with
|
|
75
|
+
* chart-schema 0.5.1, and the generator refuses an extra the registry lists.
|
|
59
76
|
*/
|
|
60
77
|
heldExtras: {
|
|
61
78
|
HorizontalLine: { highlight: true },
|
|
62
79
|
HorizontalRay: { highlight: true },
|
|
63
|
-
LongPosition: { lineWidth: 2, lineStyle: 'solid' },
|
|
64
|
-
ShortPosition: { lineWidth: 2, lineStyle: 'solid' },
|
|
65
80
|
},
|
|
66
81
|
/**
|
|
67
|
-
* Style keys Save as default never keeps
|
|
68
|
-
* placed drawing's geometry, and the position tools' financial inputs
|
|
69
|
-
* next drawing. A template still carries them: it is applied on purpose,
|
|
82
|
+
* Style keys Save as default never keeps, and so neither does web's style memory (src/store/tool-style-memory.ts
|
|
83
|
+
* keeps the default lane): `rotation` is one placed drawing's geometry, and the position tools' financial inputs
|
|
84
|
+
* would carry one account's numbers into the next drawing. A template still carries them: it is applied on purpose,
|
|
85
|
+
* onto one drawing.
|
|
70
86
|
*/
|
|
71
87
|
defaultExcludedKeys: ['rotation', 'accountSize', 'risk', 'riskDisplayMode', 'lotSize'],
|
|
72
88
|
/**
|
|
73
|
-
* Types whose Save as default keeps nothing
|
|
74
|
-
*
|
|
89
|
+
* Types whose Save as default keeps nothing, and so neither does web's style memory: an Image is placed by a dialog
|
|
90
|
+
* that owns its source and opacity at confirm time.
|
|
75
91
|
*/
|
|
76
92
|
defaultExcludedTypes: ['Image'],
|
|
77
93
|
};
|
|
@@ -9,15 +9,24 @@ export const TOOL_DEFAULT_STYLE = {
|
|
|
9
9
|
lineWidth: 2,
|
|
10
10
|
lineStyle: 'solid',
|
|
11
11
|
fillBackground: true,
|
|
12
|
+
fillColor: '#4DA3FF',
|
|
12
13
|
backgroundOpacity: 10,
|
|
13
14
|
showLabels: true,
|
|
14
15
|
},
|
|
15
|
-
AnchoredNote: {
|
|
16
|
+
AnchoredNote: {
|
|
17
|
+
fontColor: '#4DA3FF',
|
|
18
|
+
fontFamily: 'Poppins',
|
|
19
|
+
fontSize: 24,
|
|
20
|
+
fontStyle: 'normal',
|
|
21
|
+
textPosition: 'center',
|
|
22
|
+
color: '#4DA3FF',
|
|
23
|
+
},
|
|
16
24
|
AnchoredText: {
|
|
17
25
|
fontColor: '#4DA3FF',
|
|
18
26
|
fontFamily: 'Poppins',
|
|
19
27
|
fontSize: 24,
|
|
20
28
|
fontStyle: 'normal',
|
|
29
|
+
textPosition: 'center',
|
|
21
30
|
color: '#4DA3FF',
|
|
22
31
|
fillBackground: false,
|
|
23
32
|
fillColor: '#F7D774',
|
|
@@ -77,7 +86,14 @@ export const TOOL_DEFAULT_STYLE = {
|
|
|
77
86
|
ArrowMarker: { color: '#1E90FF80', lineWidth: 2, lineStyle: 'solid' },
|
|
78
87
|
BarPattern: { color: '#4DA3FF', patternMode: 'lineClose', transparency: 0, mirrored: false, flipped: false },
|
|
79
88
|
Burj: { color: '#FFBED3', highlight: false, lineWidth: 2 },
|
|
80
|
-
Callout: {
|
|
89
|
+
Callout: {
|
|
90
|
+
fontColor: '#4DA3FF',
|
|
91
|
+
fontFamily: 'Poppins',
|
|
92
|
+
fontSize: 24,
|
|
93
|
+
fontStyle: 'normal',
|
|
94
|
+
textPosition: 'center',
|
|
95
|
+
color: '#4DA3FF',
|
|
96
|
+
},
|
|
81
97
|
Circle: {
|
|
82
98
|
color: '#4DA3FF',
|
|
83
99
|
borderColor: '#4DA3FF',
|
|
@@ -102,26 +118,28 @@ export const TOOL_DEFAULT_STYLE = {
|
|
|
102
118
|
lineWidth: 2,
|
|
103
119
|
lineStyle: 'solid',
|
|
104
120
|
fillBackground: true,
|
|
121
|
+
fillColor: '#4DA3FF',
|
|
105
122
|
backgroundOpacity: 10,
|
|
106
123
|
showLabels: true,
|
|
107
124
|
},
|
|
108
|
-
DatePriceRange: { bullishColor: '#00C2A8', bearishColor: '#ff3232' },
|
|
109
|
-
DateRange: { color: '#00C2A8' },
|
|
110
|
-
DisjointChannel: {
|
|
111
|
-
Divergence: { bullishColor: '#60F09A', bearishColor: '#FF6E5F', highlight: false, lineWidth: 2 },
|
|
112
|
-
DoubleCurve: {
|
|
125
|
+
DatePriceRange: { bullishColor: '#00C2A8', bearishColor: '#ff3232', lineWidth: 2, lineStyle: 'solid' },
|
|
126
|
+
DateRange: { color: '#00C2A8', lineWidth: 2, lineStyle: 'solid' },
|
|
127
|
+
DisjointChannel: {
|
|
113
128
|
color: '#4DA3FF',
|
|
114
|
-
borderColor: '#4DA3FF',
|
|
115
129
|
lineWidth: 2,
|
|
116
130
|
lineStyle: 'solid',
|
|
117
131
|
fillBackground: true,
|
|
118
|
-
|
|
132
|
+
fillColor: '#4DA3FF',
|
|
133
|
+
backgroundOpacity: 10,
|
|
119
134
|
},
|
|
135
|
+
Divergence: { bullishColor: '#60F09A', bearishColor: '#FF6E5F', highlight: false, lineWidth: 2 },
|
|
136
|
+
DoubleCurve: { borderColor: '#4DA3FF', lineWidth: 2, lineStyle: 'solid' },
|
|
120
137
|
ElliottCorrection: {
|
|
121
138
|
color: '#4DA3FF',
|
|
122
139
|
lineWidth: 2,
|
|
123
140
|
lineStyle: 'solid',
|
|
124
141
|
fillBackground: false,
|
|
142
|
+
fillColor: '#4DA3FF',
|
|
125
143
|
backgroundOpacity: 10,
|
|
126
144
|
showLabels: true,
|
|
127
145
|
},
|
|
@@ -130,6 +148,7 @@ export const TOOL_DEFAULT_STYLE = {
|
|
|
130
148
|
lineWidth: 2,
|
|
131
149
|
lineStyle: 'solid',
|
|
132
150
|
fillBackground: false,
|
|
151
|
+
fillColor: '#4DA3FF',
|
|
133
152
|
backgroundOpacity: 10,
|
|
134
153
|
showLabels: true,
|
|
135
154
|
},
|
|
@@ -138,6 +157,7 @@ export const TOOL_DEFAULT_STYLE = {
|
|
|
138
157
|
lineWidth: 2,
|
|
139
158
|
lineStyle: 'solid',
|
|
140
159
|
fillBackground: false,
|
|
160
|
+
fillColor: '#4DA3FF',
|
|
141
161
|
backgroundOpacity: 10,
|
|
142
162
|
showLabels: true,
|
|
143
163
|
},
|
|
@@ -146,6 +166,7 @@ export const TOOL_DEFAULT_STYLE = {
|
|
|
146
166
|
lineWidth: 2,
|
|
147
167
|
lineStyle: 'solid',
|
|
148
168
|
fillBackground: false,
|
|
169
|
+
fillColor: '#4DA3FF',
|
|
149
170
|
backgroundOpacity: 10,
|
|
150
171
|
showLabels: true,
|
|
151
172
|
},
|
|
@@ -154,6 +175,7 @@ export const TOOL_DEFAULT_STYLE = {
|
|
|
154
175
|
lineWidth: 2,
|
|
155
176
|
lineStyle: 'solid',
|
|
156
177
|
fillBackground: false,
|
|
178
|
+
fillColor: '#4DA3FF',
|
|
157
179
|
backgroundOpacity: 10,
|
|
158
180
|
showLabels: true,
|
|
159
181
|
},
|
|
@@ -419,7 +441,14 @@ export const TOOL_DEFAULT_STYLE = {
|
|
|
419
441
|
},
|
|
420
442
|
FixedRangeVolumeProfile: {},
|
|
421
443
|
FlagMark: { color: '#4DA3FF' },
|
|
422
|
-
FlatTopBottom: {
|
|
444
|
+
FlatTopBottom: {
|
|
445
|
+
color: '#4DA3FF',
|
|
446
|
+
lineWidth: 2,
|
|
447
|
+
lineStyle: 'solid',
|
|
448
|
+
fillBackground: true,
|
|
449
|
+
fillColor: '#4DA3FF',
|
|
450
|
+
backgroundOpacity: 10,
|
|
451
|
+
},
|
|
423
452
|
Flow: { color: '#044391', highlight: false, lineWidth: 2 },
|
|
424
453
|
Fork: { color: '#5AA0FF', highlight: false, lineWidth: 2 },
|
|
425
454
|
GannBox: {
|
|
@@ -584,10 +613,11 @@ export const TOOL_DEFAULT_STYLE = {
|
|
|
584
613
|
lineWidth: 2,
|
|
585
614
|
lineStyle: 'solid',
|
|
586
615
|
fillBackground: true,
|
|
616
|
+
fillColor: '#4DA3FF',
|
|
587
617
|
backgroundOpacity: 10,
|
|
588
618
|
showLabels: true,
|
|
589
619
|
},
|
|
590
|
-
Highlighter: { color: 'rgba(242, 201, 76, 0.4)', lineWidth: 14, smoothing: 10 },
|
|
620
|
+
Highlighter: { color: 'rgba(242, 201, 76, 0.4)', lineStyle: 'solid', lineWidth: 14, smoothing: 10 },
|
|
591
621
|
HorizontalLine: {
|
|
592
622
|
color: '#4DA3FF',
|
|
593
623
|
fontColor: '#4DA3FF',
|
|
@@ -689,7 +719,14 @@ export const TOOL_DEFAULT_STYLE = {
|
|
|
689
719
|
],
|
|
690
720
|
},
|
|
691
721
|
Momentum: { color: '#00FF7F', highlight: true, lineWidth: 2 },
|
|
692
|
-
Note: {
|
|
722
|
+
Note: {
|
|
723
|
+
fontColor: '#4DA3FF',
|
|
724
|
+
fontFamily: 'Poppins',
|
|
725
|
+
fontSize: 24,
|
|
726
|
+
fontStyle: 'normal',
|
|
727
|
+
textPosition: 'center',
|
|
728
|
+
color: '#4DA3FF',
|
|
729
|
+
},
|
|
693
730
|
ParallelLine: {
|
|
694
731
|
color: '#4DA3FF',
|
|
695
732
|
fontColor: '#4DA3FF',
|
|
@@ -701,9 +738,10 @@ export const TOOL_DEFAULT_STYLE = {
|
|
|
701
738
|
fontWeight: 400,
|
|
702
739
|
fontStyle: 'normal',
|
|
703
740
|
fillBackground: true,
|
|
741
|
+
fillColor: '#4DA3FF26',
|
|
704
742
|
middleLine: true,
|
|
705
743
|
},
|
|
706
|
-
Path: { color: '#4DA3FF' },
|
|
744
|
+
Path: { color: '#4DA3FF', lineStyle: 'solid', lineWidth: 1.5 },
|
|
707
745
|
Pencil: { color: '#4DA3FF', lineStyle: 'solid', lineWidth: 2, smoothing: 10 },
|
|
708
746
|
Pitchfan: {
|
|
709
747
|
medianColor: '#F23645',
|
|
@@ -761,8 +799,8 @@ export const TOOL_DEFAULT_STYLE = {
|
|
|
761
799
|
stopColor: 'rgb(245, 39, 78)',
|
|
762
800
|
},
|
|
763
801
|
PriceLabel: { color: '#4DA3FF', fontColor: '#FFFFFF', fontSize: 12 },
|
|
764
|
-
PriceNote: { color: '#4DA3FF', fontColor: '#FFFFFF', fontSize: 12 },
|
|
765
|
-
PriceRange: { bullishColor: '#00C2A8', bearishColor: '#ff3232' },
|
|
802
|
+
PriceNote: { color: '#4DA3FF', fontColor: '#FFFFFF', fontSize: 12, lineWidth: 1.5, lineStyle: 'solid' },
|
|
803
|
+
PriceRange: { bullishColor: '#00C2A8', bearishColor: '#ff3232', lineWidth: 2, lineStyle: 'solid' },
|
|
766
804
|
Ray: {
|
|
767
805
|
color: '#4DA3FF',
|
|
768
806
|
fontColor: '#4DA3FF',
|
|
@@ -859,6 +897,7 @@ export const TOOL_DEFAULT_STYLE = {
|
|
|
859
897
|
fontFamily: 'Poppins',
|
|
860
898
|
fontSize: 24,
|
|
861
899
|
fontStyle: 'normal',
|
|
900
|
+
textPosition: 'center',
|
|
862
901
|
color: '#4DA3FF',
|
|
863
902
|
fillBackground: false,
|
|
864
903
|
fillColor: '#F7D774',
|
|
@@ -920,6 +959,7 @@ export const TOOL_DEFAULT_STYLE = {
|
|
|
920
959
|
lineWidth: 2,
|
|
921
960
|
lineStyle: 'solid',
|
|
922
961
|
fillBackground: true,
|
|
962
|
+
fillColor: '#4DA3FF',
|
|
923
963
|
backgroundOpacity: 10,
|
|
924
964
|
showLabels: true,
|
|
925
965
|
},
|
|
@@ -940,6 +980,7 @@ export const TOOL_DEFAULT_STYLE = {
|
|
|
940
980
|
lineWidth: 2,
|
|
941
981
|
lineStyle: 'solid',
|
|
942
982
|
fillBackground: true,
|
|
983
|
+
fillColor: '#4DA3FF',
|
|
943
984
|
backgroundOpacity: 10,
|
|
944
985
|
showLabels: true,
|
|
945
986
|
},
|
|
@@ -950,16 +991,18 @@ export const TOOL_TEMPLATE_KEYS = {
|
|
|
950
991
|
'lineWidth',
|
|
951
992
|
'lineStyle',
|
|
952
993
|
'fillBackground',
|
|
994
|
+
'fillColor',
|
|
953
995
|
'backgroundOpacity',
|
|
954
996
|
'showLabels',
|
|
955
997
|
'visibleIntervalsMs',
|
|
956
998
|
],
|
|
957
|
-
AnchoredNote: ['fontColor', 'fontFamily', 'fontSize', 'fontStyle', 'color', 'visibleIntervalsMs'],
|
|
999
|
+
AnchoredNote: ['fontColor', 'fontFamily', 'fontSize', 'fontStyle', 'textPosition', 'color', 'visibleIntervalsMs'],
|
|
958
1000
|
AnchoredText: [
|
|
959
1001
|
'fontColor',
|
|
960
1002
|
'fontFamily',
|
|
961
1003
|
'fontSize',
|
|
962
1004
|
'fontStyle',
|
|
1005
|
+
'textPosition',
|
|
963
1006
|
'color',
|
|
964
1007
|
'fillBackground',
|
|
965
1008
|
'fillColor',
|
|
@@ -1014,7 +1057,7 @@ export const TOOL_TEMPLATE_KEYS = {
|
|
|
1014
1057
|
ArrowMarker: ['color', 'lineWidth', 'lineStyle', 'visibleIntervalsMs'],
|
|
1015
1058
|
BarPattern: ['color', 'patternMode', 'transparency', 'mirrored', 'flipped'],
|
|
1016
1059
|
Burj: ['color', 'highlight', 'lineWidth', 'visibleIntervalsMs'],
|
|
1017
|
-
Callout: ['fontColor', 'fontFamily', 'fontSize', 'fontStyle', 'color', 'visibleIntervalsMs'],
|
|
1060
|
+
Callout: ['fontColor', 'fontFamily', 'fontSize', 'fontStyle', 'textPosition', 'color', 'visibleIntervalsMs'],
|
|
1018
1061
|
Circle: [
|
|
1019
1062
|
'color',
|
|
1020
1063
|
'borderColor',
|
|
@@ -1041,28 +1084,30 @@ export const TOOL_TEMPLATE_KEYS = {
|
|
|
1041
1084
|
'lineWidth',
|
|
1042
1085
|
'lineStyle',
|
|
1043
1086
|
'fillBackground',
|
|
1087
|
+
'fillColor',
|
|
1044
1088
|
'backgroundOpacity',
|
|
1045
1089
|
'showLabels',
|
|
1046
1090
|
'visibleIntervalsMs',
|
|
1047
1091
|
],
|
|
1048
|
-
DatePriceRange: ['bullishColor', 'bearishColor', 'visibleIntervalsMs'],
|
|
1049
|
-
DateRange: ['color', 'visibleIntervalsMs'],
|
|
1050
|
-
DisjointChannel: [
|
|
1051
|
-
Divergence: ['bullishColor', 'bearishColor', 'highlight', 'lineWidth', 'visibleIntervalsMs'],
|
|
1052
|
-
DoubleCurve: [
|
|
1092
|
+
DatePriceRange: ['bullishColor', 'bearishColor', 'lineWidth', 'lineStyle', 'visibleIntervalsMs'],
|
|
1093
|
+
DateRange: ['color', 'lineWidth', 'lineStyle', 'visibleIntervalsMs'],
|
|
1094
|
+
DisjointChannel: [
|
|
1053
1095
|
'color',
|
|
1054
|
-
'borderColor',
|
|
1055
1096
|
'lineWidth',
|
|
1056
1097
|
'lineStyle',
|
|
1057
1098
|
'fillBackground',
|
|
1099
|
+
'fillColor',
|
|
1058
1100
|
'backgroundOpacity',
|
|
1059
1101
|
'visibleIntervalsMs',
|
|
1060
1102
|
],
|
|
1103
|
+
Divergence: ['bullishColor', 'bearishColor', 'highlight', 'lineWidth', 'visibleIntervalsMs'],
|
|
1104
|
+
DoubleCurve: ['borderColor', 'lineWidth', 'lineStyle', 'visibleIntervalsMs'],
|
|
1061
1105
|
ElliottCorrection: [
|
|
1062
1106
|
'color',
|
|
1063
1107
|
'lineWidth',
|
|
1064
1108
|
'lineStyle',
|
|
1065
1109
|
'fillBackground',
|
|
1110
|
+
'fillColor',
|
|
1066
1111
|
'backgroundOpacity',
|
|
1067
1112
|
'showLabels',
|
|
1068
1113
|
'visibleIntervalsMs',
|
|
@@ -1072,6 +1117,7 @@ export const TOOL_TEMPLATE_KEYS = {
|
|
|
1072
1117
|
'lineWidth',
|
|
1073
1118
|
'lineStyle',
|
|
1074
1119
|
'fillBackground',
|
|
1120
|
+
'fillColor',
|
|
1075
1121
|
'backgroundOpacity',
|
|
1076
1122
|
'showLabels',
|
|
1077
1123
|
'visibleIntervalsMs',
|
|
@@ -1081,6 +1127,7 @@ export const TOOL_TEMPLATE_KEYS = {
|
|
|
1081
1127
|
'lineWidth',
|
|
1082
1128
|
'lineStyle',
|
|
1083
1129
|
'fillBackground',
|
|
1130
|
+
'fillColor',
|
|
1084
1131
|
'backgroundOpacity',
|
|
1085
1132
|
'showLabels',
|
|
1086
1133
|
'visibleIntervalsMs',
|
|
@@ -1090,6 +1137,7 @@ export const TOOL_TEMPLATE_KEYS = {
|
|
|
1090
1137
|
'lineWidth',
|
|
1091
1138
|
'lineStyle',
|
|
1092
1139
|
'fillBackground',
|
|
1140
|
+
'fillColor',
|
|
1093
1141
|
'backgroundOpacity',
|
|
1094
1142
|
'showLabels',
|
|
1095
1143
|
'visibleIntervalsMs',
|
|
@@ -1099,6 +1147,7 @@ export const TOOL_TEMPLATE_KEYS = {
|
|
|
1099
1147
|
'lineWidth',
|
|
1100
1148
|
'lineStyle',
|
|
1101
1149
|
'fillBackground',
|
|
1150
|
+
'fillColor',
|
|
1102
1151
|
'backgroundOpacity',
|
|
1103
1152
|
'showLabels',
|
|
1104
1153
|
'visibleIntervalsMs',
|
|
@@ -1277,7 +1326,15 @@ export const TOOL_TEMPLATE_KEYS = {
|
|
|
1277
1326
|
'levelLineStyle',
|
|
1278
1327
|
],
|
|
1279
1328
|
FlagMark: ['color', 'visibleIntervalsMs'],
|
|
1280
|
-
FlatTopBottom: [
|
|
1329
|
+
FlatTopBottom: [
|
|
1330
|
+
'color',
|
|
1331
|
+
'lineWidth',
|
|
1332
|
+
'lineStyle',
|
|
1333
|
+
'fillBackground',
|
|
1334
|
+
'fillColor',
|
|
1335
|
+
'backgroundOpacity',
|
|
1336
|
+
'visibleIntervalsMs',
|
|
1337
|
+
],
|
|
1281
1338
|
Flow: ['color', 'highlight', 'lineWidth', 'visibleIntervalsMs'],
|
|
1282
1339
|
Fork: ['color', 'highlight', 'lineWidth', 'visibleIntervalsMs'],
|
|
1283
1340
|
GannBox: [
|
|
@@ -1327,8 +1384,6 @@ export const TOOL_TEMPLATE_KEYS = {
|
|
|
1327
1384
|
],
|
|
1328
1385
|
GhostFeed: [
|
|
1329
1386
|
'followChartTheme',
|
|
1330
|
-
'averageHL',
|
|
1331
|
-
'variance',
|
|
1332
1387
|
'transparency',
|
|
1333
1388
|
'candleUpColor',
|
|
1334
1389
|
'candleDownColor',
|
|
@@ -1343,11 +1398,12 @@ export const TOOL_TEMPLATE_KEYS = {
|
|
|
1343
1398
|
'lineWidth',
|
|
1344
1399
|
'lineStyle',
|
|
1345
1400
|
'fillBackground',
|
|
1401
|
+
'fillColor',
|
|
1346
1402
|
'backgroundOpacity',
|
|
1347
1403
|
'showLabels',
|
|
1348
1404
|
'visibleIntervalsMs',
|
|
1349
1405
|
],
|
|
1350
|
-
Highlighter: ['color', 'lineWidth', 'smoothing', 'visibleIntervalsMs'],
|
|
1406
|
+
Highlighter: ['color', 'lineStyle', 'lineWidth', 'smoothing', 'visibleIntervalsMs'],
|
|
1351
1407
|
HorizontalLine: [
|
|
1352
1408
|
'color',
|
|
1353
1409
|
'fontColor',
|
|
@@ -1440,7 +1496,7 @@ export const TOOL_TEMPLATE_KEYS = {
|
|
|
1440
1496
|
'visibleIntervalsMs',
|
|
1441
1497
|
],
|
|
1442
1498
|
Momentum: ['color', 'highlight', 'lineWidth', 'visibleIntervalsMs'],
|
|
1443
|
-
Note: ['fontColor', 'fontFamily', 'fontSize', 'fontStyle', 'color', 'visibleIntervalsMs'],
|
|
1499
|
+
Note: ['fontColor', 'fontFamily', 'fontSize', 'fontStyle', 'textPosition', 'color', 'visibleIntervalsMs'],
|
|
1444
1500
|
ParallelLine: [
|
|
1445
1501
|
'color',
|
|
1446
1502
|
'fontColor',
|
|
@@ -1452,11 +1508,12 @@ export const TOOL_TEMPLATE_KEYS = {
|
|
|
1452
1508
|
'fontWeight',
|
|
1453
1509
|
'fontStyle',
|
|
1454
1510
|
'fillBackground',
|
|
1511
|
+
'fillColor',
|
|
1455
1512
|
'middleLine',
|
|
1456
1513
|
'text',
|
|
1457
1514
|
'visibleIntervalsMs',
|
|
1458
1515
|
],
|
|
1459
|
-
Path: ['color', 'visibleIntervalsMs'],
|
|
1516
|
+
Path: ['color', 'lineStyle', 'lineWidth', 'visibleIntervalsMs'],
|
|
1460
1517
|
Pencil: ['color', 'lineStyle', 'lineWidth', 'smoothing', 'visibleIntervalsMs'],
|
|
1461
1518
|
Pitchfan: [
|
|
1462
1519
|
'medianColor',
|
|
@@ -1493,8 +1550,8 @@ export const TOOL_TEMPLATE_KEYS = {
|
|
|
1493
1550
|
],
|
|
1494
1551
|
PositionForecast: ['color', 'lineWidth', 'lineStyle', 'profitColor', 'stopColor', 'visibleIntervalsMs'],
|
|
1495
1552
|
PriceLabel: ['color', 'fontColor', 'fontSize', 'visibleIntervalsMs'],
|
|
1496
|
-
PriceNote: ['color', 'fontColor', 'fontSize', 'text', 'visibleIntervalsMs'],
|
|
1497
|
-
PriceRange: ['bullishColor', 'bearishColor', 'visibleIntervalsMs'],
|
|
1553
|
+
PriceNote: ['color', 'fontColor', 'fontSize', 'lineWidth', 'lineStyle', 'text', 'visibleIntervalsMs'],
|
|
1554
|
+
PriceRange: ['bullishColor', 'bearishColor', 'lineWidth', 'lineStyle', 'visibleIntervalsMs'],
|
|
1498
1555
|
Ray: [
|
|
1499
1556
|
'color',
|
|
1500
1557
|
'fontColor',
|
|
@@ -1591,6 +1648,7 @@ export const TOOL_TEMPLATE_KEYS = {
|
|
|
1591
1648
|
'fontFamily',
|
|
1592
1649
|
'fontSize',
|
|
1593
1650
|
'fontStyle',
|
|
1651
|
+
'textPosition',
|
|
1594
1652
|
'color',
|
|
1595
1653
|
'fillBackground',
|
|
1596
1654
|
'fillColor',
|
|
@@ -1658,6 +1716,7 @@ export const TOOL_TEMPLATE_KEYS = {
|
|
|
1658
1716
|
'lineWidth',
|
|
1659
1717
|
'lineStyle',
|
|
1660
1718
|
'fillBackground',
|
|
1719
|
+
'fillColor',
|
|
1661
1720
|
'backgroundOpacity',
|
|
1662
1721
|
'showLabels',
|
|
1663
1722
|
'visibleIntervalsMs',
|
|
@@ -1681,6 +1740,7 @@ export const TOOL_TEMPLATE_KEYS = {
|
|
|
1681
1740
|
'lineWidth',
|
|
1682
1741
|
'lineStyle',
|
|
1683
1742
|
'fillBackground',
|
|
1743
|
+
'fillColor',
|
|
1684
1744
|
'backgroundOpacity',
|
|
1685
1745
|
'showLabels',
|
|
1686
1746
|
'visibleIntervalsMs',
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type LiveBucketVenue } from './live-bucket.util.js';
|
|
2
|
+
/**
|
|
3
|
+
* The lattice bar an END-stamped book frame closes, or null off the lattice (another venue, a
|
|
4
|
+
* coin-aggregated book that passes no venue, an interval the gateway does not roll): the stamp is
|
|
5
|
+
* read one millisecond early, so a stamp exactly on a boundary closes the bar before it whatever
|
|
6
|
+
* the width (45m bars open on the quarter hour, not only on whole hours). A weekly stamp keeps its
|
|
7
|
+
* own week, as in `roundObTimestamp`.
|
|
8
|
+
*/
|
|
9
|
+
export declare function cmeLatticeBookBucketMs(stampMs: number, intervalMs: number, venue: LiveBucketVenue | null | undefined): number | null;
|
|
10
|
+
/** The bar a live book row is keyed on: the CME session lattice bar on a CME Group market, else
|
|
11
|
+
* `roundObTimestamp`'s END reading of the plain grid. */
|
|
12
|
+
export declare function bookLiveBucketMs(stampMs: number, intervalMs: number, venue: LiveBucketVenue | null | undefined): number;
|
|
13
|
+
/** Copies of book rows `[stamp, ...levels]`, each keyed on its bar (`bookLiveBucketMs`). An unknown
|
|
14
|
+
* interval keeps every row's own stamp; the inputs are never written. */
|
|
15
|
+
export declare function bookLiveBucketRows(rows: ReadonlyArray<ArrayLike<number>>, intervalMs: number, venue: LiveBucketVenue | null | undefined): Float64Array[];
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The bar a live order book row belongs to: ONE key for every writer of per-bar book rows (the
|
|
3
|
+
* heatmap's live and replay columns, the K_ORDERBOOK source rows of a kScript, the wrun book lane
|
|
4
|
+
* and the heatmap riders' projected rows), keyed the way the history those rows extend is keyed.
|
|
5
|
+
*
|
|
6
|
+
* A book frame is stamped at its observation, an END label: the snapshot stamped exactly on a bar
|
|
7
|
+
* boundary is the closing snapshot of the bar before it (`roundObTimestamp`). tsdb-gateway rolls a
|
|
8
|
+
* CME Group market's per-symbol BLOCK_BOOK_SNAPSHOT_AGG onto the 17:00 America/Chicago session
|
|
9
|
+
* lattice and end-stamps each bar (pkg/tsdb/selects/cme.go `usesCMESessionRollup`,
|
|
10
|
+
* `cmeBlockBookResultBucket`); the history shift (`bookBarStartMs`) lands each row on its lattice
|
|
11
|
+
* start, so GC 4h history in CDT sits at 22/02/06/10/14/18Z. A live row floored on the UTC grid
|
|
12
|
+
* landed an 11:00Z snapshot at 08:00Z, a key no history row and no candle has.
|
|
13
|
+
*
|
|
14
|
+
* `venue` is the SERIES' own market (its exchange and symbol), never the chart's: a book source on
|
|
15
|
+
* another market keys its own grid. It is a required argument, so no writer keys a book row without
|
|
16
|
+
* naming the market it belongs to.
|
|
17
|
+
*/
|
|
18
|
+
import { Intervals } from '../../constants/interval.constants.js';
|
|
19
|
+
import { roundObTimestamp } from '../common/data-processing.util.js';
|
|
20
|
+
import { cmeSessionLatticeBucketMs } from './live-bucket.util.js';
|
|
21
|
+
/**
|
|
22
|
+
* The lattice bar an END-stamped book frame closes, or null off the lattice (another venue, a
|
|
23
|
+
* coin-aggregated book that passes no venue, an interval the gateway does not roll): the stamp is
|
|
24
|
+
* read one millisecond early, so a stamp exactly on a boundary closes the bar before it whatever
|
|
25
|
+
* the width (45m bars open on the quarter hour, not only on whole hours). A weekly stamp keeps its
|
|
26
|
+
* own week, as in `roundObTimestamp`.
|
|
27
|
+
*/
|
|
28
|
+
export function cmeLatticeBookBucketMs(stampMs, intervalMs, venue) {
|
|
29
|
+
const closingMs = intervalMs === Intervals.WEEK ? stampMs : stampMs - 1;
|
|
30
|
+
return cmeSessionLatticeBucketMs(closingMs, intervalMs, venue);
|
|
31
|
+
}
|
|
32
|
+
/** The bar a live book row is keyed on: the CME session lattice bar on a CME Group market, else
|
|
33
|
+
* `roundObTimestamp`'s END reading of the plain grid. */
|
|
34
|
+
export function bookLiveBucketMs(stampMs, intervalMs, venue) {
|
|
35
|
+
return cmeLatticeBookBucketMs(stampMs, intervalMs, venue) ?? roundObTimestamp(stampMs, intervalMs);
|
|
36
|
+
}
|
|
37
|
+
/** Copies of book rows `[stamp, ...levels]`, each keyed on its bar (`bookLiveBucketMs`). An unknown
|
|
38
|
+
* interval keeps every row's own stamp; the inputs are never written. */
|
|
39
|
+
export function bookLiveBucketRows(rows, intervalMs, venue) {
|
|
40
|
+
const keyed = Number.isFinite(intervalMs) && intervalMs > 0;
|
|
41
|
+
return rows.map((row) => {
|
|
42
|
+
const copy = Float64Array.from(row);
|
|
43
|
+
if (keyed && copy.length > 0)
|
|
44
|
+
copy[0] = bookLiveBucketMs(copy[0], intervalMs, venue);
|
|
45
|
+
return copy;
|
|
46
|
+
});
|
|
47
|
+
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* docs/features/data/cryptocap-indices.md). The backend prints each series as raw CRYPTO_DOMINANCE points and serves
|
|
4
4
|
* its candles as CRYPTO_DOMINANCE_AGG on tsdb-gateway v2: value candles with no volume, trades or book behind them.
|
|
5
5
|
*
|
|
6
|
-
* A leaf on purpose, with no imports: the market-kind table (`marketKind.util`)
|
|
7
|
-
*
|
|
6
|
+
* A leaf on purpose, with no imports: the market-kind table (`marketKind.util`), the ticker hub (`index-mode.util`) and
|
|
7
|
+
* the replay ladder all read it, and none may call into the others at module load. Web code asks
|
|
8
8
|
* `checkIsCryptoIndex` here, never through `index-mode.util` or `marketKind.util`: over a hundred specs mock those two
|
|
9
9
|
* with partial factories, and a predicate read through such a mock throws.
|
|
10
10
|
*/
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* docs/features/data/cryptocap-indices.md). The backend prints each series as raw CRYPTO_DOMINANCE points and serves
|
|
4
4
|
* its candles as CRYPTO_DOMINANCE_AGG on tsdb-gateway v2: value candles with no volume, trades or book behind them.
|
|
5
5
|
*
|
|
6
|
-
* A leaf on purpose, with no imports: the market-kind table (`marketKind.util`)
|
|
7
|
-
*
|
|
6
|
+
* A leaf on purpose, with no imports: the market-kind table (`marketKind.util`), the ticker hub (`index-mode.util`) and
|
|
7
|
+
* the replay ladder all read it, and none may call into the others at module load. Web code asks
|
|
8
8
|
* `checkIsCryptoIndex` here, never through `index-mode.util` or `marketKind.util`: over a hundred specs mock those two
|
|
9
9
|
* with partial factories, and a predicate read through such a mock throws.
|
|
10
10
|
*/
|
|
@@ -14,16 +14,22 @@
|
|
|
14
14
|
* Two market facts narrow it for a browser-run Indicator's lanes (`wrunLaneServiceOnMarket`):
|
|
15
15
|
* - the market-kind table: forex and commodities trade no volume the chart can split, keep no
|
|
16
16
|
* book and list no options, so they serve no volume profile, buy/sell volume, order book,
|
|
17
|
-
* implied volatility or skew, whatever the index-mode admission lets through; a
|
|
17
|
+
* implied volatility or skew, whatever the index-mode admission lets through; a US equity
|
|
18
|
+
* market (the tradfi kind: the listing venues, the consolidated tape, Polygon under both enum
|
|
19
|
+
* names) prints no aggressor side, so it serves no buy/sell volume either (the gateway writes
|
|
20
|
+
* every stock trade row as side 0 and the lane keeps BUY and SELL rows only, so the lane is
|
|
21
|
+
* empty and a recipe's zero fill would draw that as flat flow); a crypto index
|
|
18
22
|
* (CRYPTOCAP, not index-mode: it fetches by period like crypto) serves its value candles and no
|
|
19
|
-
* other lane at all;
|
|
23
|
+
* other lane at all; a quote-priced perpetual market (Variational, also period-fetched) serves its
|
|
24
|
+
* quote candles, funding and open interest, and no trade, volume, book, profile or options lane;
|
|
20
25
|
* - the coin table: the option-summary lanes (implied volatility, skew) hold a series for the
|
|
21
26
|
* coins `WRUN_OPTION_SUMMARY_COINS` lists (BTC and ETH) and no other.
|
|
22
27
|
* The dispatcher's own admission (`isKScriptTypeServedOnIndexMode`) stays as it is.
|
|
23
28
|
*/
|
|
24
29
|
import { checkIsCryptoIndex } from './crypto-index.leaf.js';
|
|
30
|
+
import { checkIsQuotePerp } from './quote-perp.leaf.js';
|
|
25
31
|
import { checkIsIndexMode } from './index-mode.util.js';
|
|
26
|
-
import { checkIsForexOrCommodity } from './marketKind.util.js';
|
|
32
|
+
import { checkIsForexOrCommodity, getMarketKind } from './marketKind.util.js';
|
|
27
33
|
import { WRUN_OPTION_SUMMARY_COINS, WRUN_OPTION_SUMMARY_LANES } from '../wrun/wrun-option-summary-lane.util.js';
|
|
28
34
|
/** The kScript source types the dispatcher serves on an index-mode payload exchange. */
|
|
29
35
|
export function isKScriptTypeServedOnIndexMode(kScriptType) {
|
|
@@ -37,8 +43,15 @@ const FOREX_COMMODITY_UNSERVED_TYPES = new Set([
|
|
|
37
43
|
WRUN_OPTION_SUMMARY_LANES.implied_volatility.type,
|
|
38
44
|
WRUN_OPTION_SUMMARY_LANES.skew.type,
|
|
39
45
|
]);
|
|
46
|
+
/** The lane fetch types a US equity market never serves (the market-kind table): buy/sell volume. A stock print
|
|
47
|
+
* carries no aggressor side, so the lane's BUY/SELL split is empty there; it is the one lane needing a side that
|
|
48
|
+
* the index-mode admission lets through on a stock chart. */
|
|
49
|
+
const US_EQUITY_UNSERVED_TYPES = new Set(['buy_sell_volume']);
|
|
40
50
|
/** The one lane fetch type a crypto index market serves (the market-kind table): its value candles. */
|
|
41
51
|
const CRYPTO_INDEX_SERVED_TYPES = new Set(['ohlcv']);
|
|
52
|
+
/** The lane fetch types a quote-priced perpetual market serves (the market-kind table): its quote candles and the
|
|
53
|
+
* two perpetual series the gateway serves beside them. */
|
|
54
|
+
const QUOTE_PERP_SERVED_TYPES = new Set(['ohlcv', 'funding_rate', 'open_interest']);
|
|
42
55
|
/** The lane fetch types served for some coins only, and those coins (the coin table). */
|
|
43
56
|
const COIN_SERVED_TYPES = Object.freeze({
|
|
44
57
|
[WRUN_OPTION_SUMMARY_LANES.implied_volatility.type]: WRUN_OPTION_SUMMARY_COINS,
|
|
@@ -60,9 +73,17 @@ export function wrunLaneServiceOnMarket({ type, exchange, coin, nativeRows, }) {
|
|
|
60
73
|
if (FOREX_COMMODITY_UNSERVED_TYPES.has(type) && checkIsForexOrCommodity(exchange)) {
|
|
61
74
|
return { served: false, reason: 'market-kind' };
|
|
62
75
|
}
|
|
76
|
+
// By the kind, not the index-mode set: a stock print carries no side whichever US venue code names the market (the
|
|
77
|
+
// consolidated tape and the listing venues outside that set included).
|
|
78
|
+
if (US_EQUITY_UNSERVED_TYPES.has(type) && getMarketKind(exchange) === 'tradfi') {
|
|
79
|
+
return { served: false, reason: 'market-kind' };
|
|
80
|
+
}
|
|
63
81
|
if (!CRYPTO_INDEX_SERVED_TYPES.has(type) && checkIsCryptoIndex(exchange)) {
|
|
64
82
|
return { served: false, reason: 'market-kind' };
|
|
65
83
|
}
|
|
84
|
+
if (!QUOTE_PERP_SERVED_TYPES.has(type) && checkIsQuotePerp(exchange)) {
|
|
85
|
+
return { served: false, reason: 'market-kind' };
|
|
86
|
+
}
|
|
66
87
|
const coins = COIN_SERVED_TYPES[type];
|
|
67
88
|
const word = typeof coin === 'string' ? coin.trim().toUpperCase() : '';
|
|
68
89
|
if (coins !== undefined && word !== '' && !coins.includes(word))
|
|
@@ -56,8 +56,11 @@ export declare function checkIsIndexMode(exchange: string | undefined): boolean;
|
|
|
56
56
|
export declare function checkIsIndexVenue(exchange: string | undefined): boolean;
|
|
57
57
|
/**
|
|
58
58
|
* Exchanges that print quotes instead of trades: value-only candles with no
|
|
59
|
-
* volume and a quote channel live (forex, commodity
|
|
60
|
-
* TICKER/TICKER_AGG, the crypto indices on
|
|
59
|
+
* volume and a quote channel live (forex, commodity, the index venues and the
|
|
60
|
+
* quote-priced perpetual venues on TICKER/TICKER_AGG, the crypto indices on
|
|
61
|
+
* CRYPTO_DOMINANCE/CRYPTO_DOMINANCE_AGG). A venue the gateway serves only as
|
|
62
|
+
* quotes must answer true here: unlisted, it reads as crypto and asks for
|
|
63
|
+
* trades it is never served (venue-price-source.ratchet.spec.ts).
|
|
61
64
|
* The hub of the quote routing: the candle parse (the ohlcv and K_OHLCV
|
|
62
65
|
* workers keep a volume-less row), the sided-candle refusal and the live
|
|
63
66
|
* channel (`liveQuoteType`, live-feed-channel-factory.util) all read it; the
|