@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
package/dist/index.js
CHANGED
|
@@ -49,9 +49,11 @@ export * from './interfaces/replay.interface.js';
|
|
|
49
49
|
export * from './interfaces/wrun-runtime.interface.js';
|
|
50
50
|
export * from './kscript-data/controls/live-ohlcv-merge.util.js';
|
|
51
51
|
export * from './kscript-data/controls/live-trades-merge.util.js';
|
|
52
|
+
export * from './kscript-data/controls/live-trades-order-gate.util.js';
|
|
52
53
|
export * from './market-data/billing.interface.js';
|
|
53
54
|
export * from './market-data/venue.js';
|
|
54
55
|
export * from './market-data/venue-governed.util.js';
|
|
56
|
+
export * from './market-data/venues/cme.js';
|
|
55
57
|
export * from './market-data/venues/index.js';
|
|
56
58
|
export * from './market-data/venues/opra.js';
|
|
57
59
|
export * from './replay/replayIndicatorRows.js';
|
|
@@ -64,6 +66,7 @@ export * from './settings-templates/tool-rules.js';
|
|
|
64
66
|
export * from './settings-templates/tool-tables.generated.js';
|
|
65
67
|
export * from './utility/auth/server-clock.util.js';
|
|
66
68
|
export * from './utility/blk-market.util.js';
|
|
69
|
+
export * from './utility/chart/book-live-bucket.util.js';
|
|
67
70
|
export * from './utility/chart/builtin-identity.util.js';
|
|
68
71
|
export * from './utility/chart/cache-alignment.util.js';
|
|
69
72
|
export * from './utility/chart/calendar-interval.util.js';
|
|
@@ -164,6 +167,7 @@ export * from './utility/chart/profile-block-size.util.js';
|
|
|
164
167
|
export * from './utility/chart/profile-row-height.util.js';
|
|
165
168
|
export * from './utility/chart/protected-kscript-degenerate-rows.leaf.js';
|
|
166
169
|
export * from './utility/chart/protected-kscript-empty-output.util.js';
|
|
170
|
+
export * from './utility/chart/quote-perp.leaf.js';
|
|
167
171
|
export * from './utility/chart/rth-session.util.js';
|
|
168
172
|
export * from './utility/chart/run-interval-unservable.leaf.js';
|
|
169
173
|
export * from './utility/chart/run-interval-warmup.leaf.js';
|
|
@@ -214,6 +218,7 @@ export * from './utility/watchlist/import/import-request.leaf.js';
|
|
|
214
218
|
export * from './utility/watchlist/import/tradingview-symbols.leaf.js';
|
|
215
219
|
export * from './utility/wrun-alert-params.leaf.js';
|
|
216
220
|
export * from './utility/wrun-display-name.util.js';
|
|
221
|
+
export * from './utility/wrun/derived-roots.util.js';
|
|
217
222
|
export * from './utility/wrun/run-schedule/wrun-chart-gate-reader.util.js';
|
|
218
223
|
export * from './utility/wrun/run-schedule/wrun-gate-reader-warm.util.js';
|
|
219
224
|
export * from './utility/wrun/run-schedule/wrun-lane-groups.util.js';
|
|
@@ -231,6 +236,7 @@ export * from './utility/wrun/sources/row-lanes/index.js';
|
|
|
231
236
|
export * from './utility/wrun/sources/row-lanes/option_contract_flow.js';
|
|
232
237
|
export * from './utility/wrun/sources/wrun-poll-lane.types.js';
|
|
233
238
|
export * from './utility/wrun/sources/wrun-poll-lanes.util.js';
|
|
239
|
+
export * from './utility/wrun/sources/wrun-row-lane-add-memo.util.js';
|
|
234
240
|
export * from './utility/wrun/sources/wrun-row-lane-first-paint.util.js';
|
|
235
241
|
export * from './utility/wrun/sources/wrun-row-lane.types.js';
|
|
236
242
|
export * from './utility/wrun/sources/wrun-row-lanes.util.js';
|
|
@@ -249,6 +255,7 @@ export * from './utility/wrun/wrun-canvas-readout.util.js';
|
|
|
249
255
|
export * from './utility/wrun/wrun-canvases.util.js';
|
|
250
256
|
export * from './utility/wrun/wrun-cap-notice.util.js';
|
|
251
257
|
export * from './utility/wrun/wrun-card-style.util.js';
|
|
258
|
+
export * from './utility/wrun/wrun-cell-capacity.leaf.js';
|
|
252
259
|
export * from './utility/wrun/wrun-chart-context-names.util.js';
|
|
253
260
|
export * from './utility/wrun/wrun-chart-context.util.js';
|
|
254
261
|
export * from './utility/wrun/wrun-chart-market-facts.util.js';
|
|
@@ -266,6 +273,9 @@ export * from './utility/wrun/wrun-daily-lane.util.js';
|
|
|
266
273
|
export * from './utility/wrun/wrun-deadline.util.js';
|
|
267
274
|
export * from './utility/wrun/wrun-debug-output.util.js';
|
|
268
275
|
export * from './utility/wrun/wrun-declared-warmup.util.js';
|
|
276
|
+
export * from './utility/wrun/wrun-dollar-unit-port.leaf.js';
|
|
277
|
+
export * from './utility/wrun/wrun-download-meter.util.js';
|
|
278
|
+
export * from './utility/wrun/wrun-download-plan.util.js';
|
|
269
279
|
export * from './utility/wrun/wrun-draft-legend-note.util.js';
|
|
270
280
|
export * from './utility/wrun/wrun-draft-overlay.util.js';
|
|
271
281
|
export * from './utility/wrun/wrun-draw-skipped.leaf.js';
|
|
@@ -307,6 +317,7 @@ export * from './utility/wrun/wrun-live-patch.util.js';
|
|
|
307
317
|
export * from './utility/wrun/wrun-live-tick.util.js';
|
|
308
318
|
export * from './utility/wrun/wrun-loading-owner.util.js';
|
|
309
319
|
export * from './utility/wrun/wrun-market-facts.util.js';
|
|
320
|
+
export * from './utility/wrun/wrun-market-size-contract-carry.leaf.js';
|
|
310
321
|
export * from './utility/wrun/wrun-market-size-defaults.leaf.js';
|
|
311
322
|
export * from './utility/wrun/wrun-market-size-defaults.util.js';
|
|
312
323
|
export * from './utility/wrun/wrun-memory-clamp.util.js';
|
|
@@ -319,6 +330,7 @@ export * from './utility/wrun/wrun-opra-stats.leaf.js';
|
|
|
319
330
|
export * from './utility/wrun/wrun-option-contract-flow.util.js';
|
|
320
331
|
export * from './utility/wrun/wrun-option-knobs.util.js';
|
|
321
332
|
export * from './utility/wrun/wrun-option-prints.util.js';
|
|
333
|
+
export * from './utility/wrun/wrun-option-strike-flow-forecast.util.js';
|
|
322
334
|
export * from './utility/wrun/wrun-option-strike-flow-lane.util.js';
|
|
323
335
|
export * from './utility/wrun/wrun-option-strike-flow.util.js';
|
|
324
336
|
export * from './utility/wrun/wrun-option-summary-lane.util.js';
|
|
@@ -350,6 +362,7 @@ export * from './utility/wrun/wrun-protocol-pending.util.js';
|
|
|
350
362
|
export * from './utility/wrun/wrun-refusal-surface.util.js';
|
|
351
363
|
export * from './utility/wrun/wrun-refusal-text.util.js';
|
|
352
364
|
export * from './utility/wrun/wrun-refusal.util.js';
|
|
365
|
+
export * from './utility/wrun/wrun-refused-latest.util.js';
|
|
353
366
|
export * from './utility/wrun/wrun-registry-errors.util.js';
|
|
354
367
|
export * from './utility/wrun/wrun-render-select.util.js';
|
|
355
368
|
export * from './utility/wrun/wrun-replay-lane.util.js';
|
|
@@ -380,6 +393,7 @@ export * from './utility/wrun/wrun-style-flags.util.js';
|
|
|
380
393
|
export * from './utility/wrun/wrun-symbol-code.util.js';
|
|
381
394
|
export * from './utility/wrun/wrun-table-chrome.util.js';
|
|
382
395
|
export * from './utility/wrun/wrun-table-look.util.js';
|
|
396
|
+
export * from './utility/wrun/wrun-tape-per-order.util.js';
|
|
383
397
|
export * from './utility/wrun/wrun-tape-source.util.js';
|
|
384
398
|
export * from './utility/wrun/wrun-text-look.util.js';
|
|
385
399
|
export * from './utility/wrun/wrun-text-params.util.js';
|
|
@@ -21,6 +21,12 @@ export interface RuntimeDiagnostic {
|
|
|
21
21
|
* stays in `message` for author-facing surfaces.
|
|
22
22
|
*/
|
|
23
23
|
details?: Record<string, unknown>;
|
|
24
|
+
/**
|
|
25
|
+
* The row was computed over OPRA data (the display boundary, contract K7): the run that reported it read the OPRA
|
|
26
|
+
* plane (its own fact from before it computed: the wrun runtime trap of such a run, the cloud's execution rows of a
|
|
27
|
+
* run carrying the OPRA mark). The editor console shows it, and every console export strips it.
|
|
28
|
+
*/
|
|
29
|
+
opra?: true;
|
|
24
30
|
}
|
|
25
31
|
/** `details` of a FE_KSCRIPT_PERF_SLOW row: what the chip and the compact card show. */
|
|
26
32
|
export interface KScriptPerfSlowDetails {
|
|
@@ -80,14 +80,14 @@ export type AcceptOpraDataTermsDto = AcceptMarketDataDataTermsDto;
|
|
|
80
80
|
/** POST /opra/subscription/cancel and DELETE /opra/subscription/cancel -> 200 body. */
|
|
81
81
|
export type OpraCancelResponseDto = MarketDataCancelResponseDto;
|
|
82
82
|
/**
|
|
83
|
-
* The
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
83
|
+
* The agreement version orange's contract export names (the card's pin, checked by the contract parity spec). It is
|
|
84
|
+
* NOT the current version: the server serves the current agreement text, its version and its hash
|
|
85
|
+
* (`GET /opra/agreement`, contract K1), the agreement step renders and posts exactly that, and the store reads an
|
|
86
|
+
* acceptance as current only against it (`isMarketDataAgreementCurrent`).
|
|
87
87
|
*/
|
|
88
|
-
export declare const OPRA_SUBSCRIBER_AGREEMENT_VERSION: "opra-
|
|
89
|
-
/**
|
|
90
|
-
export declare const OPRA_SUBSCRIBER_AGREEMENT_URL: "
|
|
88
|
+
export declare const OPRA_SUBSCRIBER_AGREEMENT_VERSION: "opra-b1-2026-10-22";
|
|
89
|
+
/** The agreement link orange's contract export names (the card's pin). No surface links it: the text is served. */
|
|
90
|
+
export declare const OPRA_SUBSCRIBER_AGREEMENT_URL: "/api/v1/opra/agreement";
|
|
91
91
|
/**
|
|
92
92
|
* OPRA's non-professional qualification, one stable machine id per question: these ids key the
|
|
93
93
|
* submitted `answers` record and are never swapped for translated question text. `qualifying` is the
|
|
@@ -126,8 +126,8 @@ export declare const OPRA_ATTESTATION_RENEW_WINDOW_DAYS: 30;
|
|
|
126
126
|
/**
|
|
127
127
|
* A declaration on the current form (a new question set means a new declaration) whose validity has not
|
|
128
128
|
* ended at `now`, either classification. The client owns expiry: `now` is the caller's clock (the store's
|
|
129
|
-
* last evaluation), never an implied Date.now(). A record without `expiresAt
|
|
130
|
-
*
|
|
129
|
+
* last evaluation), never an implied Date.now(). A record without `expiresAt`, or one whose `expiresAt`
|
|
130
|
+
* does not parse, reads lapsed (ask again rather than trust it).
|
|
131
131
|
*/
|
|
132
132
|
export declare function isOpraAttestationLive(attestation: OpraAttestation | null | undefined, now: number): boolean;
|
|
133
133
|
/** A non-professional declaration on the current form, still valid at `now`: the account may buy real-time. */
|
|
@@ -139,8 +139,10 @@ export declare function isOpraProfessionalDeclaration(attestation: OpraAttestati
|
|
|
139
139
|
* inside the renewal window before it; null otherwise (no expiry named, further off, or already lapsed).
|
|
140
140
|
*/
|
|
141
141
|
export declare function opraAttestationRenewBy(attestation: OpraAttestation | null | undefined, now: number): string | null;
|
|
142
|
-
/** An acceptance counts only for the version
|
|
143
|
-
export declare function isOpraAgreementCurrent(
|
|
142
|
+
/** An acceptance counts only for the version the server presents now (`current`, its K1 answer). */
|
|
143
|
+
export declare function isOpraAgreementCurrent(current: {
|
|
144
|
+
version: string;
|
|
145
|
+
} | null | undefined, agreement: OpraAgreement | null | undefined): boolean;
|
|
144
146
|
/**
|
|
145
147
|
* Normalized checkout outcome. 'redirect' = leave for Stripe. 'refused' = the server declined (or the
|
|
146
148
|
* store answered a professional account itself); 'professional_unavailable' is terminal, never a re-price.
|
|
@@ -24,13 +24,13 @@ export const OPRA_IDENTITY_FIELD_MAX_LENGTH = OPRA_VENUE.questionnaire.identityL
|
|
|
24
24
|
/** The server's bound on the one-line `address`, trimmed. */
|
|
25
25
|
export const OPRA_ADDRESS_FIELD_MAX_LENGTH = OPRA_VENUE.questionnaire.identityLimits.address;
|
|
26
26
|
/**
|
|
27
|
-
* The
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
27
|
+
* The agreement version orange's contract export names (the card's pin, checked by the contract parity spec). It is
|
|
28
|
+
* NOT the current version: the server serves the current agreement text, its version and its hash
|
|
29
|
+
* (`GET /opra/agreement`, contract K1), the agreement step renders and posts exactly that, and the store reads an
|
|
30
|
+
* acceptance as current only against it (`isMarketDataAgreementCurrent`).
|
|
31
31
|
*/
|
|
32
32
|
export const OPRA_SUBSCRIBER_AGREEMENT_VERSION = OPRA_VENUE.agreement.version;
|
|
33
|
-
/**
|
|
33
|
+
/** The agreement link orange's contract export names (the card's pin). No surface links it: the text is served. */
|
|
34
34
|
export const OPRA_SUBSCRIBER_AGREEMENT_URL = OPRA_VENUE.agreement.url;
|
|
35
35
|
/**
|
|
36
36
|
* OPRA's non-professional qualification, one stable machine id per question: these ids key the
|
|
@@ -51,8 +51,8 @@ export const OPRA_ATTESTATION_RENEW_WINDOW_DAYS = OPRA_VENUE.questionnaire.renew
|
|
|
51
51
|
/**
|
|
52
52
|
* A declaration on the current form (a new question set means a new declaration) whose validity has not
|
|
53
53
|
* ended at `now`, either classification. The client owns expiry: `now` is the caller's clock (the store's
|
|
54
|
-
* last evaluation), never an implied Date.now(). A record without `expiresAt
|
|
55
|
-
*
|
|
54
|
+
* last evaluation), never an implied Date.now(). A record without `expiresAt`, or one whose `expiresAt`
|
|
55
|
+
* does not parse, reads lapsed (ask again rather than trust it).
|
|
56
56
|
*/
|
|
57
57
|
export function isOpraAttestationLive(attestation, now) {
|
|
58
58
|
return isMarketDataAttestationLive(OPRA_VENUE, attestation, now);
|
|
@@ -72,9 +72,9 @@ export function isOpraProfessionalDeclaration(attestation, now) {
|
|
|
72
72
|
export function opraAttestationRenewBy(attestation, now) {
|
|
73
73
|
return marketDataAttestationRenewBy(OPRA_VENUE, attestation, now);
|
|
74
74
|
}
|
|
75
|
-
/** An acceptance counts only for the version
|
|
76
|
-
export function isOpraAgreementCurrent(agreement) {
|
|
77
|
-
return isMarketDataAgreementCurrent(
|
|
75
|
+
/** An acceptance counts only for the version the server presents now (`current`, its K1 answer). */
|
|
76
|
+
export function isOpraAgreementCurrent(current, agreement) {
|
|
77
|
+
return isMarketDataAgreementCurrent(current, agreement);
|
|
78
78
|
}
|
|
79
79
|
/** The venue-generic billing error (market-data/billing.interface.ts): one class for every venue's calls. */
|
|
80
80
|
export const OpraBillingError = MarketDataBillingError;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { LiveBucketVenue } from '../utility/chart/live-bucket.util.js';
|
|
1
2
|
export type RailTf = '1m' | '5m' | '15m' | '1h' | '1d';
|
|
2
3
|
export type ReplayStepTf = '1m' | '5m' | '10m' | '15m' | '30m' | '1h' | '2h' | '3h' | '4h' | '1d';
|
|
3
4
|
type ReplayTimestampMode = 'uniform' | 'irregular';
|
|
@@ -32,6 +33,13 @@ export interface ReplayBuffer {
|
|
|
32
33
|
tf: ReplayResolution;
|
|
33
34
|
timestampMode?: ReplayTimestampMode;
|
|
34
35
|
chartIntervalMs?: number;
|
|
36
|
+
/**
|
|
37
|
+
* The chart market whose bars the buffer replays (`liveBucketVenueOf` over the chart's metadata at
|
|
38
|
+
* the load): every chart-bar read of the buffer (`alignChartBucketMs`, `chartBucketOpenMs`,
|
|
39
|
+
* `chartBucketEndMs`) keys on it, so a CME Group chart's forming bar, reveal cutoff and paint
|
|
40
|
+
* cutoff land on the session lattice its history rides. Absent: the plain grid.
|
|
41
|
+
*/
|
|
42
|
+
barVenue?: LiveBucketVenue | null;
|
|
35
43
|
availableResolutions?: ReplayResolution[];
|
|
36
44
|
abortController: AbortController;
|
|
37
45
|
/** Total visible X span used by replay follow range syncs. */
|
|
@@ -31,6 +31,7 @@ import type { WrunParamHostFill, WrunWarmupWindow } from '@orangecharts/indicato
|
|
|
31
31
|
import type { CardAnchor } from '../utility/chart/om-widget.util.js';
|
|
32
32
|
import type { ParsedPanel } from '../utility/chart/om-panel.util.js';
|
|
33
33
|
import type { WrunMiniChartsDrawing } from '@orangecharts/indicator-kit/host';
|
|
34
|
+
import type { WrunBatchedNumberFormat } from '../utility/wrun/wrun-batched-readout.util.js';
|
|
34
35
|
/** ABI capabilities accumulate: wrun-2 adds strings and cells, wrun-3
|
|
35
36
|
* adds drawings and strategy, wrun-4 adds run-level frame snapshots,
|
|
36
37
|
* wrun-5 adds the text channel (a typed text setting's UTF-8 bytes, read
|
|
@@ -286,7 +287,10 @@ export type WrunParamHost = 'source' | 'interval' | 'symbol';
|
|
|
286
287
|
* `down_color` / `grid_color` (WRUN-STYLE TH-candle-colors) the chart's
|
|
287
288
|
* bullish, bearish and grid colours packed the same way. The market facts
|
|
288
289
|
* (`kind`, `point_value`, `zone`, `quote_is_usd`, WRUN-GAPS-1005) are codes
|
|
289
|
-
* of the chart's own market (wrun-chart-market-facts.util)
|
|
290
|
+
* of the chart's own market (wrun-chart-market-facts.util), and
|
|
291
|
+
* `dollar_multiplier` (kit 0.95.0, `market.dollar_multiplier()`) the US
|
|
292
|
+
* dollars one size unit of the market's trades at one price unit is worth
|
|
293
|
+
* (wrunMarketDollarUnit; 0 where no unit is proven). */
|
|
290
294
|
export type { WrunParamHostFill };
|
|
291
295
|
/** An om style binding (the om param schema's `style`): the param is a
|
|
292
296
|
* style-only knob that never reaches init() (its slot holds a 0
|
|
@@ -383,7 +387,11 @@ export interface WrunMetadataParam {
|
|
|
383
387
|
hint?: string;
|
|
384
388
|
/** Inputs sharing a `row` string render side by side. */
|
|
385
389
|
row?: string;
|
|
386
|
-
/**
|
|
390
|
+
/** The row's gate: it dims (or hides, with `hide`) while the gate is closed. One clause over another param's
|
|
391
|
+
* value (the om SDK's grammar, read by wrun-script-inputs.util parseWrunWhen): `name` while it is truthy (a
|
|
392
|
+
* toggle on, an option or a number other than 0), `!name` while it is falsy, `name=v`, `name!=v` and
|
|
393
|
+
* `name in v1,v2` against numbers (a toggle as 1 / 0, a select by its option's index). A gate the FE cannot
|
|
394
|
+
* read never closes the row. */
|
|
387
395
|
when?: string;
|
|
388
396
|
hide?: boolean;
|
|
389
397
|
/** Render the number as a slider. */
|
|
@@ -448,7 +456,9 @@ export interface WrunVisibleBy {
|
|
|
448
456
|
export type WrunLayoutEntry = {
|
|
449
457
|
kind: 'page';
|
|
450
458
|
title: string;
|
|
451
|
-
}
|
|
459
|
+
}
|
|
460
|
+
/** `when`: the section's gate, the params' `when` grammar (WrunMetadataParam.when). */
|
|
461
|
+
| {
|
|
452
462
|
kind: 'section';
|
|
453
463
|
title: string;
|
|
454
464
|
toggle?: string;
|
|
@@ -680,11 +690,18 @@ export interface WrunInputSource {
|
|
|
680
690
|
block_size?: number;
|
|
681
691
|
max_depth?: number;
|
|
682
692
|
/** `tape` only (the C1 facets, `wrun-tape-source.util.ts`): the smallest
|
|
683
|
-
* print size served
|
|
684
|
-
* param (resolved from the run's current
|
|
685
|
-
* from TRADE_LARGE ("0" = the live edge
|
|
686
|
-
* most 30 days).
|
|
693
|
+
* print size served in the venue's raw stored unit, a number literal or
|
|
694
|
+
* the name of a declared numeric param (resolved from the run's current
|
|
695
|
+
* values), and the history seeded from TRADE_LARGE ("0" = the live edge
|
|
696
|
+
* only, else `^\d+(s|m|h|d)$` at most 30 days). A tape declares exactly
|
|
697
|
+
* one floor: `min_size` or `min_value`. */
|
|
687
698
|
min_size?: number | string;
|
|
699
|
+
/** `tape` only (contract C-DOLLAR): the smallest print served by its value
|
|
700
|
+
* in US dollars, spelled like `min_size` (a number literal or the name of
|
|
701
|
+
* a declared numeric param). It rides the wire as the gateway's
|
|
702
|
+
* `minQuoteAmount`, and every cell's `size` is then the print's dollar
|
|
703
|
+
* value. */
|
|
704
|
+
min_value?: number | string;
|
|
688
705
|
history?: string;
|
|
689
706
|
/** `volume_profile` only: the lane the input reads, the kScript
|
|
690
707
|
* volume_profile source's `ticksPerBar` (price ticks per bucket, an
|
|
@@ -847,8 +864,9 @@ export interface WrunInputSource {
|
|
|
847
864
|
* `needed_by` leaves out the market's size unit (wrunSheetWithLaneDemand), or a `candles` lane its
|
|
848
865
|
* `chart_interval_below` gates off on the chart's interval (wrunSheetWithLaneGate). Its lane is not
|
|
849
866
|
* demanded: no fetch, no live channel, no fold, no reconcile (wrunSourceLane answers none for it),
|
|
850
|
-
* and the row builder reads its fill on every bar without ever holding the run; a
|
|
851
|
-
*
|
|
867
|
+
* and the row builder reads its fill on every bar without ever holding the run; a celled input (a
|
|
868
|
+
* gated `candles` lane, a tape the market does not ask, kit 0.95.0) plans no leg and no cells and reads a
|
|
869
|
+
* present EMPTY block on every row, and no tape acquisition counts it (isWrunAskedTapeSource). */
|
|
852
870
|
undemanded?: true;
|
|
853
871
|
}
|
|
854
872
|
/** The four views of a pinned coarser input (`WrunInputSource.view`), and `forming_open`, a
|
|
@@ -871,6 +889,10 @@ interface WrunMetadataInput {
|
|
|
871
889
|
description?: string;
|
|
872
890
|
cellType?: 'array';
|
|
873
891
|
max_cells?: number;
|
|
892
|
+
/** A celled input's: the tuples its module's build sized the input's buffer and `in_<name>_capacity` by (kit
|
|
893
|
+
* scaffold 97 writes it beside `max_cells`; absent on every older sheet). Every block is sized by
|
|
894
|
+
* `capacity ?? max_cells` (wrun-cell-capacity.leaf `wrunSheetCellBlockTuples`). */
|
|
895
|
+
capacity?: number;
|
|
874
896
|
}
|
|
875
897
|
export interface WrunMetadataOutput {
|
|
876
898
|
index: number;
|
|
@@ -1021,6 +1043,11 @@ export interface WrunMetadataOutput {
|
|
|
1021
1043
|
align?: WrunTextAlign;
|
|
1022
1044
|
pill_style?: 'filled' | 'outlined';
|
|
1023
1045
|
font_size?: number;
|
|
1046
|
+
/** A guide's axis tag look (kit scaffold 102, flag ignore), beside
|
|
1047
|
+
* `axis_label: true`: 'pill' (today's tag), 'quiet' (one soft capsule) or
|
|
1048
|
+
* 'words' (a tick, the price and the name in plain ink). Absent = 'pill'.
|
|
1049
|
+
* The host mounts it as the guide's run-output `axisTagLook`. */
|
|
1050
|
+
axis_look?: 'pill' | 'quiet' | 'words';
|
|
1024
1051
|
/** OT11: horizontal-then-vertical segments on a line output. */
|
|
1025
1052
|
step?: boolean;
|
|
1026
1053
|
/** OT13: the stroke shaded by height, 2..8 stops from the pane top down. */
|
|
@@ -1226,6 +1253,11 @@ export interface WrunPanelHighlight {
|
|
|
1226
1253
|
row?: string;
|
|
1227
1254
|
col?: string;
|
|
1228
1255
|
}
|
|
1256
|
+
/** A numeric-x line or bars frame's label per row (C3; frame only, `x_labels` beside `rows`, never
|
|
1257
|
+
* a declared word): one entry per row in row order, "" for a row without a label, each at most 24
|
|
1258
|
+
* characters. The pane prints a row's label where it would print the row's x number: a line's
|
|
1259
|
+
* hover card title, a bar's axis tick and hover card title. */
|
|
1260
|
+
export type WrunPanelXLabels = string[];
|
|
1229
1261
|
/** The per-series style words of a panel (`panels[i].series[j]`, g1 SC24
|
|
1230
1262
|
* SC25 SC29 SC30 SC35 SC40): line series take fill, style, smooth, points,
|
|
1231
1263
|
* labels, width and line_style; table series take align and the column
|
|
@@ -1263,8 +1295,10 @@ export interface WrunPanelStyle {
|
|
|
1263
1295
|
font_family?: WrunFontFamily;
|
|
1264
1296
|
/** SC07: hover readouts (default true). */
|
|
1265
1297
|
hover_card?: boolean;
|
|
1266
|
-
/** SC23 SC02 SC37: the pane frame (pie: box or none).
|
|
1267
|
-
|
|
1298
|
+
/** SC23 SC02 SC37: the pane frame (pie: box or none). `hairlines`, the
|
|
1299
|
+
* default on line, bars, histogram and scatter: horizontal value hairlines
|
|
1300
|
+
* only, no frame and no vertical grid. */
|
|
1301
|
+
chrome?: 'box' | 'grid' | 'none' | 'hairlines';
|
|
1268
1302
|
format?: WrunValueFormat;
|
|
1269
1303
|
decimals?: number;
|
|
1270
1304
|
signed?: boolean;
|
|
@@ -2456,8 +2490,9 @@ interface WrunBatchedSectionCommon {
|
|
|
2456
2490
|
* {{price}} {{fills}}` on marks, `{{top}} {{bottom}} {{length}} {{word}}` on spans, `{{y1}}
|
|
2457
2491
|
* {{y2}} {{length}} {{word}}` on rays (the kit's WRUN_BATCHED_TOOLTIP_TOKENS), `{{start}}` and
|
|
2458
2492
|
* `{{end}}` in place of `{{length}}` on a timed (stride-5) section (the kit's
|
|
2459
|
-
* WRUN_BATCHED_TIMED_TOOLTIP_TOKENS, printed as chart times); `{{<field
|
|
2460
|
-
*
|
|
2493
|
+
* WRUN_BATCHED_TIMED_TOOLTIP_TOKENS, printed as chart times); `{{<field>:<format>}}` picks a
|
|
2494
|
+
* number format, a word of WRUN_BATCHED_NUMBER_FORMATS (wrun-batched-readout.util:
|
|
2495
|
+
* `{{qty:units}}` prints a mark's quantity in the market's own unit, `{{qty:usd}}` in dollars). */
|
|
2461
2496
|
tooltip?: string | null;
|
|
2462
2497
|
/** The readout title, 1..40 chars (absent = the name read as words). */
|
|
2463
2498
|
label?: string;
|
|
@@ -2485,11 +2520,13 @@ export interface WrunMarksSection extends WrunBatchedSectionCommon {
|
|
|
2485
2520
|
colors?: WrunBatchedColor[];
|
|
2486
2521
|
/** The fill opacity in percent, 10..80 (default 30). */
|
|
2487
2522
|
opacity_pct?: number;
|
|
2488
|
-
/** The caption: mode 0 Off, 1 Big bubbles (the largest a bar), 2 All (default 1, `compact`, 22 px)
|
|
2523
|
+
/** The caption: mode 0 Off, 1 Big bubbles (the largest a bar), 2 All (default 1, `compact`, 22 px); its
|
|
2524
|
+
* format a word of WRUN_BATCHED_NUMBER_FORMATS (`usd` dollars, `units` the market's own unit: Big Trades
|
|
2525
|
+
* 0.7.0's Size shown as paints one of the two). */
|
|
2489
2526
|
text?: {
|
|
2490
2527
|
mode?: number;
|
|
2491
2528
|
field?: 'qty';
|
|
2492
|
-
format?:
|
|
2529
|
+
format?: WrunBatchedNumberFormat;
|
|
2493
2530
|
min_px?: number;
|
|
2494
2531
|
};
|
|
2495
2532
|
}
|
|
@@ -54,7 +54,9 @@ export type TradesLargeFloor = {
|
|
|
54
54
|
export interface TradesLaneLimits {
|
|
55
55
|
/** The history reads the TRADE_LARGE table: a `large` acquisition on a market the table holds. */
|
|
56
56
|
readsLargeTable: boolean;
|
|
57
|
-
/** The seed cap: the table's retention on the large lane, two hours on the raw tape
|
|
57
|
+
/** The seed cap: the table's retention on the large lane, two hours on the raw tape, and 0 (the live edge only)
|
|
58
|
+
* for a dollar floor on the raw tape, whose rows no writer priced in dollars. Every reader of the tape's served
|
|
59
|
+
* history reads this cap: the request builder, the reconcile's served start and the queue loss's repair. */
|
|
58
60
|
historyCapSec: number;
|
|
59
61
|
retentionSec: number;
|
|
60
62
|
/** The gateway's bar limit on the large lane (`tradesBarLimitStartMs`); none on the raw tape. */
|
|
@@ -62,10 +64,30 @@ export interface TradesLaneLimits {
|
|
|
62
64
|
}
|
|
63
65
|
export type LiveTradeCell = [number, number, number, number];
|
|
64
66
|
export type LiveTradesRow = [number, ...LiveTradeCell[]];
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
/** A tape acquisition's floor as the live rules read it (the K_TRADES payload's own fields): `minSize`
|
|
68
|
+
* in the raw unit a live print arrives in, or `minValue` in US dollars (C-DOLLAR) with the market's
|
|
69
|
+
* `valuePerUnit` (the US dollars one price unit times one size unit is worth there, the run head's
|
|
70
|
+
* `wrunMarketDollarUnit`); an option book's registry units price a dollar floor instead. */
|
|
71
|
+
export interface TradesTapeFloor {
|
|
72
|
+
/** The size floor: a print below it never folds; absent, non-finite or non-positive = no floor. */
|
|
68
73
|
minSize?: unknown;
|
|
74
|
+
/** The dollar floor: when finite and above zero it replaces `minSize`, a print folds only when its
|
|
75
|
+
* dollar value reaches it, and the cell's size is that value. */
|
|
76
|
+
minValue?: unknown;
|
|
77
|
+
/** The US dollars one price unit times one size unit of a live print is worth on the acquisition's
|
|
78
|
+
* market; absent, non-finite or non-positive, no print can be valued and none folds under a dollar
|
|
79
|
+
* floor (never a guessed multiplier). */
|
|
80
|
+
valuePerUnit?: unknown;
|
|
81
|
+
/** An option book's registry trade units: its prints are valued by their USD premium. */
|
|
82
|
+
optionUnits?: OptionTradeUnits | null;
|
|
83
|
+
/** The tape is judged per aggressor ORDER (wrun-tape-per-order.util `wrunTapePerOrder`): its live prints were
|
|
84
|
+
* admitted by the order gate (live-trades-order-gate.util), every fill of an order at or above the floor, the
|
|
85
|
+
* fills below it included. No per-fill floor applies to them (neither the tape's nor the large-print table's): the
|
|
86
|
+
* package or the template adds the fills back into one trade. A cell still carries the print's size, or its dollar
|
|
87
|
+
* value under a dollar floor, and a print that cannot be valued still never folds. */
|
|
88
|
+
perOrder?: boolean;
|
|
89
|
+
}
|
|
90
|
+
export interface LiveTradesMergeOptions extends TradesTapeFloor {
|
|
69
91
|
/** The large lane's table floor (the `large` acquisition): a print the large-print table never
|
|
70
92
|
* holds (`tradesBelowLargeFloor`; the print's envelope names the market, else this one) never
|
|
71
93
|
* folds, so no live print appears that the next reconcile cannot answer. */
|
|
@@ -91,6 +113,20 @@ export interface LiveTradePrint {
|
|
|
91
113
|
/** The series envelope's normalized symbol (`BTC-USDT`), when the frame names one. */
|
|
92
114
|
normalizedSymbol?: string;
|
|
93
115
|
}
|
|
116
|
+
interface LiveTradeWire {
|
|
117
|
+
price?: unknown;
|
|
118
|
+
amount?: unknown;
|
|
119
|
+
quoteAmount?: unknown;
|
|
120
|
+
timestamp?: {
|
|
121
|
+
seconds?: unknown;
|
|
122
|
+
nanoseconds?: unknown;
|
|
123
|
+
nanos?: unknown;
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
/** A live point's trade, whichever case carries it: the raw TRADE channel's `trade` or the large-print channel's
|
|
127
|
+
* `tradeLarge` (the history adapter reads the two the same way). Every reader of a live print's amount reads it here,
|
|
128
|
+
* so a floor never reads one case while the fold reads the other. */
|
|
129
|
+
export declare function liveTradeOfPoint(point: unknown): LiveTradeWire | undefined;
|
|
94
130
|
/**
|
|
95
131
|
* The chart bar a print at `tsMs` lands in, keyed the way the chart's candles of that market are:
|
|
96
132
|
* the CME Group session lattice at 4h, 1d and 1w on a CME venue (the gateway's
|
|
@@ -136,15 +172,37 @@ export declare function tradesServedStartMs(nowMs: number, historySec: number, i
|
|
|
136
172
|
barLimitSec?: number;
|
|
137
173
|
exchange?: unknown;
|
|
138
174
|
}): number;
|
|
139
|
-
/** One raw TRADE point read the way the fold reads it:
|
|
140
|
-
* signed side and envelope exchange; null for a point the
|
|
141
|
-
* or non-finite size, a bad price or stamp). */
|
|
175
|
+
/** One raw TRADE point (or a TRADE_LARGE one, its `tradeLarge` case) read the way the fold reads it:
|
|
176
|
+
* the print's stamp in ms, its price, size, signed side and envelope exchange; null for a point the
|
|
177
|
+
* fold rejects (no side, a non-positive or non-finite size, a bad price or stamp). */
|
|
142
178
|
export declare function readLiveTradePrint(newPoint: unknown): LiveTradePrint | null;
|
|
143
179
|
/** Whether the large-print table floors a market's prints by notional: its normalized symbol's
|
|
144
180
|
* quote (the second field, the gateway writer's `quoteAsset`: `BTC-USDT` quotes USDT) is USD or a
|
|
145
181
|
* dollar stablecoin. Any other quote (KRW, a coin) is never copied: the table holds none of its
|
|
146
182
|
* prints at all. */
|
|
147
183
|
export declare function tradesLargeQuotedInDollars(normalizedSymbol: unknown): boolean;
|
|
184
|
+
/** Whether a quote asset's amounts are US dollars: USD or a dollar stablecoin (the gateway writer's
|
|
185
|
+
* `peggedUSDQuotes`, the list the large-print table copies by). */
|
|
186
|
+
export declare function isTradesDollarQuoteAsset(asset: unknown): boolean;
|
|
187
|
+
/**
|
|
188
|
+
* The size a live print's cell carries on a tape, or null when the print does not reach the tape's floor: the ONE
|
|
189
|
+
* floor rule the wrun intake's enqueue, its fold and the K_TRADES control's fold share.
|
|
190
|
+
*
|
|
191
|
+
* - A dollar floor (`minValue` finite and above zero, C-DOLLAR): the print's dollar value, and the print folds only
|
|
192
|
+
* when it reaches the floor. On an option book (`optionUnits`) its USD premium by the registry units
|
|
193
|
+
* (`liveOptionPrintUsdPremium`: a coin-premium book has none); on every other market price x size x `valuePerUnit`.
|
|
194
|
+
* The size is the live-feed COIN arm's: live-feed already applied each instrument's contract multiplier and its
|
|
195
|
+
* inverse flag (coins on a crypto contract or inverse venue), and a CME Group contract stays one contract, whose
|
|
196
|
+
* point value `valuePerUnit` carries. A print that cannot be valued (no `valuePerUnit`, units that cannot say) is
|
|
197
|
+
* null: it never folds, whatever its size.
|
|
198
|
+
* - Otherwise the raw size, below a finite positive `minSize` null.
|
|
199
|
+
* - On a tape whose prints arrive judged per order (`floor.perOrder`), no floor: the dollar value (above zero), or the
|
|
200
|
+
* raw size, whatever the floor (the fills below it belong to an order that reached it).
|
|
201
|
+
*/
|
|
202
|
+
export declare function tradesTapeCellSize(print: Pick<LiveTradePrint, 'price' | 'size'>, floor: TradesTapeFloor): number | null;
|
|
203
|
+
/** Whether a tape floor can value a live print at all: a raw floor always can; a dollar floor needs the market's
|
|
204
|
+
* `valuePerUnit` or an option book's units. The live intake records a dollar tape that cannot, by name. */
|
|
205
|
+
export declare function tradesTapeFloorValuesPrints(floor: TradesTapeFloor): boolean;
|
|
148
206
|
/** A live print's notional: its quote amount when the frame carries one, else price x size. On an option
|
|
149
207
|
* book (`optionUnits`) the premium in the book's own currency by the resolver's live-print rule
|
|
150
208
|
* (option-trade-units.util `liveOptionPrintPremium`): a live print's size arrives in coin, live-feed having
|
|
@@ -164,19 +222,38 @@ export declare function tradesCmeProductRoot(market: TradesLargeMarket): string
|
|
|
164
222
|
* skips it); elsewhere the notional floor on a market quoted in dollars, null on any other quote
|
|
165
223
|
* (KRW, a coin): the table holds none of its prints. */
|
|
166
224
|
export declare function tradesLargeFloorOfMarket(market: TradesLargeMarket): TradesLargeFloor | null;
|
|
225
|
+
/**
|
|
226
|
+
* Whether the gateway floors a tape read on `exchange` per aggressor ORDER (tsdb-gateway `minAmountPerOrder`, on the
|
|
227
|
+
* TRADE and TRADE_LARGE reads): it sums the fills that share an order (the timestamp, exchange, category, coin, symbol,
|
|
228
|
+
* normalized symbol and side), keeps each order whose total reaches the read's floor (`minAmount`, or `minQuoteAmount`
|
|
229
|
+
* on a dollar tape) and answers EVERY fill of it, the fills below the floor included, rows and columns unchanged. The
|
|
230
|
+
* CME Group venues (the session lattice venues, the gateway's `isCMEGroupExchange`) honor it: one aggressor order there
|
|
231
|
+
* fills as many small fills on one exchange timestamp, and a floor of 10 judged per fill kept 2 of the 45 fills of a
|
|
232
|
+
* 147-contract NQZ6 buy (2026-10-23 14:31:54Z). Every other venue keeps the floor per fill and its read never names the
|
|
233
|
+
* field (a v2-only field moves a read off /v3). The per-order switch (wrun-tape-per-order.util `wrunTapePerOrder`) can
|
|
234
|
+
* hold on these venues alone, and the history worker checks this rule beside the ask's `perOrder` (k-trades.worker).
|
|
235
|
+
*/
|
|
236
|
+
export declare function tradesFloorPerOrder(exchange: unknown): boolean;
|
|
237
|
+
/** Whether a tape floor is a dollar floor (C-DOLLAR's `minValue`, finite and above zero). */
|
|
238
|
+
export declare function tradesTapeFloorIsDollars(floor: Pick<TradesTapeFloor, 'minValue'>): boolean;
|
|
167
239
|
/** The tape lane an acquisition rides on a market: the large lane (the table's retention, the
|
|
168
240
|
* gateway's bar limit, the declared history) when it asks `large` and the large-print table holds
|
|
169
241
|
* the market, else the raw tape (a two-hour seed inside the raw table's retention). On a CME Group
|
|
170
242
|
* venue a product root the writer lists no floor for is never copied, so a large acquisition on it
|
|
171
243
|
* reads the raw tape in place of an empty table and its live prints fold unfloored, the same rows
|
|
172
|
-
* either way, until the server lists the root. A
|
|
173
|
-
*
|
|
174
|
-
|
|
244
|
+
* either way, until the server lists the root. A dollar floor (`floor.minValue`) on that raw tape
|
|
245
|
+
* reads no history at all (`historyCapSec` 0, the live edge): the raw tape's quote amounts are priced
|
|
246
|
+
* by no writer rule (a backfill gap is NULL), so its rows are no proven dollars. A market quoted
|
|
247
|
+
* outside dollars keeps the table (the control cannot tell its quote: the table answers it empty, by
|
|
248
|
+
* its own rule). The ONE rule of a tape's served history: the request builder, the reconcile's served
|
|
249
|
+
* start and the queue loss's repair all read it with the acquisition's floor. */
|
|
250
|
+
export declare function tradesLaneLimits(large: boolean, market?: TradesLargeMarket, floor?: Pick<TradesTapeFloor, 'minValue'>): TradesLaneLimits;
|
|
175
251
|
/** Whether a history re-ask on a large acquisition answers a market's prints (the tape reconcile
|
|
176
252
|
* restoring what the queue cap dropped): the table on a market it holds, the raw tape on a CME
|
|
177
|
-
* Group root it skips
|
|
178
|
-
*
|
|
179
|
-
|
|
253
|
+
* Group root it skips under a size floor; never a lane that serves no history under the floor
|
|
254
|
+
* (`tradesLaneLimits`: a dollar floor on the raw tape), never a market quoted outside dollars. A
|
|
255
|
+
* market naming no normalized symbol is assumed held. */
|
|
256
|
+
export declare function tradesLargeHistoryAnswers(market: TradesLargeMarket, floor?: Pick<TradesTapeFloor, 'minValue'>): boolean;
|
|
180
257
|
/** True for a live print the large-print table never holds on a market it floors: a dollar-quoted
|
|
181
258
|
* print whose notional is under TRADES_LARGE_MIN_QUOTE_AMOUNT (the gateway copies a print whose
|
|
182
259
|
* quote amount reaches the floor), a CME Group print of fewer contracts than its root's floor (the
|
|
@@ -189,5 +266,8 @@ export declare function tradesLargeHistoryAnswers(market: TradesLargeMarket): bo
|
|
|
189
266
|
export declare function tradesBelowLargeFloor(print: LiveTradePrint, market?: TradesLargeMarket): boolean;
|
|
190
267
|
/** Fold one raw TRADE point onto the tape rows: the NEW rows array (the touched row a new array,
|
|
191
268
|
* every other row shared by reference), or null when the point is rejected (the caller keeps
|
|
192
|
-
* its rows). The print lands in the bar `options.barTs` names, else in its own bar on the lane's grid.
|
|
269
|
+
* its rows). The print lands in the bar `options.barTs` names, else in its own bar on the lane's grid.
|
|
270
|
+
* A per-order tape (`options.perOrder`) folds its prints under no floor, the large-print table's
|
|
271
|
+
* included. */
|
|
193
272
|
export declare function mergeLiveTradesDataPoint(lastDataPoint: ReadonlyArray<ArrayLike<unknown>>, newPoint: unknown, intervalMs: number, options?: LiveTradesMergeOptions): LiveTradesRow[] | null;
|
|
273
|
+
export {};
|