@orangecharts/wrun-chart-host 0.11.0 → 0.14.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 +1 -0
- package/dist/constants/feature-flags.constants.d.ts +3 -4
- package/dist/constants/feature-flags.constants.js +34 -52
- package/dist/constants/feature-limits.constants.d.ts +1 -1
- package/dist/constants/feature-limits.constants.js +5 -4
- package/dist/constants/interval.constants.d.ts +7 -0
- package/dist/constants/interval.constants.js +7 -0
- package/dist/constants/scriptEditor/cme-official-scripts.constants.d.ts +20 -149
- package/dist/constants/scriptEditor/cme-official-scripts.constants.js +20 -309
- package/dist/constants/stocks-compliance.constants.d.ts +15 -0
- package/dist/constants/stocks-compliance.constants.js +15 -0
- package/dist/host-env.d.ts +55 -3
- package/dist/host-env.js +6 -0
- package/dist/host-ports.types.d.ts +36 -3
- package/dist/index.d.ts +18 -0
- package/dist/index.js +19 -0
- package/dist/indicators/controls/tpo-session.util.d.ts +78 -15
- package/dist/indicators/controls/tpo-session.util.js +320 -242
- package/dist/instances/script-engine-worker-ohlcv-transfer.d.ts +6 -0
- package/dist/instances/script-engine-worker-ohlcv-transfer.js +16 -0
- package/dist/interfaces/cme-realtime.interface.d.ts +8 -0
- package/dist/interfaces/cme-realtime.interface.js +2 -1
- package/dist/interfaces/feed.interface.d.ts +15 -1
- package/dist/interfaces/replay.interface.d.ts +5 -0
- package/dist/interfaces/stocks-realtime.interface.d.ts +4 -3
- package/dist/interfaces/stocks-realtime.interface.js +5 -4
- package/dist/interfaces/wrun-runtime.interface.d.ts +97 -19
- package/dist/kscript-data/controls/live-ohlcv-merge.util.d.ts +17 -0
- package/dist/kscript-data/controls/live-ohlcv-merge.util.js +22 -0
- package/dist/kscript-data/controls/live-trades-merge.util.d.ts +46 -40
- package/dist/kscript-data/controls/live-trades-merge.util.js +80 -107
- package/dist/market-data/billing.interface.d.ts +9 -1
- package/dist/market-data/venue.d.ts +1 -1
- package/dist/market-data/venues/index.d.ts +4 -4
- package/dist/market-data/venues/stocks.contract.copy.json +4 -4
- package/dist/market-data/venues/stocks.d.ts +4 -4
- package/dist/market-data/venues/stocks.js +15 -13
- package/dist/settings-templates/frvp-fields.d.ts +12 -1
- package/dist/settings-templates/frvp-fields.js +15 -4
- package/dist/settings-templates/index.js +12 -5
- package/dist/settings-templates/indicator-fields.js +28 -2
- package/dist/settings-templates/tool-rules.d.ts +17 -8
- package/dist/settings-templates/tool-rules.js +15 -8
- package/dist/settings-templates/tool-tables.generated.js +4 -2
- package/dist/utility/auth/server-clock.util.d.ts +3 -1
- package/dist/utility/auth/server-clock.util.js +3 -1
- package/dist/utility/chart/book-live-bucket.util.js +2 -2
- package/dist/utility/chart/cache-alignment.util.d.ts +15 -7
- package/dist/utility/chart/cache-alignment.util.js +14 -7
- package/dist/utility/chart/chart-data-fetch-generation.util.d.ts +2 -0
- package/dist/utility/chart/chart-data-fetch-generation.util.js +16 -0
- package/dist/utility/chart/cme-session-bucket.util.d.ts +18 -75
- package/dist/utility/chart/cme-session-bucket.util.js +25 -332
- package/dist/utility/chart/continuous-contracts.util.js +6 -5
- package/dist/utility/chart/display-offset.leaf.d.ts +24 -0
- package/dist/utility/chart/display-offset.leaf.js +41 -0
- package/dist/utility/chart/effective-chart-session.util.d.ts +2 -1
- package/dist/utility/chart/effective-chart-session.util.js +13 -5
- package/dist/utility/chart/feed-interval.util.d.ts +6 -20
- package/dist/utility/chart/feed-interval.util.js +13 -22
- package/dist/utility/chart/fetch-dedupe-policy.util.d.ts +27 -7
- package/dist/utility/chart/fetch-dedupe-policy.util.js +86 -11
- package/dist/utility/chart/host-bar-placement.util.d.ts +7 -4
- package/dist/utility/chart/host-bar-placement.util.js +8 -2
- package/dist/utility/chart/indicator-inflight-registry.util.d.ts +32 -0
- package/dist/utility/chart/indicator-inflight-registry.util.js +52 -0
- package/dist/utility/chart/indicator-run-interval.util.d.ts +10 -4
- package/dist/utility/chart/indicator-run-interval.util.js +21 -12
- package/dist/utility/chart/interval-registry.util.d.ts +1 -1
- package/dist/utility/chart/interval-registry.util.js +1 -1
- package/dist/utility/chart/kscript-legend-entries.util.d.ts +12 -0
- package/dist/utility/chart/kscript-legend-entries.util.js +16 -0
- package/dist/utility/chart/kscript-run-interval-projection.util.d.ts +1 -1
- package/dist/utility/chart/kscript-run-interval-projection.util.js +4 -2
- package/dist/utility/chart/kscript-venue-policy.util.d.ts +53 -62
- package/dist/utility/chart/kscript-venue-policy.util.js +85 -94
- package/dist/utility/chart/live-bucket.util.d.ts +39 -17
- package/dist/utility/chart/live-bucket.util.js +103 -57
- package/dist/utility/chart/local-kscript-source-revalidation.util.d.ts +58 -20
- package/dist/utility/chart/local-kscript-source-revalidation.util.js +98 -23
- package/dist/utility/chart/local-kscript-warmup-depth.util.d.ts +35 -11
- package/dist/utility/chart/local-kscript-warmup-depth.util.js +24 -3
- package/dist/utility/chart/market-session-schedule.util.d.ts +8 -0
- package/dist/utility/chart/market-session-schedule.util.js +39 -1
- package/dist/utility/chart/market-session.util.d.ts +136 -0
- package/dist/utility/chart/market-session.util.js +341 -0
- package/dist/utility/chart/market-sessions.util.d.ts +83 -0
- package/dist/utility/chart/market-sessions.util.js +220 -0
- package/dist/utility/chart/om-panel.util.d.ts +5 -3
- package/dist/utility/chart/om-panel.util.js +42 -7
- package/dist/utility/chart/om-target.util.d.ts +14 -1
- package/dist/utility/chart/om-target.util.js +22 -5
- package/dist/utility/chart/opra-read-access.leaf.d.ts +16 -1
- package/dist/utility/chart/opra-read-access.leaf.js +22 -0
- package/dist/utility/chart/profile-row-height.util.d.ts +49 -16
- package/dist/utility/chart/profile-row-height.util.js +74 -37
- package/dist/utility/chart/rth-session.util.d.ts +55 -20
- package/dist/utility/chart/rth-session.util.js +94 -46
- package/dist/utility/chart/session-interval.util.d.ts +2 -1
- package/dist/utility/chart/session-interval.util.js +1 -3
- package/dist/utility/chart/session-lattice.util.d.ts +150 -0
- package/dist/utility/chart/session-lattice.util.js +488 -0
- package/dist/utility/chart/trading-day.util.d.ts +40 -2
- package/dist/utility/chart/trading-day.util.js +84 -7
- package/dist/utility/chart/us-equities-session.util.d.ts +32 -11
- package/dist/utility/chart/us-equities-session.util.js +44 -15
- package/dist/utility/chart/window-geometry.leaf.d.ts +28 -7
- package/dist/utility/chart/window-geometry.leaf.js +57 -8
- package/dist/utility/chart/wrun-bar-session-facts.util.d.ts +21 -14
- package/dist/utility/chart/wrun-bar-session-facts.util.js +32 -38
- package/dist/utility/chart/wrun-run-result.util.d.ts +29 -12
- package/dist/utility/chart/wrun-run-result.util.js +89 -25
- package/dist/utility/common/time.util.js +5 -4
- package/dist/utility/market-events/earnings-scope.util.d.ts +10 -5
- package/dist/utility/market-events/earnings-scope.util.js +17 -9
- package/dist/utility/market-events/market-events.util.d.ts +14 -7
- package/dist/utility/market-events/market-events.util.js +30 -17
- package/dist/utility/number-format.util.d.ts +14 -21
- package/dist/utility/number-format.util.js +38 -24
- package/dist/utility/options/option-venue-disclosure.util.d.ts +40 -6
- package/dist/utility/options/option-venue-disclosure.util.js +71 -11
- package/dist/utility/options/option-venue.util.d.ts +1 -1
- package/dist/utility/options/option-venue.util.js +1 -1
- package/dist/utility/pool-symbol.leaf.d.ts +7 -0
- package/dist/utility/pool-symbol.leaf.js +50 -5
- package/dist/utility/stocks/stock-display.util.d.ts +15 -0
- package/dist/utility/stocks/stock-display.util.js +37 -0
- package/dist/utility/symbol-selection/contract-expiry.util.js +5 -4
- package/dist/utility/v2/gate-plane.util.d.ts +6 -0
- package/dist/utility/v2/gate-plane.util.js +11 -1
- package/dist/utility/v2/gate-session-latch.util.d.ts +1 -1
- package/dist/utility/v2/gate-session-latch.util.js +3 -3
- package/dist/utility/v2/governed-tier.leaf.d.ts +17 -16
- package/dist/utility/v2/governed-tier.leaf.js +17 -16
- package/dist/utility/v2/stocks-governed.util.d.ts +5 -0
- package/dist/utility/v2/stocks-governed.util.js +14 -0
- package/dist/utility/v2/v2-enums.leaf.d.ts +13 -0
- package/dist/utility/v2/v2-enums.leaf.js +458 -0
- package/dist/utility/wrun/derived-roots.leaf.d.ts +21 -1
- package/dist/utility/wrun/derived-roots.leaf.js +27 -1
- package/dist/utility/wrun/derived-roots.util.d.ts +44 -32
- package/dist/utility/wrun/derived-roots.util.js +97 -56
- package/dist/utility/wrun/run-schedule/wrun-late-reads.util.d.ts +4 -3
- package/dist/utility/wrun/run-schedule/wrun-late-reads.util.js +4 -3
- package/dist/utility/wrun/sources/lanes/option_daily.d.ts +2 -1
- package/dist/utility/wrun/sources/lanes/option_daily.js +2 -1
- package/dist/utility/wrun/sources/lanes/options_flow.d.ts +3 -0
- package/dist/utility/wrun/sources/lanes/options_flow.js +23 -5
- package/dist/utility/wrun/sources/opra-option-lanes.util.d.ts +3 -4
- package/dist/utility/wrun/sources/row-lane-registry.js +9 -4
- package/dist/utility/wrun/sources/row-lanes/dark_pool.d.ts +19 -0
- package/dist/utility/wrun/sources/row-lanes/dark_pool.js +104 -0
- package/dist/utility/wrun/sources/row-lanes/index.js +2 -0
- package/dist/utility/wrun/sources/wrun-lane-fetch-abort.util.d.ts +20 -0
- package/dist/utility/wrun/sources/wrun-lane-fetch-abort.util.js +103 -0
- package/dist/utility/wrun/sources/wrun-poll-lane.types.d.ts +19 -2
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.d.ts +15 -13
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.js +49 -23
- package/dist/utility/wrun/sources/wrun-row-lane.types.d.ts +14 -9
- package/dist/utility/wrun/sources/wrun-row-lanes.util.d.ts +75 -27
- package/dist/utility/wrun/sources/wrun-row-lanes.util.js +139 -82
- package/dist/utility/wrun/wrun-app-layer.leaf.d.ts +78 -0
- package/dist/utility/wrun/wrun-app-layer.leaf.js +89 -0
- package/dist/utility/wrun/wrun-bar-count.util.d.ts +11 -7
- package/dist/utility/wrun/wrun-bar-count.util.js +12 -8
- package/dist/utility/wrun/wrun-batched-kinds.leaf.d.ts +13 -0
- package/dist/utility/wrun/wrun-batched-kinds.leaf.js +18 -0
- package/dist/utility/wrun/wrun-batched-marks.util.d.ts +41 -22
- package/dist/utility/wrun/wrun-batched-marks.util.js +255 -59
- package/dist/utility/wrun/wrun-batched-readout.util.d.ts +26 -19
- package/dist/utility/wrun/wrun-batched-readout.util.js +81 -27
- package/dist/utility/wrun/wrun-book-bands.leaf.d.ts +8 -0
- package/dist/utility/wrun/wrun-book-bands.leaf.js +7 -0
- package/dist/utility/wrun/wrun-candle-equal.leaf.d.ts +19 -0
- package/dist/utility/wrun/wrun-candle-equal.leaf.js +40 -0
- package/dist/utility/wrun/wrun-canvas-readout.util.d.ts +4 -2
- package/dist/utility/wrun/wrun-canvases.util.js +7 -3
- package/dist/utility/wrun/wrun-chart-context-names.util.d.ts +6 -3
- package/dist/utility/wrun/wrun-chart-context-names.util.js +8 -4
- package/dist/utility/wrun/wrun-chart-market-facts.util.d.ts +47 -29
- package/dist/utility/wrun/wrun-chart-market-facts.util.js +201 -201
- package/dist/utility/wrun/wrun-child-overlay-id.util.js +2 -1
- package/dist/utility/wrun/wrun-cme-legs-note.util.d.ts +15 -0
- package/dist/utility/wrun/wrun-cme-legs-note.util.js +49 -0
- package/dist/utility/wrun/wrun-cme-root-specs.util.d.ts +38 -0
- package/dist/utility/wrun/wrun-cme-root-specs.util.js +81 -0
- package/dist/utility/wrun/wrun-coin-lane-live.util.js +3 -0
- package/dist/utility/wrun/wrun-color-settings.util.d.ts +6 -1
- package/dist/utility/wrun/wrun-color-settings.util.js +32 -7
- package/dist/utility/wrun/wrun-dark-pool.util.d.ts +50 -0
- package/dist/utility/wrun/wrun-dark-pool.util.js +127 -0
- package/dist/utility/wrun/wrun-declared-warmup.util.d.ts +67 -12
- package/dist/utility/wrun/wrun-declared-warmup.util.js +165 -13
- package/dist/utility/wrun/wrun-draft-legend-note.util.d.ts +18 -8
- package/dist/utility/wrun/wrun-draft-legend-note.util.js +57 -11
- package/dist/utility/wrun/wrun-draft-overlay.util.d.ts +14 -10
- package/dist/utility/wrun/wrun-draft-overlay.util.js +26 -14
- package/dist/utility/wrun/wrun-earnings-facts.util.js +3 -2
- package/dist/utility/wrun/wrun-etf-funds.util.d.ts +2 -0
- package/dist/utility/wrun/wrun-etf-funds.util.js +4 -0
- package/dist/utility/wrun/wrun-held-lanes.util.js +8 -2
- package/dist/utility/wrun/wrun-history-as-of.util.d.ts +77 -0
- package/dist/utility/wrun/wrun-history-as-of.util.js +108 -0
- package/dist/utility/wrun/wrun-host.service.d.ts +64 -14
- package/dist/utility/wrun/wrun-host.service.js +137 -27
- package/dist/utility/wrun/wrun-hosted-wire-caps.d.ts +3 -3
- package/dist/utility/wrun/wrun-hosted-wire-caps.js +12 -2
- package/dist/utility/wrun/wrun-inert-legend.util.d.ts +13 -0
- package/dist/utility/wrun/wrun-inert-legend.util.js +31 -3
- package/dist/utility/wrun/wrun-input-requirements.leaf.d.ts +7 -5
- package/dist/utility/wrun/wrun-input-requirements.leaf.js +16 -6
- package/dist/utility/wrun/wrun-install-pacer.util.d.ts +26 -0
- package/dist/utility/wrun/wrun-install-pacer.util.js +145 -0
- package/dist/utility/wrun/wrun-kit-refusal-stages.types.d.ts +22 -0
- package/dist/utility/wrun/wrun-kit-refusal-stages.types.js +1 -0
- package/dist/utility/wrun/wrun-lane-refusal.leaf.d.ts +12 -5
- package/dist/utility/wrun/wrun-lane-refusal.leaf.js +23 -5
- package/dist/utility/wrun/wrun-lane-warmup.util.js +22 -4
- package/dist/utility/wrun/wrun-leg-close.util.d.ts +6 -5
- package/dist/utility/wrun/wrun-leg-close.util.js +11 -9
- package/dist/utility/wrun/wrun-leg-fetch.util.d.ts +3 -1
- package/dist/utility/wrun/wrun-leg-fetch.util.js +9 -2
- package/dist/utility/wrun/wrun-levels-child.util.d.ts +2 -0
- package/dist/utility/wrun/wrun-levels-child.util.js +6 -0
- package/dist/utility/wrun/wrun-lifecycle.contract.d.ts +4 -0
- package/dist/utility/wrun/wrun-live-intake.util.d.ts +15 -6
- package/dist/utility/wrun/wrun-live-intake.util.js +167 -47
- package/dist/utility/wrun/wrun-live-tick.util.d.ts +52 -8
- package/dist/utility/wrun/wrun-live-tick.util.js +648 -97
- package/dist/utility/wrun/wrun-market-facts.util.d.ts +16 -2
- package/dist/utility/wrun/wrun-market-facts.util.js +32 -3
- package/dist/utility/wrun/wrun-market-size-defaults.leaf.d.ts +27 -27
- package/dist/utility/wrun/wrun-market-size-defaults.leaf.js +28 -16
- package/dist/utility/wrun/wrun-market-size-defaults.util.js +34 -5
- package/dist/utility/wrun/wrun-oi-lane.util.d.ts +10 -7
- package/dist/utility/wrun/wrun-oi-lane.util.js +16 -10
- package/dist/utility/wrun/wrun-option-strike-flow.util.js +1 -1
- package/dist/utility/wrun/wrun-option-views.util.d.ts +2 -2
- package/dist/utility/wrun/wrun-option-views.util.js +5 -2
- package/dist/utility/wrun/wrun-options-flow-underlying.leaf.d.ts +5 -0
- package/dist/utility/wrun/wrun-options-flow-underlying.leaf.js +16 -0
- package/dist/utility/wrun/wrun-options-stop.util.d.ts +3 -2
- package/dist/utility/wrun/wrun-options-stop.util.js +6 -4
- package/dist/utility/wrun/wrun-overlay-drivers.util.d.ts +75 -11
- package/dist/utility/wrun/wrun-overlay-drivers.util.js +176 -43
- package/dist/utility/wrun/wrun-overlay-lifecycle.util.js +20 -10
- package/dist/utility/wrun/wrun-overlay-park.util.d.ts +84 -0
- package/dist/utility/wrun/wrun-overlay-park.util.js +135 -0
- package/dist/utility/wrun/wrun-overlay-recovery.util.d.ts +37 -4
- package/dist/utility/wrun/wrun-overlay-recovery.util.js +26 -14
- package/dist/utility/wrun/wrun-overlay-run.util.d.ts +239 -24
- package/dist/utility/wrun/wrun-overlay-run.util.js +2204 -405
- package/dist/utility/wrun/wrun-pack.util.d.ts +8 -5
- package/dist/utility/wrun/wrun-panel-mount.util.d.ts +2 -1
- package/dist/utility/wrun/wrun-panel-mount.util.js +20 -14
- package/dist/utility/wrun/wrun-panel-style.util.d.ts +4 -2
- package/dist/utility/wrun/wrun-panel-style.util.js +3 -2
- package/dist/utility/wrun/wrun-pin-spelling.util.d.ts +7 -0
- package/dist/utility/wrun/wrun-pin-spelling.util.js +18 -4
- package/dist/utility/wrun/wrun-pin-venues.util.d.ts +26 -17
- package/dist/utility/wrun/wrun-pin-venues.util.js +43 -36
- package/dist/utility/wrun/wrun-pinned-lanes.util.d.ts +58 -0
- package/dist/utility/wrun/wrun-pinned-lanes.util.js +72 -0
- package/dist/utility/wrun/wrun-prefix-cohort.util.js +2 -1
- package/dist/utility/wrun/wrun-prefix-lanes.util.d.ts +22 -9
- package/dist/utility/wrun/wrun-prefix-lanes.util.js +145 -26
- package/dist/utility/wrun/wrun-prefix-proof.util.d.ts +29 -0
- package/dist/utility/wrun/wrun-prefix-proof.util.js +23 -5
- package/dist/utility/wrun/wrun-refusal-surface.util.d.ts +9 -1
- package/dist/utility/wrun/wrun-refusal-surface.util.js +15 -1
- package/dist/utility/wrun/wrun-refusal.util.d.ts +19 -1
- package/dist/utility/wrun/wrun-refusal.util.js +103 -16
- package/dist/utility/wrun/wrun-registry-errors.util.d.ts +20 -6
- package/dist/utility/wrun/wrun-registry-errors.util.js +20 -6
- package/dist/utility/wrun/wrun-replay-rows.util.js +6 -10
- package/dist/utility/wrun/wrun-run-health.util.d.ts +89 -2
- package/dist/utility/wrun/wrun-run-health.util.js +204 -1
- package/dist/utility/wrun/wrun-run-interval-session.util.d.ts +2 -2
- package/dist/utility/wrun/wrun-run-interval-session.util.js +2 -2
- package/dist/utility/wrun/wrun-run-interval.util.d.ts +9 -8
- package/dist/utility/wrun/wrun-run-interval.util.js +13 -11
- package/dist/utility/wrun/wrun-sandbox-row-source.js +5 -2
- package/dist/utility/wrun/wrun-script-inputs.util.d.ts +13 -3
- package/dist/utility/wrun/wrun-script-inputs.util.js +51 -13
- package/dist/utility/wrun/wrun-session-composition.util.d.ts +81 -0
- package/dist/utility/wrun/wrun-session-composition.util.js +169 -0
- package/dist/utility/wrun/wrun-setting-words.util.d.ts +10 -7
- package/dist/utility/wrun/wrun-setting-words.util.js +25 -7
- package/dist/utility/wrun/wrun-source-rows.util.d.ts +94 -28
- package/dist/utility/wrun/wrun-source-rows.util.js +738 -93
- package/dist/utility/wrun/wrun-stream-clock.util.d.ts +45 -0
- package/dist/utility/wrun/wrun-stream-clock.util.js +108 -0
- package/dist/utility/wrun/wrun-tape-coins.util.d.ts +116 -0
- package/dist/utility/wrun/wrun-tape-coins.util.js +110 -0
- package/dist/utility/wrun/wrun-tape-source.util.d.ts +62 -32
- package/dist/utility/wrun/wrun-tape-source.util.js +72 -34
- package/dist/utility/wrun/wrun-tier-grid.util.d.ts +13 -5
- package/dist/utility/wrun/wrun-tier-grid.util.js +23 -13
- package/dist/utility/wrun/wrun-tpo-rows.util.js +2 -1
- package/dist/utility/wrun/wrun-trades-lane.util.d.ts +73 -0
- package/dist/utility/wrun/wrun-trades-lane.util.js +82 -0
- package/dist/utility/wrun/wrun-twin-compute-inputs.util.d.ts +5 -0
- package/dist/utility/wrun/wrun-twin-compute-inputs.util.js +9 -2
- package/dist/utility/wrun/wrun-visibility-table.d.ts +13 -0
- package/dist/utility/wrun/wrun-visibility-table.js +9 -0
- package/dist/utility/wrun/wrun-volume-profile.util.js +44 -32
- package/dist/utils/replay/replay-buffer-math.d.ts +16 -6
- package/dist/utils/replay/replay-buffer-math.js +60 -30
- package/dist/workers/constants/socket-slots.d.ts +11 -7
- package/dist/workers/constants/socket-slots.js +6 -5
- package/package.json +11 -11
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import type { StocksTapeListingVenue } from '../../interfaces/stocks-realtime.interface.js';
|
|
2
2
|
export declare function isStocksTapeGoverned(exchange: string | undefined | null): boolean;
|
|
3
|
+
/** The tape as the copy names it: its listing venue, spaced (`NASDAQ_TAPE` reads NASDAQ, `NYSE_ARCA_TAPE` NYSE ARCA); any
|
|
4
|
+
* other code as it is. The one label of the tape's delay notes (the order-flow legends, a wrun lane's legend note). */
|
|
5
|
+
export declare function stocksTapeVenueLabel(exchange: unknown): string;
|
|
6
|
+
/** The one US stocks tape a venue list names alone (repeats and case aside): the read, the lattice and the asks share it. */
|
|
7
|
+
export declare function singleStockTapeVenue(venues: unknown): string | undefined;
|
|
3
8
|
/**
|
|
4
9
|
* The name a request carries on the wire for an exchange: a tape code becomes its listing venue (the `Exchange` enum
|
|
5
10
|
* member the stocks gate keys the tape by, `NASDAQ_TAPE` -> `NASDAQ`); any other code is itself. The one translation
|
|
@@ -14,6 +14,20 @@ export function isStocksTapeGoverned(exchange) {
|
|
|
14
14
|
const code = normalizeExchangeCode(exchange);
|
|
15
15
|
return code !== null && STOCKS_GOVERNED_EXCHANGE_SET.has(code);
|
|
16
16
|
}
|
|
17
|
+
/** The tape as the copy names it: its listing venue, spaced (`NASDAQ_TAPE` reads NASDAQ, `NYSE_ARCA_TAPE` NYSE ARCA); any
|
|
18
|
+
* other code as it is. The one label of the tape's delay notes (the order-flow legends, a wrun lane's legend note). */
|
|
19
|
+
export function stocksTapeVenueLabel(exchange) {
|
|
20
|
+
const venue = typeof exchange === 'string' && isStocksTapeGoverned(exchange)
|
|
21
|
+
? STOCKS_TAPE_WIRE_EXCHANGE[exchange.toUpperCase()]
|
|
22
|
+
: undefined;
|
|
23
|
+
return (venue ?? String(exchange ?? '')).replace(/_/g, ' ');
|
|
24
|
+
}
|
|
25
|
+
/** The one US stocks tape a venue list names alone (repeats and case aside): the read, the lattice and the asks share it. */
|
|
26
|
+
export function singleStockTapeVenue(venues) {
|
|
27
|
+
const listed = (Array.isArray(venues) ? venues : [venues]).filter((venue) => typeof venue === 'string' && venue.length > 0);
|
|
28
|
+
const unique = [...new Set(listed.map((venue) => venue.toUpperCase()))];
|
|
29
|
+
return unique.length === 1 && isStocksTapeGoverned(unique[0]) ? listed[0] : undefined;
|
|
30
|
+
}
|
|
17
31
|
/**
|
|
18
32
|
* The name a request carries on the wire for an exchange: a tape code becomes its listing venue (the `Exchange` enum
|
|
19
33
|
* member the stocks gate keys the tape by, `NASDAQ_TAPE` -> `NASDAQ`); any other code is itself. The one translation
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { AggregationInterval as PbAggregationInterval, AssetClass as PbAssetClass, Category as PbCategory, Exchange as PbExchange, Representation as PbRepresentation, Type as PbType } from '@orangecharts/orange-v2-pb-common';
|
|
2
|
+
export declare const AggregationInterval: typeof PbAggregationInterval;
|
|
3
|
+
export type AggregationInterval = PbAggregationInterval;
|
|
4
|
+
export declare const AssetClass: typeof PbAssetClass;
|
|
5
|
+
export type AssetClass = PbAssetClass;
|
|
6
|
+
export declare const Category: typeof PbCategory;
|
|
7
|
+
export type Category = PbCategory;
|
|
8
|
+
export declare const Exchange: typeof PbExchange;
|
|
9
|
+
export type Exchange = PbExchange;
|
|
10
|
+
export declare const Representation: typeof PbRepresentation;
|
|
11
|
+
export type Representation = PbRepresentation;
|
|
12
|
+
export declare const Type: typeof PbType;
|
|
13
|
+
export type Type = PbType;
|
|
@@ -0,0 +1,458 @@
|
|
|
1
|
+
/** The runtime shape of a TypeScript numeric enum: every name to its number, every number to its last name. */
|
|
2
|
+
function numericEnum(forward) {
|
|
3
|
+
const both = {};
|
|
4
|
+
for (const [name, value] of Object.entries(forward)) {
|
|
5
|
+
both[name] = value;
|
|
6
|
+
both[value] = name;
|
|
7
|
+
}
|
|
8
|
+
return both;
|
|
9
|
+
}
|
|
10
|
+
export const AggregationInterval = numericEnum({
|
|
11
|
+
UNKNOWN_AGGREGATION_INTERVAL: 0,
|
|
12
|
+
MINUTE: 1,
|
|
13
|
+
FIVE_MINUTES: 2,
|
|
14
|
+
FIFTEEN_MINUTES: 3,
|
|
15
|
+
HOUR: 4,
|
|
16
|
+
FOUR_HOURS: 5,
|
|
17
|
+
DAY: 6,
|
|
18
|
+
WEEK: 7,
|
|
19
|
+
SECOND: 8,
|
|
20
|
+
THIRTY_MINUTES: 9,
|
|
21
|
+
MONTH: 10,
|
|
22
|
+
QUARTER_YEAR: 11,
|
|
23
|
+
QUARTER: 11,
|
|
24
|
+
YEAR: 12,
|
|
25
|
+
TWO_MINUTES: 13,
|
|
26
|
+
THREE_MINUTES: 14,
|
|
27
|
+
TEN_MINUTES: 15,
|
|
28
|
+
FORTY_FIVE_MINUTES: 16,
|
|
29
|
+
TWO_HOURS: 17,
|
|
30
|
+
SIX_HOURS: 18,
|
|
31
|
+
EIGHT_HOURS: 19,
|
|
32
|
+
TWELVE_HOURS: 20,
|
|
33
|
+
THREE_DAYS: 21,
|
|
34
|
+
FIVE_SECONDS: 22,
|
|
35
|
+
FIFTEEN_SECONDS: 23,
|
|
36
|
+
THIRTY_SECONDS: 24,
|
|
37
|
+
HALF_YEAR: 25,
|
|
38
|
+
});
|
|
39
|
+
export const AssetClass = numericEnum({
|
|
40
|
+
UNKNOWN_ASSET_CLASS: 0,
|
|
41
|
+
ASSET_CLASS_CRYPTO: 1,
|
|
42
|
+
ASSET_CLASS_ETF: 3,
|
|
43
|
+
ASSET_CLASS_STOCK: 4,
|
|
44
|
+
ASSET_CLASS_FOREX: 5,
|
|
45
|
+
ASSET_CLASS_COMMODITY: 6,
|
|
46
|
+
ASSET_CLASS_INDEX: 7,
|
|
47
|
+
ASSET_CLASS_PREDICTION: 8,
|
|
48
|
+
ASSET_CLASS_ECONOMIC: 9,
|
|
49
|
+
});
|
|
50
|
+
export const Category = numericEnum({
|
|
51
|
+
UNKNOWN_CATEGORY: 0,
|
|
52
|
+
SPOT: 1,
|
|
53
|
+
PERPETUAL: 2,
|
|
54
|
+
FUTURE: 3,
|
|
55
|
+
OPTION: 4,
|
|
56
|
+
COMBO: 5,
|
|
57
|
+
UTA: 6,
|
|
58
|
+
SWAP_CONTRACT: 7,
|
|
59
|
+
});
|
|
60
|
+
export const Exchange = numericEnum({
|
|
61
|
+
UNKNOWN_EXCHANGE: 0,
|
|
62
|
+
BITMEX: 1,
|
|
63
|
+
DERIBIT: 2,
|
|
64
|
+
BINANCE_FUTURES: 3,
|
|
65
|
+
BINANCE_DELIVERY: 4,
|
|
66
|
+
BINANCE_OPTIONS: 5,
|
|
67
|
+
BINANCE: 6,
|
|
68
|
+
FTX: 7,
|
|
69
|
+
OKEX_FUTURES: 8,
|
|
70
|
+
OKEX_OPTIONS: 9,
|
|
71
|
+
OKEX_SWAP: 10,
|
|
72
|
+
OKEX: 11,
|
|
73
|
+
HUOBI_DM: 12,
|
|
74
|
+
HUOBI_DM_SWAP: 13,
|
|
75
|
+
HUOBI_DM_LINEAR_SWAP: 14,
|
|
76
|
+
HUOBI: 15,
|
|
77
|
+
BITFINEX_DERIVATIVES: 16,
|
|
78
|
+
BITFINEX: 17,
|
|
79
|
+
COINBASE: 18,
|
|
80
|
+
CRYPTOFACILITIES: 19,
|
|
81
|
+
KRAKEN: 20,
|
|
82
|
+
BITSTAMP: 21,
|
|
83
|
+
GEMINI: 22,
|
|
84
|
+
POLONIEX: 23,
|
|
85
|
+
BYBIT: 24,
|
|
86
|
+
PHEMEX: 25,
|
|
87
|
+
DELTA: 26,
|
|
88
|
+
FTX_US: 27,
|
|
89
|
+
BINANCE_US: 28,
|
|
90
|
+
GATE_IO_FUTURES: 29,
|
|
91
|
+
GATE_IO: 30,
|
|
92
|
+
OKCOIN: 31,
|
|
93
|
+
BITFLYER: 32,
|
|
94
|
+
HITBTC: 33,
|
|
95
|
+
COINFLEX: 34,
|
|
96
|
+
BINANCE_JERSEY: 35,
|
|
97
|
+
BINANCE_DEX: 36,
|
|
98
|
+
UPBIT: 37,
|
|
99
|
+
ASCENDEX: 38,
|
|
100
|
+
DYDX: 39,
|
|
101
|
+
SERUM: 40,
|
|
102
|
+
HUOBI_DM_OPTIONS: 41,
|
|
103
|
+
CME: 42,
|
|
104
|
+
COMMON_BINANCE: 43,
|
|
105
|
+
BITBANK: 44,
|
|
106
|
+
COMMON_BITFINEX: 45,
|
|
107
|
+
BITHUMB: 46,
|
|
108
|
+
BITTREX: 47,
|
|
109
|
+
COINCHECK: 48,
|
|
110
|
+
COMMON_GATE_IO: 49,
|
|
111
|
+
COINBASE_PRO: 50,
|
|
112
|
+
COMMON_HUOBI: 51,
|
|
113
|
+
KUCOIN: 52,
|
|
114
|
+
LMAX: 53,
|
|
115
|
+
COMMON_OKEX: 54,
|
|
116
|
+
LIQUID: 55,
|
|
117
|
+
ZAIF: 56,
|
|
118
|
+
RIBBON: 57,
|
|
119
|
+
EMULATOR: 58,
|
|
120
|
+
GRAYSCALE: 59,
|
|
121
|
+
BYBIT_SPOT: 60,
|
|
122
|
+
NYSE_AMERICAN: 61,
|
|
123
|
+
NASDAQ_BX: 62,
|
|
124
|
+
NYSE_NATIONAL: 63,
|
|
125
|
+
FINRA: 64,
|
|
126
|
+
UNLISTED_TRADING_PRIVILEGES: 65,
|
|
127
|
+
NASDAQ_ISE: 66,
|
|
128
|
+
CBOE_EDGA: 67,
|
|
129
|
+
CBOE_EDGX: 68,
|
|
130
|
+
NYSE_CHICAGO: 69,
|
|
131
|
+
NYSE: 70,
|
|
132
|
+
NYSE_ARCA: 71,
|
|
133
|
+
NASDAQ: 72,
|
|
134
|
+
CONSOLIDATED_TAPE_ASSOCIATION: 73,
|
|
135
|
+
LTSE: 74,
|
|
136
|
+
IEX: 75,
|
|
137
|
+
CBOE: 76,
|
|
138
|
+
NASDAQ_PHILADELPHIA: 77,
|
|
139
|
+
CBOE_BYX: 78,
|
|
140
|
+
CBOE_BZX: 79,
|
|
141
|
+
MIAX_PEARL: 80,
|
|
142
|
+
MEMBERS_EXCHANGE: 81,
|
|
143
|
+
OTC_EQUITY_SECURITY: 82,
|
|
144
|
+
BITGET: 83,
|
|
145
|
+
HYPERLIQUID: 84,
|
|
146
|
+
HYPERLIQUID_FUTURES: 85,
|
|
147
|
+
MARKET_INDEPENDENT: 86,
|
|
148
|
+
NASDAQ_SMALL_CAP: 87,
|
|
149
|
+
NASDAQ_INT: 88,
|
|
150
|
+
NASDAQ_PSX: 89,
|
|
151
|
+
PYTH_NETWORK: 90,
|
|
152
|
+
COINBASE_INTERNATIONAL: 91,
|
|
153
|
+
US_STOCKS: 92,
|
|
154
|
+
POLYGON: 92,
|
|
155
|
+
POLYGON_FX: 93,
|
|
156
|
+
POLYMARKET: 94,
|
|
157
|
+
KALSHI: 95,
|
|
158
|
+
CBOT: 98,
|
|
159
|
+
ICE: 99,
|
|
160
|
+
NYMEX: 100,
|
|
161
|
+
LBMA: 101,
|
|
162
|
+
PLATTS: 102,
|
|
163
|
+
COMEX: 104,
|
|
164
|
+
LME: 105,
|
|
165
|
+
HYPERLIQUID_HIP3: 106,
|
|
166
|
+
HYPERLIQUID_HIP4: 107,
|
|
167
|
+
FX_OTC: 108,
|
|
168
|
+
POLYGON_INDICES: 109,
|
|
169
|
+
BUNDESBANK: 110,
|
|
170
|
+
JAPAN_MOF: 111,
|
|
171
|
+
BANK_OF_CANADA: 112,
|
|
172
|
+
NORGES_BANK: 113,
|
|
173
|
+
RIKSBANK: 114,
|
|
174
|
+
SARB: 115,
|
|
175
|
+
ECB: 116,
|
|
176
|
+
RBA: 117,
|
|
177
|
+
BANK_OF_ENGLAND: 118,
|
|
178
|
+
BANK_OF_KOREA: 119,
|
|
179
|
+
BANQUE_DE_FRANCE: 120,
|
|
180
|
+
NBB: 121,
|
|
181
|
+
TESOURO_NACIONAL: 122,
|
|
182
|
+
ECONOMICS: 124,
|
|
183
|
+
UNISWAP_V2: 150,
|
|
184
|
+
SUSHISWAP_V2: 151,
|
|
185
|
+
PANCAKESWAP_V2: 152,
|
|
186
|
+
SHIBASWAP: 153,
|
|
187
|
+
FRAXSWAP: 154,
|
|
188
|
+
SOLIDLY: 155,
|
|
189
|
+
UNISWAP_V3: 156,
|
|
190
|
+
SUSHISWAP_V3: 157,
|
|
191
|
+
PANCAKESWAP_V3: 158,
|
|
192
|
+
SOLIDLY_V3: 159,
|
|
193
|
+
RAYDIUM_V4: 160,
|
|
194
|
+
RAYDIUM_CLMM: 161,
|
|
195
|
+
ORCA_WHIRLPOOL: 162,
|
|
196
|
+
ORCA_V2: 163,
|
|
197
|
+
METEORA_POOL: 164,
|
|
198
|
+
METEORA_DLMM: 165,
|
|
199
|
+
UNISWAP_V4: 166,
|
|
200
|
+
US_TREASURY: 167,
|
|
201
|
+
BNB_ONCHAIN: 171,
|
|
202
|
+
SOLANA_ONCHAIN: 172,
|
|
203
|
+
BULLISH: 173,
|
|
204
|
+
DERIVE: 174,
|
|
205
|
+
OPRA: 175,
|
|
206
|
+
CRYPTOCAP: 176,
|
|
207
|
+
LIGHTER: 177,
|
|
208
|
+
VARIATIONAL: 178,
|
|
209
|
+
VARIATIONAL_SWAP: 179,
|
|
210
|
+
});
|
|
211
|
+
export const Representation = numericEnum({
|
|
212
|
+
UNKNOWN_REPRESENTATION: 0,
|
|
213
|
+
REPRESENTATION_NATIVE: 1,
|
|
214
|
+
REPRESENTATION_TOKENIZED: 2,
|
|
215
|
+
});
|
|
216
|
+
export const Type = numericEnum({
|
|
217
|
+
UNKNOWN_TYPE: 0,
|
|
218
|
+
TRADE: 1,
|
|
219
|
+
BOOK_CHANGE: 2,
|
|
220
|
+
DERIVATIVE_TICKER: 3,
|
|
221
|
+
QUOTE: 4,
|
|
222
|
+
OPTION_SUMMARY: 5,
|
|
223
|
+
LIQUIDATION: 6,
|
|
224
|
+
GLOBAL_VOLUME: 7,
|
|
225
|
+
SPOT_MARGIN_RATE: 8,
|
|
226
|
+
TRADE_AGG: 9,
|
|
227
|
+
OPEN_INTEREST_AGG: 10,
|
|
228
|
+
FUNDING_RATE_AGG: 11,
|
|
229
|
+
LIQUIDATION_AGG: 12,
|
|
230
|
+
GLOBAL_VOLUME_AGG: 13,
|
|
231
|
+
SPOT_MARGIN_RATE_AGG: 14,
|
|
232
|
+
LONG_SHORT_RATIO: 15,
|
|
233
|
+
LONG_SHORT_RATIO_AGG: 16,
|
|
234
|
+
CME_OPEN_INTEREST: 18,
|
|
235
|
+
CME_OPEN_INTEREST_AGG: 19,
|
|
236
|
+
DEFI_OPTIONS_VAULT: 20,
|
|
237
|
+
DELTA_FUNDING_OI: 21,
|
|
238
|
+
CORRELATION_BETA: 22,
|
|
239
|
+
DEFI_OPTIONS_VAULT_AGG: 23,
|
|
240
|
+
DERIBIT_TRADE: 24,
|
|
241
|
+
HISTORICAL_VOLATILITY: 25,
|
|
242
|
+
VOLATILITY_INDEX: 26,
|
|
243
|
+
AGGREGATED_DAILY_VOLUME: 27,
|
|
244
|
+
AGGREGATED_OPEN_INTEREST: 28,
|
|
245
|
+
IV_VS_RV: 29,
|
|
246
|
+
BITFINEX_POSITION: 30,
|
|
247
|
+
BITFINEX_MARGIN_RATES: 31,
|
|
248
|
+
BITFINEX_FUNDING_SIZE: 32,
|
|
249
|
+
BITFINEX_CREDIT_SIZE: 33,
|
|
250
|
+
BITFINEX_ACTIVE_CREDIT_SIZE: 34,
|
|
251
|
+
ANNUALIZED_BASIS: 35,
|
|
252
|
+
SKEW: 36,
|
|
253
|
+
IMPLIED_VOLATILITY: 37,
|
|
254
|
+
PUT_CALL_RATIO: 39,
|
|
255
|
+
MARKETCAP: 40,
|
|
256
|
+
IV_VS_RV_AGG: 41,
|
|
257
|
+
SKEW_AGG: 42,
|
|
258
|
+
IMPLIED_VOLATILITY_AGG: 43,
|
|
259
|
+
ANNUALIZED_BASIS_AGG: 44,
|
|
260
|
+
AGGREGATED_OPEN_INTEREST_AGG: 45,
|
|
261
|
+
MARKETCAP_AGG: 46,
|
|
262
|
+
PUT_CALL_RATIO_AGG: 47,
|
|
263
|
+
AGGREGATED_DAILY_VOLUME_AGG: 48,
|
|
264
|
+
PERPS_PREMIUM_AGG: 49,
|
|
265
|
+
GEOGRAPHICAL_TRADING_HOUR: 53,
|
|
266
|
+
GEOGRAPHICAL_TRADING_HOUR_AGG: 54,
|
|
267
|
+
OPTION_OPEN_INTEREST_AGG: 59,
|
|
268
|
+
VPIN: 61,
|
|
269
|
+
VPIN_AGG: 62,
|
|
270
|
+
TWAP_COEFFICIENT: 63,
|
|
271
|
+
TWAP_COEFFICIENT_AGG: 64,
|
|
272
|
+
TWAP_OI_CHANGE_RATE: 65,
|
|
273
|
+
TWAP_OI_CHANGE_RATE_AGG: 66,
|
|
274
|
+
TWAP_RATE: 67,
|
|
275
|
+
TWAP_RATE_AGG: 68,
|
|
276
|
+
TWAP_FFT_KNN: 71,
|
|
277
|
+
TWAP_FFT_KNN_AGG: 72,
|
|
278
|
+
IMPLIED_VOLATILITY_LTP: 73,
|
|
279
|
+
IMPLIED_VOLATILITY_LTP_AGG: 74,
|
|
280
|
+
SKEW_LTP: 75,
|
|
281
|
+
SKEW_LTP_AGG: 76,
|
|
282
|
+
VOLATILITY_INDEX_AGG: 77,
|
|
283
|
+
MARGIN_DEBT_GROWTH: 78,
|
|
284
|
+
MARGIN_DEBT_GROWTH_AGG: 79,
|
|
285
|
+
BINANCE_OI_AND_VOLUME_SUM: 80,
|
|
286
|
+
BINANCE_OI_AND_VOLUME_SUM_AGG: 81,
|
|
287
|
+
GRAYSCALE_MARKET_DATA: 82,
|
|
288
|
+
GRAYSCALE_MARKET_DATA_AGG: 83,
|
|
289
|
+
BINANCE_DELIVERY_INSURANCE_BALANCE: 84,
|
|
290
|
+
BINANCE_DELIVERY_INSURANCE_BALANCE_AGG: 85,
|
|
291
|
+
BINANCE_FUTURES_INSURANCE_BALANCE: 86,
|
|
292
|
+
BINANCE_FUTURES_INSURANCE_BALANCE_AGG: 87,
|
|
293
|
+
GRAYSCALE_TRUST_DATA: 88,
|
|
294
|
+
GRAYSCALE_TRUST_DATA_AGG: 89,
|
|
295
|
+
OKEX_MARGIN_LENDING_RATIO: 90,
|
|
296
|
+
OKEX_MARGIN_LENDING_RATIO_AGG: 91,
|
|
297
|
+
BINANCE_PROOF_OF_RESERVES: 92,
|
|
298
|
+
BINANCE_PROOF_OF_RESERVES_AGG: 93,
|
|
299
|
+
BITFINEX_POSITION_AGG: 94,
|
|
300
|
+
BITFINEX_MARGIN_RATES_AGG: 95,
|
|
301
|
+
BITFINEX_FUNDING_SIZE_AGG: 96,
|
|
302
|
+
BITFINEX_CREDIT_SIZE_AGG: 97,
|
|
303
|
+
BITFINEX_ACTIVE_CREDIT_SIZE_AGG: 98,
|
|
304
|
+
BINANCE_SPOT_MARGIN_RATE: 99,
|
|
305
|
+
BINANCE_SPOT_MARGIN_RATE_AGG: 100,
|
|
306
|
+
IMPLIED_VOLATILITY_OPTION_SUMMARY: 101,
|
|
307
|
+
IMPLIED_VOLATILITY_OPTION_SUMMARY_AGG: 102,
|
|
308
|
+
SKEW_OPTION_SUMMARY: 103,
|
|
309
|
+
SKEW_OPTION_SUMMARY_AGG: 104,
|
|
310
|
+
OPTION_SUMMARY_IV_AGG: 105,
|
|
311
|
+
BOOK_SNAPSHOT: 106,
|
|
312
|
+
TRADE_SIDE_AGNOSTIC_AGG: 107,
|
|
313
|
+
MMTW: 108,
|
|
314
|
+
MMTH: 109,
|
|
315
|
+
MMFI: 110,
|
|
316
|
+
MMOH: 111,
|
|
317
|
+
PREMIUM_INDEX_KLINE: 112,
|
|
318
|
+
PREMIUM_INDEX_KLINE_AGG: 113,
|
|
319
|
+
ETF_TRUST_DATA: 114,
|
|
320
|
+
ETF_TRUST_DATA_AGG: 115,
|
|
321
|
+
BOOK_CHANGE_L3: 116,
|
|
322
|
+
BINANCE_OPEN_INTEREST: 117,
|
|
323
|
+
BOOK_CHANGE_AGG: 118,
|
|
324
|
+
BOOK_SNAPSHOT_AGG: 119,
|
|
325
|
+
BLOCK_BOOK_SNAPSHOT_AGG: 120,
|
|
326
|
+
BYBIT_MARGIN_BORROW_RATE: 121,
|
|
327
|
+
BYBIT_MARGIN_BORROW_RATE_AGG: 122,
|
|
328
|
+
BYBIT_LENDING_INFO: 123,
|
|
329
|
+
BYBIT_LENDING_INFO_AGG: 124,
|
|
330
|
+
BYBIT_BORROW_INFO: 125,
|
|
331
|
+
BYBIT_BORROW_INFO_AGG: 126,
|
|
332
|
+
BYBIT_COLLATERAL_INFO: 127,
|
|
333
|
+
BYBIT_COLLATERAL_INFO_AGG: 128,
|
|
334
|
+
FUNDING_RATE: 129,
|
|
335
|
+
OPEN_INTEREST: 130,
|
|
336
|
+
BLOCK_BOOK_SNAPSHOT: 131,
|
|
337
|
+
ETHENA_COLLATERAL_INFO: 132,
|
|
338
|
+
ETHENA_COLLATERAL_INFO_AGG: 133,
|
|
339
|
+
VOLUME_DELTA: 134,
|
|
340
|
+
CME_REFERENCE_RATE: 135,
|
|
341
|
+
CME_REFERENCE_RATE_AGG: 136,
|
|
342
|
+
CFTC_COT: 137,
|
|
343
|
+
CFTC_COT_AGG: 138,
|
|
344
|
+
VWAP: 139,
|
|
345
|
+
HYPERLIQUID_ACCOUNT_SUMMARY: 140,
|
|
346
|
+
HYPERLIQUID_ACCOUNT_POSITION: 141,
|
|
347
|
+
HYPERLIQUID_ACCOUNT_SUMMARY_DELTA: 142,
|
|
348
|
+
HYPERLIQUID_ACCOUNT_POSITION_DELTA: 143,
|
|
349
|
+
EMA: 144,
|
|
350
|
+
DERIBIT_TRADE_OPTIONS: 145,
|
|
351
|
+
DERIBIT_TRADE_OPTIONS_AGG: 146,
|
|
352
|
+
HYPERLIQUID_LIQUIDATION_AGG: 147,
|
|
353
|
+
SYNTHETIC_BLOCK_BOOK_SNAPSHOT: 148,
|
|
354
|
+
SYNTHETIC_BLOCK_BOOK_SNAPSHOT_AGG: 149,
|
|
355
|
+
AGGREGATED_VOLUME_AGG: 150,
|
|
356
|
+
HISTORICAL_VOLATILITY_AGG: 151,
|
|
357
|
+
AGGREGATED_LIQUIDATION_AGG: 152,
|
|
358
|
+
HISTORICAL_RETURN: 153,
|
|
359
|
+
PRICE_INDEX: 154,
|
|
360
|
+
SWAP: 155,
|
|
361
|
+
SWAP_AGG: 156,
|
|
362
|
+
ETF_FLOW: 157,
|
|
363
|
+
ETF_FLOW_AGG: 158,
|
|
364
|
+
CRYPTO_MARKET_METRICS: 159,
|
|
365
|
+
CRYPTO_MARKET_METRICS_AGG: 160,
|
|
366
|
+
TRADE_QUOTE: 161,
|
|
367
|
+
TRADE_QUOTE_AGG: 162,
|
|
368
|
+
PREDICTED_FUNDING_RATE: 163,
|
|
369
|
+
PREDICTED_FUNDING_RATE_AGG: 164,
|
|
370
|
+
TICKER: 165,
|
|
371
|
+
TICKER_AGG: 166,
|
|
372
|
+
OKEX_LSR: 167,
|
|
373
|
+
BINANCE_INSURANCE_BALANCE: 168,
|
|
374
|
+
BINANCE_INSURANCE_BALANCE_AGG: 169,
|
|
375
|
+
ETF_NAV: 170,
|
|
376
|
+
ETF_NAV_AGG: 171,
|
|
377
|
+
VOLUME_PROFILE_AGG: 172,
|
|
378
|
+
SWAP_SIDE_AGNOSTIC_AGG: 173,
|
|
379
|
+
TOKEN_SUPPLY: 174,
|
|
380
|
+
TOKEN_SUPPLY_AGG: 175,
|
|
381
|
+
ETF_METRICS: 176,
|
|
382
|
+
ETF_METRICS_AGG: 177,
|
|
383
|
+
BOOK_WALL: 178,
|
|
384
|
+
SECTOR_DOMINANCE_AGG: 179,
|
|
385
|
+
HYPERLIQUID_LIQUIDATION_EVENT: 180,
|
|
386
|
+
HYPERLIQUID_LIQUIDATION_EVENT_AGG: 181,
|
|
387
|
+
BOOK_TOP: 182,
|
|
388
|
+
BOOK_TOP_AGG: 183,
|
|
389
|
+
TREASURY_INFO: 184,
|
|
390
|
+
TREASURY_INFO_AGG: 185,
|
|
391
|
+
TPO_AGG: 186,
|
|
392
|
+
FRED_OBSERVATION: 187,
|
|
393
|
+
FRED_OBSERVATION_AGG: 188,
|
|
394
|
+
TOKEN_UNLOCKS: 189,
|
|
395
|
+
ETF_PREMIUM_RATE_AGG: 190,
|
|
396
|
+
POLYGON_TICKER_OVERVIEW: 191,
|
|
397
|
+
POLYGON_TICKER_OVERVIEW_AGG: 192,
|
|
398
|
+
POLYGON_BALANCE_SHEET: 193,
|
|
399
|
+
POLYGON_BALANCE_SHEET_AGG: 194,
|
|
400
|
+
POLYGON_INCOME_STATEMENT: 195,
|
|
401
|
+
POLYGON_INCOME_STATEMENT_AGG: 196,
|
|
402
|
+
POLYGON_CASH_FLOW_STATEMENT: 197,
|
|
403
|
+
POLYGON_CASH_FLOW_STATEMENT_AGG: 198,
|
|
404
|
+
COINGECKO_TICKER_HOLDINGS: 199,
|
|
405
|
+
COINGECKO_TICKER_HOLDINGS_AGG: 200,
|
|
406
|
+
MARKET_EVENT: 201,
|
|
407
|
+
MARKET_EVENT_OUTLIER: 202,
|
|
408
|
+
MARKET_EVENT_MARKET: 203,
|
|
409
|
+
MARKET_EVENT_CITATION: 204,
|
|
410
|
+
PREDICTION_MARKET_TRADE: 205,
|
|
411
|
+
CRYPTO_NARRATIVE_FINDING: 206,
|
|
412
|
+
ZSCORE: 207,
|
|
413
|
+
RSI: 208,
|
|
414
|
+
POLYMARKET_ORDER_FILLED: 209,
|
|
415
|
+
POLYMARKET_POSITION_SPLIT: 210,
|
|
416
|
+
POLYMARKET_POSITION_MERGE: 211,
|
|
417
|
+
POLYMARKET_PAYOUT_REDEMPTION: 212,
|
|
418
|
+
POLYMARKET_ACCOUNT_POSITION: 213,
|
|
419
|
+
POLYMARKET_REALIZED_PNL: 214,
|
|
420
|
+
POLYMARKET_REALIZED_PNL_AGG: 215,
|
|
421
|
+
POLYMARKET_ORDERS_MATCHED: 216,
|
|
422
|
+
HYPERLIQUID_ORDER_STATUS: 217,
|
|
423
|
+
HYPERLIQUID_TRIGGER_LIQUIDITY_AGG: 218,
|
|
424
|
+
POLYMARKET_TRADER_SUMMARY: 219,
|
|
425
|
+
POLYMARKET_ANALYTICS_LEADERBOARD: 220,
|
|
426
|
+
POLYMARKET_ANALYTICS_TRADER_PROFILE: 221,
|
|
427
|
+
POLYMARKET_ANALYTICS_POSITIONS: 222,
|
|
428
|
+
POLYMARKET_ANALYTICS_MARKET_SUMMARY: 223,
|
|
429
|
+
POLYMARKET_ANALYTICS_USER_CATEGORIES: 224,
|
|
430
|
+
HYPERLIQUID_TRIGGER_LIQUIDITY_SNAPSHOT: 225,
|
|
431
|
+
POLYMARKET_ANALYTICS_PLATFORM_SUMMARY: 226,
|
|
432
|
+
POLYMARKET_ANALYTICS_PLATFORM_DISTRIBUTION: 227,
|
|
433
|
+
HYPERLIQUID_LIQUIDATION_SNAPSHOT: 228,
|
|
434
|
+
TRADE_VOLUME_BY_SIZE_AGG: 229,
|
|
435
|
+
OPTION_SUMMARY_AGG: 230,
|
|
436
|
+
OBSERVATION: 231,
|
|
437
|
+
SETTLEMENT: 232,
|
|
438
|
+
ORDER_BOOK_STATS: 233,
|
|
439
|
+
LARGE_ORDER_EVENT: 234,
|
|
440
|
+
ICEBERG_EVENT: 235,
|
|
441
|
+
OPTION_DEALER_INVENTORY_AGG: 236,
|
|
442
|
+
ORDER_BOOK_COMPOSITION: 237,
|
|
443
|
+
MEMECOIN_TOKEN_STATE: 241,
|
|
444
|
+
MEMECOIN_SWAP: 242,
|
|
445
|
+
CLEARED_VOLUME: 243,
|
|
446
|
+
MEMECOIN_ANALYTICS_TRADERS: 244,
|
|
447
|
+
MEMECOIN_ANALYTICS_HOLDERS: 245,
|
|
448
|
+
TRADE_LARGE: 246,
|
|
449
|
+
OPTION_STRIKE_AGG: 247,
|
|
450
|
+
OFF_EXCHANGE_AGG: 248,
|
|
451
|
+
OPTION_PRINT: 249,
|
|
452
|
+
OPTION_PRINT_AGG: 250,
|
|
453
|
+
OPTION_SURFACE: 251,
|
|
454
|
+
OPTION_UNDERLYING_STATS: 252,
|
|
455
|
+
OPTION_STRIKE_FLOW_AGG: 253,
|
|
456
|
+
CRYPTO_DOMINANCE: 254,
|
|
457
|
+
CRYPTO_DOMINANCE_AGG: 255,
|
|
458
|
+
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The derived-roots table, a leaf with no imports: the wrun `underlying` knob (derived-roots.util) and the built-in
|
|
3
|
-
* options overlays' Chain row (utility/options/options-derived-root.util in the web app) read the same rows.
|
|
3
|
+
* options overlays' Chain row (utility/options/options-derived-root.util in the web app) read the same rows. The knob's
|
|
4
|
+
* words ride here too, so the painted sheet (wrun-color-settings.util) reads them before candles as the planners do.
|
|
4
5
|
*/
|
|
5
6
|
/**
|
|
6
7
|
* Contract F's mapping table (the kit's DERIVED_ROOTS in options.ts, row for row): a chart root and the roots whose
|
|
@@ -11,3 +12,22 @@ export declare const WRUN_DERIVED_ROOTS: Readonly<Record<string, readonly string
|
|
|
11
12
|
export declare function wrunDerivedRootsOf(chartRoot: string): readonly string[];
|
|
12
13
|
/** The root `underlying: "derived"` reads on a chart of `chartRoot`: the table's first, undefined off the table. */
|
|
13
14
|
export declare function defaultDerivedRoot(chartRoot: string): string | undefined;
|
|
15
|
+
/** The knob's default word: the chart's own chain. */
|
|
16
|
+
export declare const WRUN_UNDERLYING_AUTO = "auto";
|
|
17
|
+
/** The knob's word for the table's default root of the chart's root. */
|
|
18
|
+
export declare const WRUN_UNDERLYING_DERIVED = "derived";
|
|
19
|
+
/** What the knob says: the chart's own chain, the table's default root of the chart's root, or one root. */
|
|
20
|
+
export type WrunUnderlyingKnob = {
|
|
21
|
+
kind: 'auto';
|
|
22
|
+
} | {
|
|
23
|
+
kind: 'derived';
|
|
24
|
+
} | {
|
|
25
|
+
kind: 'root';
|
|
26
|
+
root: string;
|
|
27
|
+
};
|
|
28
|
+
/** The knob's literal reading (absent is "auto"); undefined for a value that is no literal (a setting's name, a word
|
|
29
|
+
* outside the grammar). */
|
|
30
|
+
export declare function wrunUnderlyingKnobOf(value: unknown): WrunUnderlyingKnob | undefined;
|
|
31
|
+
/** The setting a knob value names: an author's handle ("@root") or the name the sheet records ("root"); undefined for
|
|
32
|
+
* a literal and for anything else. */
|
|
33
|
+
export declare function wrunUnderlyingSettingName(value: unknown): string | undefined;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The derived-roots table, a leaf with no imports: the wrun `underlying` knob (derived-roots.util) and the built-in
|
|
3
|
-
* options overlays' Chain row (utility/options/options-derived-root.util in the web app) read the same rows.
|
|
3
|
+
* options overlays' Chain row (utility/options/options-derived-root.util in the web app) read the same rows. The knob's
|
|
4
|
+
* words ride here too, so the painted sheet (wrun-color-settings.util) reads them before candles as the planners do.
|
|
4
5
|
*/
|
|
5
6
|
/**
|
|
6
7
|
* Contract F's mapping table (the kit's DERIVED_ROOTS in options.ts, row for row): a chart root and the roots whose
|
|
@@ -25,3 +26,28 @@ export function wrunDerivedRootsOf(chartRoot) {
|
|
|
25
26
|
export function defaultDerivedRoot(chartRoot) {
|
|
26
27
|
return wrunDerivedRootsOf(chartRoot)[0];
|
|
27
28
|
}
|
|
29
|
+
/** The knob's default word: the chart's own chain. */
|
|
30
|
+
export const WRUN_UNDERLYING_AUTO = 'auto';
|
|
31
|
+
/** The knob's word for the table's default root of the chart's root. */
|
|
32
|
+
export const WRUN_UNDERLYING_DERIVED = 'derived';
|
|
33
|
+
/** A root as the knob spells it: capitals and digits, one letter at least (SPX, QQQ, ES, 6E, BTC). */
|
|
34
|
+
const WRUN_UNDERLYING_ROOT_RE = /^(?=[A-Z0-9]*[A-Z])[A-Z0-9]{1,10}$/;
|
|
35
|
+
/** A setting's name as the sheet records it (om's WRUN_NAME_PATTERN), or as an author's handle names it. */
|
|
36
|
+
const WRUN_SETTING_NAME_RE = /^[a-z0-9][a-z0-9._-]*$/;
|
|
37
|
+
/** The knob's literal reading (absent is "auto"); undefined for a value that is no literal (a setting's name, a word
|
|
38
|
+
* outside the grammar). */
|
|
39
|
+
export function wrunUnderlyingKnobOf(value) {
|
|
40
|
+
if (value === undefined || value === WRUN_UNDERLYING_AUTO)
|
|
41
|
+
return { kind: 'auto' };
|
|
42
|
+
if (value === WRUN_UNDERLYING_DERIVED)
|
|
43
|
+
return { kind: 'derived' };
|
|
44
|
+
return typeof value === 'string' && WRUN_UNDERLYING_ROOT_RE.test(value) ? { kind: 'root', root: value } : undefined;
|
|
45
|
+
}
|
|
46
|
+
/** The setting a knob value names: an author's handle ("@root") or the name the sheet records ("root"); undefined for
|
|
47
|
+
* a literal and for anything else. */
|
|
48
|
+
export function wrunUnderlyingSettingName(value) {
|
|
49
|
+
if (typeof value !== 'string' || wrunUnderlyingKnobOf(value) !== undefined)
|
|
50
|
+
return undefined;
|
|
51
|
+
const name = value.startsWith('@') ? value.slice(1) : value;
|
|
52
|
+
return WRUN_SETTING_NAME_RE.test(name) ? name : undefined;
|
|
53
|
+
}
|