@vninvestcharts/widget 0.0.0-stage → 0.2.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/LICENSE +201 -0
- package/NOTICE.md +83 -0
- package/README.md +851 -3
- package/dist/AlertsModal-WKEUDTUZ.js +2 -0
- package/dist/ConnectedTradingPanel-KWJMIKTN.css +2 -0
- package/dist/ConnectedTradingPanel-XDKMOQY5.js +2 -0
- package/dist/PineEditorPanel-AUXB4FD3.js +2 -0
- package/dist/PineEditorPanel-V6YN2OTU.css +2 -0
- package/dist/RightSidebarDockHost-6FPZ6EKV.css +2 -0
- package/dist/RightSidebarDockHost-OBFXKSIY.js +2 -0
- package/dist/StrategyTesterPanel-6IUTS2P4.js +2 -0
- package/dist/StrategyTesterPanel-LEWEUMXP.css +2 -0
- package/dist/VolumeProfileWorker-UREKVPUE.js +189 -0
- package/dist/adapters/index.cjs +2532 -0
- package/dist/adapters/index.d.mts +673 -0
- package/dist/adapters/index.d.ts +673 -0
- package/dist/adapters/index.js +2521 -0
- package/dist/adapters/index.umd.js +2535 -0
- package/dist/chunk-5T6DGB3V.js +2 -0
- package/dist/chunk-66JBEGR3.js +4 -0
- package/dist/chunk-6D7DVBIK.js +2 -0
- package/dist/chunk-76E7CKUD.js +2 -0
- package/dist/chunk-AKWVXRQ6.js +2 -0
- package/dist/chunk-FHHSTO6Z.js +2 -0
- package/dist/chunk-HPL723JA.js +2 -0
- package/dist/chunk-NVGTF73S.js +2 -0
- package/dist/chunk-PNIB4OM3.js +2 -0
- package/dist/chunk-UKJ5AKQX.js +595 -0
- package/dist/chunk-UYJTX3SD.js +2 -0
- package/dist/combined.css +3068 -0
- package/dist/css-modules-manifest.json +297 -0
- package/dist/dist-Y6PZ2RN3.js +12 -0
- package/dist/drawing/index.cjs +53 -0
- package/dist/drawing/index.d.mts +2 -0
- package/dist/drawing/index.d.ts +2 -0
- package/dist/drawing/index.js +2 -0
- package/dist/drawing/index.umd.js +54 -0
- package/dist/dts/drawing-shim.d.ts +3 -0
- package/dist/dts/index.d.ts +31 -0
- package/dist/dts/lib/Chart.d.ts +31 -0
- package/dist/dts/lib/ChartContext.d.ts +10 -0
- package/dist/dts/lib/EventCapture.d.ts +3 -0
- package/dist/dts/lib/GenericChartComponent.d.ts +5 -0
- package/dist/dts/lib/GenericComponent.d.ts +124 -0
- package/dist/dts/lib/StockChartContext.d.ts +53 -0
- package/dist/dts/lib/adapters/BaseAdapter.d.ts +25 -0
- package/dist/dts/lib/adapters/BinanceAdapter.d.ts +51 -0
- package/dist/dts/lib/adapters/CSVAdapter.d.ts +17 -0
- package/dist/dts/lib/adapters/ContinuousContractAdapter.d.ts +63 -0
- package/dist/dts/lib/adapters/ContinuousContractTypes.d.ts +154 -0
- package/dist/dts/lib/adapters/DBAdapter.d.ts +16 -0
- package/dist/dts/lib/adapters/DataAdapter.d.ts +136 -0
- package/dist/dts/lib/adapters/DjangoVnstockAdapter.d.ts +15 -0
- package/dist/dts/lib/adapters/LocalCacheAdapter.d.ts +18 -0
- package/dist/dts/lib/adapters/MockAdapter.d.ts +22 -0
- package/dist/dts/lib/adapters/RESTAdapter.d.ts +16 -0
- package/dist/dts/lib/adapters/StockDataAdapter.d.ts +1 -0
- package/dist/dts/lib/adapters/UDFDataAdapter.d.ts +29 -0
- package/dist/dts/lib/adapters/VNStocksAdapter.d.ts +8 -0
- package/dist/dts/lib/adapters/WSAdapter.d.ts +30 -0
- package/dist/dts/lib/adapters/gapFixture.d.ts +71 -0
- package/dist/dts/lib/adapters/index.d.ts +15 -0
- package/dist/dts/lib/adapters/rollAlgorithms.d.ts +68 -0
- package/dist/dts/lib/advisory/AdvisoryPanel.d.ts +5 -0
- package/dist/dts/lib/alerts/AlertEvaluator.d.ts +5 -0
- package/dist/dts/lib/alerts/AlertManager.d.ts +123 -0
- package/dist/dts/lib/alerts/types.d.ts +58 -0
- package/dist/dts/lib/cache/cacheDebug.d.ts +3 -0
- package/dist/dts/lib/calendars/ExchangeCalendar.d.ts +23 -0
- package/dist/dts/lib/calendars/calendarRegistry.d.ts +10 -0
- package/dist/dts/lib/calendars/index.d.ts +3 -0
- package/dist/dts/lib/core/ChartPane.d.ts +8 -0
- package/dist/dts/lib/core/ChartSplitter.d.ts +70 -0
- package/dist/dts/lib/core/ChartTerminal.d.ts +12 -0
- package/dist/dts/lib/core/ErrorBoundary.d.ts +17 -0
- package/dist/dts/lib/core/IndicatorLegend.d.ts +47 -0
- package/dist/dts/lib/core/PaneHeader.d.ts +24 -0
- package/dist/dts/lib/core/PaneLabel.d.ts +8 -0
- package/dist/dts/lib/core/PaneSplitter.d.ts +9 -0
- package/dist/dts/lib/core/SeriesPicker.d.ts +10 -0
- package/dist/dts/lib/core/calculators/alignBarsByDate.d.ts +38 -0
- package/dist/dts/lib/core/calculators/buildIndicatorComputationPlan.d.ts +16 -0
- package/dist/dts/lib/core/calculators/calcCVDApprox.d.ts +6 -0
- package/dist/dts/lib/core/calculators/calcStrengthElder.d.ts +7 -0
- package/dist/dts/lib/core/calculators/calcWhaleApprox.d.ts +6 -0
- package/dist/dts/lib/core/calculators/computationHelpers.d.ts +12 -0
- package/dist/dts/lib/core/calculators/computeIndicatorComputationResult.d.ts +3 -0
- package/dist/dts/lib/core/calculators/computeMarketStructure.d.ts +8 -0
- package/dist/dts/lib/core/calculators/computeMomentum.d.ts +22 -0
- package/dist/dts/lib/core/calculators/computeMovingAverage.d.ts +15 -0
- package/dist/dts/lib/core/calculators/computeProfile.d.ts +9 -0
- package/dist/dts/lib/core/calculators/computeTrend.d.ts +10 -0
- package/dist/dts/lib/core/calculators/computeVolatility.d.ts +14 -0
- package/dist/dts/lib/core/calculators/computeVolumeFlow.d.ts +19 -0
- package/dist/dts/lib/core/calculators/enrichData.d.ts +7 -0
- package/dist/dts/lib/core/calculators/enrichDataWithCanonicalStore.d.ts +33 -0
- package/dist/dts/lib/core/calculators/exoticChartData.d.ts +140 -0
- package/dist/dts/lib/core/calculators/fixtures/mockData.d.ts +2 -0
- package/dist/dts/lib/core/calculators/indicatorComputation.d.ts +27 -0
- package/dist/dts/lib/core/calculators/indicatorComputationTypes.d.ts +249 -0
- package/dist/dts/lib/core/calculators/materializeIndicatorValues.d.ts +3 -0
- package/dist/dts/lib/core/calculators/normalizePrices.d.ts +36 -0
- package/dist/dts/lib/core/calculators/resolveCalculationOrder.d.ts +17 -0
- package/dist/dts/lib/core/calculators/types.d.ts +269 -0
- package/dist/dts/lib/core/canvas/ChartRenderContext.d.ts +14 -0
- package/dist/dts/lib/core/canvas/OverlayCanvas.d.ts +19 -0
- package/dist/dts/lib/core/context/ChartSyncContext.d.ts +21 -0
- package/dist/dts/lib/core/context/DataContext.d.ts +15 -0
- package/dist/dts/lib/core/context/PaneManagerContext.d.ts +10 -0
- package/dist/dts/lib/core/hooks/paneSizingHelpers.d.ts +13 -0
- package/dist/dts/lib/core/hooks/useCanvasResize.d.ts +8 -0
- package/dist/dts/lib/core/hooks/useChartTheme.d.ts +12 -0
- package/dist/dts/lib/core/hooks/useDynamicPanes.d.ts +155 -0
- package/dist/dts/lib/core/hooks/useIndicatorSets.d.ts +20 -0
- package/dist/dts/lib/core/hooks/usePaneManager.d.ts +39 -0
- package/dist/dts/lib/core/hooks/usePaneSizes.d.ts +52 -0
- package/dist/dts/lib/core/index.d.ts +41 -0
- package/dist/dts/lib/core/paneScaleSlotDomains.d.ts +3 -0
- package/dist/dts/lib/core/registry/SeriesRegistry.d.ts +22 -0
- package/dist/dts/lib/core/registry/filterPanesBySeriesTier.d.ts +43 -0
- package/dist/dts/lib/core/registry/marketStructure.d.ts +7 -0
- package/dist/dts/lib/core/registry/momentum.d.ts +20 -0
- package/dist/dts/lib/core/registry/movingAverage.d.ts +14 -0
- package/dist/dts/lib/core/registry/priceChartTypes.d.ts +16 -0
- package/dist/dts/lib/core/registry/profile.d.ts +8 -0
- package/dist/dts/lib/core/registry/registerAll.d.ts +1 -0
- package/dist/dts/lib/core/registry/registerPhaseOne.d.ts +3 -0
- package/dist/dts/lib/core/registry/registryCore.d.ts +77 -0
- package/dist/dts/lib/core/registry/trend.d.ts +11 -0
- package/dist/dts/lib/core/registry/volatility.d.ts +11 -0
- package/dist/dts/lib/core/registry/volumeFlow.d.ts +20 -0
- package/dist/dts/lib/core/replay/BarReplayController.d.ts +62 -0
- package/dist/dts/lib/core/replay/ReplayEventBus.d.ts +68 -0
- package/dist/dts/lib/core/replay/ReplayFillSimulator.d.ts +33 -0
- package/dist/dts/lib/core/replay/ReplayOrderBook.d.ts +24 -0
- package/dist/dts/lib/core/replay/ReplayPositionManager.d.ts +30 -0
- package/dist/dts/lib/core/replay/ReplaySessionAnalytics.d.ts +31 -0
- package/dist/dts/lib/core/replay/createReplayTradeMarkerPrimitives.d.ts +7 -0
- package/dist/dts/lib/core/replay/pnlUtils.d.ts +2 -0
- package/dist/dts/lib/core/replay/replayBrokerAdapters.d.ts +51 -0
- package/dist/dts/lib/core/replay/replayTradingTypes.d.ts +61 -0
- package/dist/dts/lib/core/scales/computeScales.d.ts +8 -0
- package/dist/dts/lib/core/seriesValueResolver.d.ts +27 -0
- package/dist/dts/lib/core/sets/builtins.d.ts +2 -0
- package/dist/dts/lib/core/sets/indicatorSetCodec.d.ts +15 -0
- package/dist/dts/lib/core/trading/AnalyticsEngine.d.ts +56 -0
- package/dist/dts/lib/core/trading/BrokerAPI.d.ts +40 -0
- package/dist/dts/lib/core/trading/ExecutionSimulator.d.ts +53 -0
- package/dist/dts/lib/core/trading/FillSettlement.d.ts +38 -0
- package/dist/dts/lib/core/trading/MarketDataPort.d.ts +41 -0
- package/dist/dts/lib/core/trading/MarketRules.d.ts +58 -0
- package/dist/dts/lib/core/trading/OrderManagementSystem.d.ts +57 -0
- package/dist/dts/lib/core/trading/PositionManager.d.ts +79 -0
- package/dist/dts/lib/core/trading/RiskEngine.d.ts +40 -0
- package/dist/dts/lib/core/trading/SettlementCalendar.d.ts +10 -0
- package/dist/dts/lib/core/trading/VirtualBrokerEngine.d.ts +92 -0
- package/dist/dts/lib/core/trading/orderMargin.d.ts +3 -0
- package/dist/dts/lib/core/trading/storage/InMemoryStorageAdapter.d.ts +10 -0
- package/dist/dts/lib/core/trading/storage/TradingStorage.d.ts +34 -0
- package/dist/dts/lib/core/trading/types.d.ts +99 -0
- package/dist/dts/lib/core/types/chart.d.ts +21 -0
- package/dist/dts/lib/core/types/indicator-catalog.d.ts +38 -0
- package/dist/dts/lib/core/types/indicator-set.d.ts +19 -0
- package/dist/dts/lib/core/types/pane-descriptor.d.ts +46 -0
- package/dist/dts/lib/core/types/seriesComponents.d.ts +15 -0
- package/dist/dts/lib/credentials/credentialStore.d.ts +93 -0
- package/dist/dts/lib/helper/SaveChartAsImage.d.ts +90 -0
- package/dist/dts/lib/indicator/defaultOptionsForAppearance.d.ts +105 -0
- package/dist/dts/lib/indicators/builtin/MTFWrapper.d.ts +3 -0
- package/dist/dts/lib/indicators/builtin/VolumeProfileWorker.d.ts +19 -0
- package/dist/dts/lib/indicators/builtin/ac.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/alligator.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/anchoredVwap.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/ao.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/bbi.d.ts +10 -0
- package/dist/dts/lib/indicators/builtin/bias.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/bollinger.d.ts +9 -0
- package/dist/dts/lib/indicators/builtin/brar.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/cci.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/chaikinOscillator.d.ts +14 -0
- package/dist/dts/lib/indicators/builtin/chaikinVol.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/ci.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/cmf.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/cr.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/cvd.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/deltaProfile.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/dema.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/dma.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/dmi.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/donchian.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/ema.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/emv.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/footprint.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/fractals.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/gator.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/hma.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/hv.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/ichimoku.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/kdj.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/keltner.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/ma.d.ts +10 -0
- package/dist/dts/lib/indicators/builtin/maRibbon.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/macd.d.ts +9 -0
- package/dist/dts/lib/indicators/builtin/marketProfile.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/mfi.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/mtm.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/obv.d.ts +10 -0
- package/dist/dts/lib/indicators/builtin/pivotHighLow.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/pivotStandard.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/psy.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/pvt.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/roc.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/rsi.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/sar.d.ts +10 -0
- package/dist/dts/lib/indicators/builtin/sma.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/smfi.d.ts +8 -0
- package/dist/dts/lib/indicators/builtin/stdDev.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/strengthRelative.d.ts +7 -0
- package/dist/dts/lib/indicators/builtin/supertrend.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/tema.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/trix.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/volOsc.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/volume.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/volumeProfile.d.ts +8 -0
- package/dist/dts/lib/indicators/builtin/vr.d.ts +10 -0
- package/dist/dts/lib/indicators/builtin/vwap.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/vwma.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/wma.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/wr.d.ts +10 -0
- package/dist/dts/lib/indicators/builtin/wyckoffWave.d.ts +15 -0
- package/dist/dts/lib/indicators/index.d.ts +63 -0
- package/dist/dts/lib/indicators/indicatorValueShapes.d.ts +15 -0
- package/dist/dts/lib/indicators/outputKeys.d.ts +50 -0
- package/dist/dts/lib/indicators/overlays/CVDIndicator.d.ts +26 -0
- package/dist/dts/lib/indicators/overlays/DarkFlowBadge.d.ts +19 -0
- package/dist/dts/lib/indicators/overlays/ExternalCVDOverlay.d.ts +15 -0
- package/dist/dts/lib/indicators/overlays/WhaleBubbleOverlay.d.ts +14 -0
- package/dist/dts/lib/indicators/overlays/WhaleMarketBubbleOverlay.d.ts +27 -0
- package/dist/dts/lib/indicators/overlays/whaleDetector.d.ts +66 -0
- package/dist/dts/lib/indicators/registry.d.ts +6 -0
- package/dist/dts/lib/indicators/types.d.ts +5 -0
- package/dist/dts/lib/indicators/utils.d.ts +259 -0
- package/dist/dts/lib/pinescript/PineCompiler.d.ts +34 -0
- package/dist/dts/lib/pinescript/ast.d.ts +73 -0
- package/dist/dts/lib/pinescript/compile.d.ts +40 -0
- package/dist/dts/lib/pinescript/grammar.d.ts +12 -0
- package/dist/dts/lib/pinescript/pine.worker.d.ts +1 -0
- package/dist/dts/lib/pinescript/pineBlocks.d.ts +54 -0
- package/dist/dts/lib/pinescript/pineBuiltins.d.ts +47 -0
- package/dist/dts/lib/pinescript/pineEnv.d.ts +46 -0
- package/dist/dts/lib/pinescript/pineMath.d.ts +13 -0
- package/dist/dts/lib/pinescript/pineParse.d.ts +25 -0
- package/dist/dts/lib/pinescript/pineStrings.d.ts +50 -0
- package/dist/dts/lib/pinescript/runtime.d.ts +5 -0
- package/dist/dts/lib/pinescript/scriptRegistry.d.ts +40 -0
- package/dist/dts/lib/pinescript/series-value.d.ts +64 -0
- package/dist/dts/lib/pinescript/vnscript-completion.d.ts +1 -0
- package/dist/dts/lib/pinescript/vnscript-grammar.d.ts +19 -0
- package/dist/dts/lib/scale/discontinuousTimeScaleProvider.d.ts +3 -0
- package/dist/dts/lib/scale/financeDiscontinuousScale.d.ts +15 -0
- package/dist/dts/lib/scale/index.d.ts +1 -0
- package/dist/dts/lib/scale/levels.d.ts +12 -0
- package/dist/dts/lib/series/AlternatingFillAreaSeries.d.ts +13 -0
- package/dist/dts/lib/series/AreaOnlySeries.d.ts +10 -0
- package/dist/dts/lib/series/AreaSeries.d.ts +30 -0
- package/dist/dts/lib/series/BarSeries.d.ts +40 -0
- package/dist/dts/lib/series/BollingerSeries.d.ts +11 -0
- package/dist/dts/lib/series/CandlestickSeries.d.ts +56 -0
- package/dist/dts/lib/series/CircleMarker.d.ts +28 -0
- package/dist/dts/lib/series/ElderRaySeries.d.ts +14 -0
- package/dist/dts/lib/series/FootprintSeries.d.ts +21 -0
- package/dist/dts/lib/series/GroupedBarSeries.d.ts +9 -0
- package/dist/dts/lib/series/HTFOverlaySeries.d.ts +32 -0
- package/dist/dts/lib/series/HistogramSeries.d.ts +51 -0
- package/dist/dts/lib/series/KagiSeries.d.ts +9 -0
- package/dist/dts/lib/series/LineBreakSeries.d.ts +28 -0
- package/dist/dts/lib/series/LineSeries.d.ts +54 -0
- package/dist/dts/lib/series/MACDSeries.d.ts +28 -0
- package/dist/dts/lib/series/MarketProfileSeries.d.ts +18 -0
- package/dist/dts/lib/series/OHLCSeries.d.ts +9 -0
- package/dist/dts/lib/series/OverlayBarSeries.d.ts +9 -0
- package/dist/dts/lib/series/PointAndFigureSeries.d.ts +45 -0
- package/dist/dts/lib/series/RSISeries.d.ts +38 -0
- package/dist/dts/lib/series/RenkoSeries.d.ts +9 -0
- package/dist/dts/lib/series/SARSeries.d.ts +10 -0
- package/dist/dts/lib/series/SVGComponent.d.ts +5 -0
- package/dist/dts/lib/series/ScatterSeries.d.ts +9 -0
- package/dist/dts/lib/series/SquareMarker.d.ts +28 -0
- package/dist/dts/lib/series/StackedBarSeries.d.ts +19 -0
- package/dist/dts/lib/series/StochasticSeries.d.ts +9 -0
- package/dist/dts/lib/series/StraightLine.d.ts +18 -0
- package/dist/dts/lib/series/TriangleMarker.d.ts +30 -0
- package/dist/dts/lib/series/VolumeProfileSeries.d.ts +9 -0
- package/dist/dts/lib/series/index.d.ts +28 -0
- package/dist/dts/lib/strategy/BrokerSimulator.d.ts +11 -0
- package/dist/dts/lib/strategy/types.d.ts +35 -0
- package/dist/dts/lib/tape/TapePanel.d.ts +5 -0
- package/dist/dts/lib/types/adapter.d.ts +1 -0
- package/dist/dts/lib/types/index.d.ts +5 -0
- package/dist/dts/lib/types/indicator.d.ts +11 -0
- package/dist/dts/lib/types/ohlcv.d.ts +1 -0
- package/dist/dts/lib/types/pane.d.ts +23 -0
- package/dist/dts/lib/types/runtime.d.ts +11 -0
- package/dist/dts/lib/types/vninvest.d.ts +320 -0
- package/dist/dts/lib/types.d.ts +45 -0
- package/dist/dts/lib/utils/ChartDataUtil.d.ts +26 -0
- package/dist/dts/lib/utils/PureComponent.d.ts +5 -0
- package/dist/dts/lib/utils/accumulatingWindow.d.ts +1 -0
- package/dist/dts/lib/utils/axisPriceFormat.d.ts +6 -0
- package/dist/dts/lib/utils/barWidth.d.ts +14 -0
- package/dist/dts/lib/utils/identity.d.ts +1 -0
- package/dist/dts/lib/utils/index.d.ts +70 -0
- package/dist/dts/lib/utils/logger.d.ts +28 -0
- package/dist/dts/lib/utils/mappedSlidingWindow.d.ts +1 -0
- package/dist/dts/lib/utils/merge.d.ts +6 -0
- package/dist/dts/lib/utils/noop.d.ts +1 -0
- package/dist/dts/lib/utils/rebind.d.ts +1 -0
- package/dist/dts/lib/utils/shallowEqual.d.ts +1 -0
- package/dist/dts/lib/utils/slidingWindow.d.ts +1 -0
- package/dist/dts/lib/utils/storage.d.ts +32 -0
- package/dist/dts/lib/utils/strokeDasharray.d.ts +3 -0
- package/dist/dts/lib/utils/timezoneFormatter.d.ts +14 -0
- package/dist/dts/lib/utils/zipper.d.ts +4 -0
- package/dist/dts/public-api.d.ts +31 -0
- package/dist/dts/widget/BackfillWorkerFlags.d.ts +12 -0
- package/dist/dts/widget/CanaryRollbackHelper.d.ts +95 -0
- package/dist/dts/widget/CanaryRolloutConfig.d.ts +100 -0
- package/dist/dts/widget/DrawingPriceLabelsOverlay.d.ts +20 -0
- package/dist/dts/widget/ForkDrawingsOverlay.d.ts +16 -0
- package/dist/dts/widget/MeasurementOverlay.d.ts +24 -0
- package/dist/dts/widget/VNInvestCharts.d.ts +5 -0
- package/dist/dts/widget/VNInvestChartsProps.d.ts +302 -0
- package/dist/dts/widget/VNInvestMultiCharts.d.ts +8 -0
- package/dist/dts/widget/VNInvestMultiCharts.types.d.ts +130 -0
- package/dist/dts/widget/WidgetEmptyState.d.ts +11 -0
- package/dist/dts/widget/WidgetErrorBoundary.d.ts +26 -0
- package/dist/dts/widget/adapters/ContinuousFuturesStockDataAdapter.d.ts +18 -0
- package/dist/dts/widget/adapters/DataProviderAdapterWrapper.d.ts +14 -0
- package/dist/dts/widget/adapters/MultiSourceDataAdapter.d.ts +24 -0
- package/dist/dts/widget/adapters/VNInvestClient.d.ts +161 -0
- package/dist/dts/widget/adapters/VNInvestDataAdapter.d.ts +77 -0
- package/dist/dts/widget/adapters/VNInvestWebSocketClient.d.ts +79 -0
- package/dist/dts/widget/adapters/barsPagingPolicy.d.ts +18 -0
- package/dist/dts/widget/adapters/corporateEvents.d.ts +13 -0
- package/dist/dts/widget/adapters/index.d.ts +20 -0
- package/dist/dts/widget/adapters/nativeShapes.d.ts +32 -0
- package/dist/dts/widget/adapters/watchlistRealtimeSync.d.ts +16 -0
- package/dist/dts/widget/alerts/DrawingAlertsHost.d.ts +18 -0
- package/dist/dts/widget/alerts/useDrawingAlerts.d.ts +37 -0
- package/dist/dts/widget/canaryBarFiltering.d.ts +35 -0
- package/dist/dts/widget/capabilities/CapabilityResolver.d.ts +71 -0
- package/dist/dts/widget/capabilities/capabilityProbe.d.ts +28 -0
- package/dist/dts/widget/capabilities/useTierGatedFeatures.d.ts +48 -0
- package/dist/dts/widget/components/BottomPanelHost.d.ts +80 -0
- package/dist/dts/widget/components/BottomPanelSplitter.d.ts +15 -0
- package/dist/dts/widget/components/CapabilityGate.d.ts +65 -0
- package/dist/dts/widget/components/ChartDiagOverlay.d.ts +31 -0
- package/dist/dts/widget/components/ConfirmDialog.d.ts +12 -0
- package/dist/dts/widget/components/DowngradeBanner.d.ts +9 -0
- package/dist/dts/widget/components/ForkPaneSeparators.d.ts +11 -0
- package/dist/dts/widget/components/ForkPaneTooltips.d.ts +23 -0
- package/dist/dts/widget/components/ForkXAxisOverlay.d.ts +11 -0
- package/dist/dts/widget/components/ForkYAxisCrosshairLabels.d.ts +9 -0
- package/dist/dts/widget/components/LayoutDesigner.d.ts +26 -0
- package/dist/dts/widget/components/PremiumFeatureGate.d.ts +10 -0
- package/dist/dts/widget/components/ShortcutHelpModal.d.ts +44 -0
- package/dist/dts/widget/components/SystemMenu.d.ts +66 -0
- package/dist/dts/widget/components/Toast.d.ts +20 -0
- package/dist/dts/widget/components/canvas/BarCountdownBadge.d.ts +8 -0
- package/dist/dts/widget/components/canvas/ChartA11ySummary.d.ts +40 -0
- package/dist/dts/widget/components/canvas/ChartStatusLine.d.ts +39 -0
- package/dist/dts/widget/components/canvas/PricePaneHeader.d.ts +24 -0
- package/dist/dts/widget/components/canvas/PriceScaleMenu.d.ts +27 -0
- package/dist/dts/widget/components/canvas/TimeAxisScrollbar.d.ts +18 -0
- package/dist/dts/widget/components/common/Icons.d.ts +67 -0
- package/dist/dts/widget/components/dock/DataWindow.d.ts +7 -0
- package/dist/dts/widget/components/dock/DockUpgradeNudge.d.ts +10 -0
- package/dist/dts/widget/components/dock/RightSidebarDockHost.d.ts +57 -0
- package/dist/dts/widget/components/dock/WatchlistPanel.d.ts +7 -0
- package/dist/dts/widget/components/dock/WorkspaceRightDockSlot.d.ts +46 -0
- package/dist/dts/widget/components/dock/dockAccess.d.ts +20 -0
- package/dist/dts/widget/components/dock/drawingDockContentBuilders.d.ts +29 -0
- package/dist/dts/widget/components/drawing/DrawingDock.d.ts +47 -0
- package/dist/dts/widget/components/drawing/DrawingInspector.d.ts +94 -0
- package/dist/dts/widget/components/drawing/DrawingListPanel.d.ts +62 -0
- package/dist/dts/widget/components/drawing/DrawingSemanticPointLegend.d.ts +14 -0
- package/dist/dts/widget/components/drawing/FloatingDrawingInspector.d.ts +18 -0
- package/dist/dts/widget/components/drawing/IconPickerPanel.d.ts +5 -0
- package/dist/dts/widget/components/drawing/InlineTextEditor.d.ts +20 -0
- package/dist/dts/widget/components/drawing/PatternScanPanel.d.ts +27 -0
- package/dist/dts/widget/components/drawing/TemplateManagerPanel.d.ts +18 -0
- package/dist/dts/widget/components/events/CorporateEventsOverlay.d.ts +23 -0
- package/dist/dts/widget/components/events/EventMarkerIcon.d.ts +6 -0
- package/dist/dts/widget/components/footer/ChartFooter.d.ts +26 -0
- package/dist/dts/widget/components/footer/MultiChartsFooter.d.ts +37 -0
- package/dist/dts/widget/components/footer/TimeframeFooter.d.ts +25 -0
- package/dist/dts/widget/components/footer/useBarCountdown.d.ts +5 -0
- package/dist/dts/widget/components/header/OHLCHeader.d.ts +72 -0
- package/dist/dts/widget/components/layout/DrawingConflictNotice.d.ts +4 -0
- package/dist/dts/widget/components/layout/GridContainer.d.ts +70 -0
- package/dist/dts/widget/components/layout/GridSlotErrorBoundary.d.ts +17 -0
- package/dist/dts/widget/components/layout/Splitter.d.ts +23 -0
- package/dist/dts/widget/components/layout/gridSplitterMath.d.ts +40 -0
- package/dist/dts/widget/components/layout/useGridSplitterDrag.d.ts +18 -0
- package/dist/dts/widget/components/mobile/MobileChartCarousel.d.ts +11 -0
- package/dist/dts/widget/components/mobile/MobileToolbar.d.ts +29 -0
- package/dist/dts/widget/components/overlays/AdvisoryPanel.d.ts +25 -0
- package/dist/dts/widget/components/overlays/TapePanel.d.ts +25 -0
- package/dist/dts/widget/components/overlays/WhalePanel.d.ts +5 -0
- package/dist/dts/widget/components/panels/AdvisoryPanel.d.ts +25 -0
- package/dist/dts/widget/components/panels/PineEditorPanel.d.ts +18 -0
- package/dist/dts/widget/components/panels/StrategyTesterPanel.d.ts +7 -0
- package/dist/dts/widget/components/panels/TapePanel.d.ts +17 -0
- package/dist/dts/widget/components/panels/index.d.ts +8 -0
- package/dist/dts/widget/components/replay/FloatingReplayToolbar.d.ts +24 -0
- package/dist/dts/widget/components/replay/ReplayCutOverlay.d.ts +8 -0
- package/dist/dts/widget/components/search/SymbolCompareModal.d.ts +24 -0
- package/dist/dts/widget/components/search/SymbolSearchModal.d.ts +12 -0
- package/dist/dts/widget/components/search/VNSymbolSearch.d.ts +83 -0
- package/dist/dts/widget/components/settings/AlertsModal.d.ts +74 -0
- package/dist/dts/widget/components/settings/SettingsContext.d.ts +58 -0
- package/dist/dts/widget/components/settings/SettingsModal.d.ts +78 -0
- package/dist/dts/widget/components/settings/SettingsRangeSlider.d.ts +17 -0
- package/dist/dts/widget/components/settings/SnapshotPreviewModal.d.ts +16 -0
- package/dist/dts/widget/components/settings/WorkspaceSettingsContext.d.ts +27 -0
- package/dist/dts/widget/components/settings/helpers/seriesFormatters.d.ts +11 -0
- package/dist/dts/widget/components/settings/model/appearancePayload.d.ts +31 -0
- package/dist/dts/widget/components/settings/model/chartSettingsSchema.d.ts +100 -0
- package/dist/dts/widget/components/settings/model/defaultSettings.d.ts +5 -0
- package/dist/dts/widget/components/settings/model/indicatorShare.d.ts +29 -0
- package/dist/dts/widget/components/settings/storageKeys.d.ts +29 -0
- package/dist/dts/widget/components/settings/tabs/AppearanceSettingsTab.d.ts +5 -0
- package/dist/dts/widget/components/settings/tabs/IndicatorParamsForm.d.ts +12 -0
- package/dist/dts/widget/components/settings/tabs/IndicatorsSettingsTab.d.ts +34 -0
- package/dist/dts/widget/components/settings/tabs/LicensingSettingsTab.d.ts +5 -0
- package/dist/dts/widget/components/settings/tabs/PanesLayoutSettingsTab.d.ts +11 -0
- package/dist/dts/widget/components/settings/tabs/ResetSettingsTab.d.ts +8 -0
- package/dist/dts/widget/components/settings/tabs/ScalesSettingsTab.d.ts +5 -0
- package/dist/dts/widget/components/settings/tabs/StatusLineSettingsTab.d.ts +5 -0
- package/dist/dts/widget/components/settings/tabs/SymbolSettingsTab.d.ts +5 -0
- package/dist/dts/widget/components/settings/tabs/ThemePaletteSettingsTab.d.ts +9 -0
- package/dist/dts/widget/components/settings/tabs/TradingEventsSettingsTab.d.ts +8 -0
- package/dist/dts/widget/components/toolbar/DrawingToolIcon.d.ts +10 -0
- package/dist/dts/widget/components/toolbar/DrawingToolbar.d.ts +33 -0
- package/dist/dts/widget/components/toolbar/FloatingChartBar.d.ts +20 -0
- package/dist/dts/widget/components/toolbar/FloatingFavoritesBar.d.ts +18 -0
- package/dist/dts/widget/components/toolbar/MultiChartTopbar.d.ts +47 -0
- package/dist/dts/widget/components/toolbar/UnifiedDrawingToolbar.d.ts +28 -0
- package/dist/dts/widget/components/trading/PaperTradePanel.d.ts +41 -0
- package/dist/dts/widget/components/workspace/WorkspaceToolbar.d.ts +25 -0
- package/dist/dts/widget/config/toolGroups.d.ts +11 -0
- package/dist/dts/widget/config/toolShortcuts.d.ts +27 -0
- package/dist/dts/widget/constants/comparison.d.ts +1 -0
- package/dist/dts/widget/constants/symbolSearch.d.ts +14 -0
- package/dist/dts/widget/constants/vn30.d.ts +7 -0
- package/dist/dts/widget/context/DataProviderContext.d.ts +7 -0
- package/dist/dts/widget/context/HoverEmitter.d.ts +50 -0
- package/dist/dts/widget/context/SyncContextShare.d.ts +11 -0
- package/dist/dts/widget/context/VNInvestChartsConfigContext.d.ts +24 -0
- package/dist/dts/widget/context/VNInvestChartsContext.d.ts +70 -0
- package/dist/dts/widget/context/VNInvestChartsStateContext.d.ts +50 -0
- package/dist/dts/widget/context/WidgetI18nContext.d.ts +25 -0
- package/dist/dts/widget/context/WorkspaceLiveTradingContext.d.ts +30 -0
- package/dist/dts/widget/context/WorkspacePaperVisibilityContext.d.ts +23 -0
- package/dist/dts/widget/context/WorkspaceReplayTradingContext.d.ts +36 -0
- package/dist/dts/widget/contexts/SaaSFeatureContext.d.ts +23 -0
- package/dist/dts/widget/data/DataEnvelope.d.ts +100 -0
- package/dist/dts/widget/drawingPriceLabelInputs.d.ts +3 -0
- package/dist/dts/widget/export/chartCsv.d.ts +59 -0
- package/dist/dts/widget/forkAnchorReconciliation.d.ts +6 -0
- package/dist/dts/widget/forkInteractionHelpers.d.ts +69 -0
- package/dist/dts/widget/grid/DeviceProfiles.d.ts +49 -0
- package/dist/dts/widget/grid/GridChartRegistry.d.ts +9 -0
- package/dist/dts/widget/grid/MemoryBudgetManager.d.ts +63 -0
- package/dist/dts/widget/grid/PerformanceMonitor.d.ts +70 -0
- package/dist/dts/widget/grid/customPresets.d.ts +42 -0
- package/dist/dts/widget/grid/presets.d.ts +18 -0
- package/dist/dts/widget/grid/types.d.ts +39 -0
- package/dist/dts/widget/history/BackfillDedupContext.d.ts +63 -0
- package/dist/dts/widget/history/RequestCoordinator.d.ts +59 -0
- package/dist/dts/widget/history/SharedBarStoreContext.d.ts +22 -0
- package/dist/dts/widget/history/cache/IndexedDBCacheMatrix.d.ts +16 -0
- package/dist/dts/widget/history/cache/LocalCacheMatrix.d.ts +86 -0
- package/dist/dts/widget/history/cache/index.d.ts +3 -0
- package/dist/dts/widget/history/chunkStore.d.ts +77 -0
- package/dist/dts/widget/history/externalBarsNormalization.d.ts +9 -0
- package/dist/dts/widget/history/externalBarsNormalization.worker.d.ts +1 -0
- package/dist/dts/widget/history/externalBarsNormalizationAsync.d.ts +25 -0
- package/dist/dts/widget/history/historyDataUtils.d.ts +82 -0
- package/dist/dts/widget/history/historyWindowPlanner.d.ts +89 -0
- package/dist/dts/widget/history/inflightController.d.ts +15 -0
- package/dist/dts/widget/history/requestCoalescing.d.ts +10 -0
- package/dist/dts/widget/history/sessionGuards.d.ts +3 -0
- package/dist/dts/widget/history/singleWriterLane.d.ts +4 -0
- package/dist/dts/widget/history/useExternalBarsNormalization.d.ts +5 -0
- package/dist/dts/widget/hooks/ShortcutManager.d.ts +65 -0
- package/dist/dts/widget/hooks/overlays/PaneHeaderWrapper.d.ts +11 -0
- package/dist/dts/widget/hooks/overlays/overlayHelpers.d.ts +60 -0
- package/dist/dts/widget/hooks/overlays/useDrawingDockNode.d.ts +15 -0
- package/dist/dts/widget/hooks/overlays/useLegendChrome.d.ts +36 -0
- package/dist/dts/widget/hooks/overlays/useMultiSelectActions.d.ts +22 -0
- package/dist/dts/widget/hooks/overlays/useSidebarResize.d.ts +13 -0
- package/dist/dts/widget/hooks/resolveEntitlement.d.ts +73 -0
- package/dist/dts/widget/hooks/useBottomPanelBehavior.d.ts +38 -0
- package/dist/dts/widget/hooks/useBottomPanelHeight.d.ts +39 -0
- package/dist/dts/widget/hooks/useCanvasTheme.d.ts +24 -0
- package/dist/dts/widget/hooks/useChartImperativeHandle.d.ts +57 -0
- package/dist/dts/widget/hooks/useClockAdapter.d.ts +11 -0
- package/dist/dts/widget/hooks/useComparisonState.d.ts +29 -0
- package/dist/dts/widget/hooks/useDialogFocus.d.ts +25 -0
- package/dist/dts/widget/hooks/useDrawingToolShortcuts.d.ts +16 -0
- package/dist/dts/widget/hooks/useFeatureGate.d.ts +28 -0
- package/dist/dts/widget/hooks/useFloatingChartBar.d.ts +33 -0
- package/dist/dts/widget/hooks/useForkRuntime.d.ts +155 -0
- package/dist/dts/widget/hooks/useIndicatorsShareApplier.d.ts +1 -0
- package/dist/dts/widget/hooks/useIntersectionObserver.d.ts +49 -0
- package/dist/dts/widget/hooks/useKeyboardAdapter.d.ts +9 -0
- package/dist/dts/widget/hooks/useLayoutHistory.d.ts +8 -0
- package/dist/dts/widget/hooks/useLicenseDiagnostics.d.ts +15 -0
- package/dist/dts/widget/hooks/useMultiChartReplaySync.d.ts +31 -0
- package/dist/dts/widget/hooks/useMultiWorkspacePersistence.d.ts +49 -0
- package/dist/dts/widget/hooks/usePaperTradeConfig.d.ts +27 -0
- package/dist/dts/widget/hooks/usePaperTradeInteraction.d.ts +27 -0
- package/dist/dts/widget/hooks/usePatTierAuthentication.d.ts +42 -0
- package/dist/dts/widget/hooks/usePineScriptRestore.d.ts +23 -0
- package/dist/dts/widget/hooks/usePortalAdapter.d.ts +8 -0
- package/dist/dts/widget/hooks/useRecentSymbols.d.ts +3 -0
- package/dist/dts/widget/hooks/useReplayState.d.ts +28 -0
- package/dist/dts/widget/hooks/useReplayTrading.d.ts +26 -0
- package/dist/dts/widget/hooks/useResizeAdapter.d.ts +13 -0
- package/dist/dts/widget/hooks/useScaleOverlays.d.ts +62 -0
- package/dist/dts/widget/hooks/useScriptPersistence.d.ts +72 -0
- package/dist/dts/widget/hooks/useSymbolSearch.d.ts +30 -0
- package/dist/dts/widget/hooks/useViewportBreakpoint.d.ts +15 -0
- package/dist/dts/widget/hooks/useWidgetCoordinateBridge.d.ts +70 -0
- package/dist/dts/widget/hooks/useWidgetData.d.ts +138 -0
- package/dist/dts/widget/hooks/useWidgetDataBackfill.d.ts +67 -0
- package/dist/dts/widget/hooks/useWidgetDataEnrichment.d.ts +32 -0
- package/dist/dts/widget/hooks/useWidgetDrawings.d.ts +38 -0
- package/dist/dts/widget/hooks/useWidgetForkInteraction.d.ts +68 -0
- package/dist/dts/widget/hooks/useWidgetInteractionActions.d.ts +36 -0
- package/dist/dts/widget/hooks/useWidgetOverlays.d.ts +190 -0
- package/dist/dts/widget/hooks/useWidgetRuntime.d.ts +20 -0
- package/dist/dts/widget/hooks/useWidgetSettings.d.ts +244 -0
- package/dist/dts/widget/hooks/useWidgetWorkspaceIO.d.ts +24 -0
- package/dist/dts/widget/hooks/useWorkspaceDockPanels.d.ts +11 -0
- package/dist/dts/widget/hooks/useWorkspaceLiveTrading.d.ts +28 -0
- package/dist/dts/widget/hooks/useWorkspaceReplayTrading.d.ts +22 -0
- package/dist/dts/widget/i18n/a11y.messages.en.d.ts +8 -0
- package/dist/dts/widget/i18n/a11y.messages.vi.d.ts +3 -0
- package/dist/dts/widget/i18n/capability.messages.en.d.ts +7 -0
- package/dist/dts/widget/i18n/capability.messages.vi.d.ts +3 -0
- package/dist/dts/widget/i18n/dock.messages.en.d.ts +2 -0
- package/dist/dts/widget/i18n/dock.messages.vi.d.ts +2 -0
- package/dist/dts/widget/i18n/messages.en.d.ts +2 -0
- package/dist/dts/widget/i18n/messages.licensing.d.ts +48 -0
- package/dist/dts/widget/i18n/messages.vi.d.ts +2 -0
- package/dist/dts/widget/i18n/trading.messages.en.d.ts +2 -0
- package/dist/dts/widget/i18n/trading.messages.vi.d.ts +2 -0
- package/dist/dts/widget/i18n/types.d.ts +3 -0
- package/dist/dts/widget/iframe/builtInAdapters.d.ts +63 -0
- package/dist/dts/widget/iframe/host-entry.d.ts +11 -0
- package/dist/dts/widget/iframe/hostSDK.d.ts +151 -0
- package/dist/dts/widget/iframe/iframeBridge.d.ts +165 -0
- package/dist/dts/widget/iframe/iframeEntry.d.ts +52 -0
- package/dist/dts/widget/iframe/iframeFrame.d.ts +15 -0
- package/dist/dts/widget/iframe/iframeQuotes.d.ts +20 -0
- package/dist/dts/widget/iframe/messageProtocol.d.ts +545 -0
- package/dist/dts/widget/iframe/quoteHub.d.ts +20 -0
- package/dist/dts/widget/iframe/useVNInvestChartsHost.d.ts +8 -0
- package/dist/dts/widget/iife-entry.d.ts +61 -0
- package/dist/dts/widget/iifeWidgetInstance.d.ts +60 -0
- package/dist/dts/widget/index.d.ts +56 -0
- package/dist/dts/widget/multiChartDefaults.d.ts +18 -0
- package/dist/dts/widget/paneInteractionUtils.d.ts +25 -0
- package/dist/dts/widget/patterns/autoPatternScan.d.ts +77 -0
- package/dist/dts/widget/patterns/patternDrawingFactory.d.ts +87 -0
- package/dist/dts/widget/plugin/ProPluginRegistry.d.ts +40 -0
- package/dist/dts/widget/runtime/ChartScaleAdapter.d.ts +73 -0
- package/dist/dts/widget/runtime/ChartSerializer.d.ts +12 -0
- package/dist/dts/widget/runtime/ForkRuntimeAdapter.d.ts +19 -0
- package/dist/dts/widget/runtime/IRuntimeEngine.d.ts +40 -0
- package/dist/dts/widget/runtime/WorkspaceSerializer.d.ts +31 -0
- package/dist/dts/widget/runtimePolicy.d.ts +36 -0
- package/dist/dts/widget/styles/injectStyles.d.ts +9 -0
- package/dist/dts/widget/theme/ThemeConfig.d.ts +21 -0
- package/dist/dts/widget/theme/applyTheme.d.ts +3 -0
- package/dist/dts/widget/trading/chart/DraggableOrderHandles.d.ts +15 -0
- package/dist/dts/widget/trading/chart/InteractivePositionOverlay.d.ts +19 -0
- package/dist/dts/widget/trading/chart/PendingOrderOverlay.d.ts +11 -0
- package/dist/dts/widget/trading/chart/QuickTradingHeader.d.ts +20 -0
- package/dist/dts/widget/trading/chart/TradingChartSurface.d.ts +8 -0
- package/dist/dts/widget/trading/chart/TradingOverlaysHost.d.ts +28 -0
- package/dist/dts/widget/trading/chart/priceTicks.d.ts +1 -0
- package/dist/dts/widget/trading/chart/useFloatingDrag.d.ts +40 -0
- package/dist/dts/widget/trading/chart/useTradingHotkeys.d.ts +21 -0
- package/dist/dts/widget/trading/config/paperRuntimeConfig.d.ts +53 -0
- package/dist/dts/widget/trading/context/PaperPanelRegistry.d.ts +45 -0
- package/dist/dts/widget/trading/context/TradingContext.d.ts +80 -0
- package/dist/dts/widget/trading/context/WorkspaceTradingSync.d.ts +24 -0
- package/dist/dts/widget/trading/hooks/usePaperRuntimeConfig.d.ts +36 -0
- package/dist/dts/widget/trading/index.d.ts +5 -0
- package/dist/dts/widget/trading/panel/AccountSummaryTab.d.ts +7 -0
- package/dist/dts/widget/trading/panel/ActiveChartPaperPanel.d.ts +26 -0
- package/dist/dts/widget/trading/panel/ConnectedTradingPanel.d.ts +3 -0
- package/dist/dts/widget/trading/panel/HistoryTab.d.ts +5 -0
- package/dist/dts/widget/trading/panel/MarketFallbackBanner.d.ts +4 -0
- package/dist/dts/widget/trading/panel/OrdersTab.d.ts +8 -0
- package/dist/dts/widget/trading/panel/PaperCapitalDialog.d.ts +8 -0
- package/dist/dts/widget/trading/panel/PaperSettingsModal.d.ts +17 -0
- package/dist/dts/widget/trading/panel/PositionsTab.d.ts +15 -0
- package/dist/dts/widget/trading/panel/TradeHistoryTab.d.ts +5 -0
- package/dist/dts/widget/trading/panel/TradingBottomPanel.d.ts +36 -0
- package/dist/dts/widget/trading/panel/TradingLogTab.d.ts +8 -0
- package/dist/dts/widget/trading/panel/TradingPanelHeader.d.ts +17 -0
- package/dist/dts/widget/trading/panel/csvExport.d.ts +18 -0
- package/dist/dts/widget/trading/ticket/ConnectedTradingDockPanel.d.ts +5 -0
- package/dist/dts/widget/trading/ticket/OrderTicketForm.d.ts +31 -0
- package/dist/dts/widget/trading/ticket/OrderTicketModal.d.ts +29 -0
- package/dist/dts/widget/trading/ticket/RegistryTradingDockPanel.d.ts +9 -0
- package/dist/dts/widget/trading/ticket/RiskCalculatorView.d.ts +9 -0
- package/dist/dts/widget/trading/ticket/TradingDockPanel.d.ts +36 -0
- package/dist/dts/widget/trading/ticket/orderTicketModel.d.ts +49 -0
- package/dist/dts/widget/trading/visibility/paperVisibility.d.ts +38 -0
- package/dist/dts/widget/types/dataProvider.d.ts +8 -0
- package/dist/dts/widget/types/fullChartHandle.d.ts +25 -0
- package/dist/dts/widget/types/saas.d.ts +83 -0
- package/dist/dts/widget/types/symbolSearch.d.ts +9 -0
- package/dist/dts/widget/types/watchlist.d.ts +26 -0
- package/dist/dts/widget/utils/axisHit.d.ts +16 -0
- package/dist/dts/widget/utils/chartRange.d.ts +12 -0
- package/dist/dts/widget/utils/chartTypeOptions.d.ts +38 -0
- package/dist/dts/widget/utils/clickOutside.d.ts +1 -0
- package/dist/dts/widget/utils/coordinateBridge.d.ts +31 -0
- package/dist/dts/widget/utils/crosshairSync.d.ts +50 -0
- package/dist/dts/widget/utils/drawingSync.d.ts +198 -0
- package/dist/dts/widget/utils/enrichedHash.d.ts +15 -0
- package/dist/dts/widget/utils/headerSync.d.ts +12 -0
- package/dist/dts/widget/utils/numberFormat.d.ts +13 -0
- package/dist/dts/widget/utils/paperTradeAdapters.d.ts +11 -0
- package/dist/dts/widget/utils/pineSeriesData.d.ts +71 -0
- package/dist/dts/widget/utils/rangeSync.d.ts +29 -0
- package/dist/dts/widget/utils/telemetry.d.ts +19 -0
- package/dist/dts/widget/utils/widgetEquality.d.ts +57 -0
- package/dist/dts/widget/utils/widgetErrors.d.ts +29 -0
- package/dist/dts/widget/utils/widgetHelpers.d.ts +395 -0
- package/dist/dts/widget/utils/xAxisTickFormatter.d.ts +33 -0
- package/dist/dts/widget/visibleRangeBridge.d.ts +28 -0
- package/dist/dts/widget/visibleRangeDiagnostics.d.ts +10 -0
- package/dist/dts/widget/visibleRangePolicies.d.ts +6 -0
- package/dist/dts/widget/workspace/WorkspaceManager.d.ts +23 -0
- package/dist/dts/widget/workspace/WorkspaceStore.d.ts +85 -0
- package/dist/dts/widget/workspace/types.d.ts +21 -0
- package/dist/externalBarsNormalization.worker.js +108 -0
- package/dist/iframe/index.html +63 -0
- package/dist/iframe/injected.css +6456 -0
- package/dist/iframe/vninvestchart.iframe.css +2 -0
- package/dist/iframe/vninvestchart.iframe.js +945 -0
- package/dist/iframe-host/host-entry.cjs +687 -0
- package/dist/iframe-host/host-entry.d.mts +818 -0
- package/dist/iframe-host/host-entry.d.ts +818 -0
- package/dist/iframe-host/host-entry.js +680 -0
- package/dist/index.cjs +7253 -0
- package/dist/index.css +3390 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +6461 -0
- package/dist/injected.css +6456 -0
- package/dist/rollAlgorithms-2P2ZKKHO.js +2 -0
- package/dist/types/runtime.cjs +8 -0
- package/dist/types/runtime.d.mts +92 -0
- package/dist/types/runtime.d.ts +92 -0
- package/dist/types/runtime.js +5 -0
- package/dist/types/runtime.umd.js +14 -0
- package/dist/vninvestchart.iife.css +2 -0
- package/dist/vninvestchart.iife.js +945 -0
- package/package.json +225 -5
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared VNInvest domain type definitions.
|
|
3
|
+
*
|
|
4
|
+
* This module is the canonical home for cross-layer types used by
|
|
5
|
+
* widget/core/lib modules. Demo should consume these types, not own them.
|
|
6
|
+
*/
|
|
7
|
+
export interface TechnicalIndicators {
|
|
8
|
+
bias?: number;
|
|
9
|
+
rsi14?: number;
|
|
10
|
+
sma20?: number;
|
|
11
|
+
sma50?: number;
|
|
12
|
+
sma200?: number;
|
|
13
|
+
ema9?: number;
|
|
14
|
+
ema21?: number;
|
|
15
|
+
macd?: number;
|
|
16
|
+
macd_signal?: number;
|
|
17
|
+
macd_histogram?: number;
|
|
18
|
+
atr_14?: number;
|
|
19
|
+
bb_upper?: number;
|
|
20
|
+
bb_middle?: number;
|
|
21
|
+
bb_lower?: number;
|
|
22
|
+
volume_sma20?: number;
|
|
23
|
+
}
|
|
24
|
+
export interface ChartPoint {
|
|
25
|
+
/** ISO 8601 date string */
|
|
26
|
+
date: string;
|
|
27
|
+
open: number;
|
|
28
|
+
high: number;
|
|
29
|
+
low: number;
|
|
30
|
+
close: number;
|
|
31
|
+
volume: number;
|
|
32
|
+
}
|
|
33
|
+
export interface ChartResponse {
|
|
34
|
+
symbol: string;
|
|
35
|
+
days: number;
|
|
36
|
+
timeframe: string;
|
|
37
|
+
points: ChartPoint[];
|
|
38
|
+
technical?: TechnicalIndicators;
|
|
39
|
+
}
|
|
40
|
+
export interface StockItem {
|
|
41
|
+
symbol: string;
|
|
42
|
+
company_name: string;
|
|
43
|
+
exchange: string;
|
|
44
|
+
sector?: string;
|
|
45
|
+
}
|
|
46
|
+
export interface TickerResponse {
|
|
47
|
+
symbol: string;
|
|
48
|
+
current_price: number;
|
|
49
|
+
change_pct: number;
|
|
50
|
+
volume: number;
|
|
51
|
+
market_phase: string;
|
|
52
|
+
}
|
|
53
|
+
export type WhaleSizeClass = "small" | "shark" | "whale";
|
|
54
|
+
export type WhaleSide = "buy" | "sell";
|
|
55
|
+
export interface WhaleOrder {
|
|
56
|
+
/** ISO 8601 timestamp string */
|
|
57
|
+
ts: string;
|
|
58
|
+
price: number;
|
|
59
|
+
volume: number;
|
|
60
|
+
matched_value: number;
|
|
61
|
+
side: WhaleSide;
|
|
62
|
+
size_class: WhaleSizeClass;
|
|
63
|
+
}
|
|
64
|
+
export interface WhaleOrderSummary {
|
|
65
|
+
buy_value: number;
|
|
66
|
+
sell_value: number;
|
|
67
|
+
shark_buy: number;
|
|
68
|
+
shark_sell: number;
|
|
69
|
+
whale_buy: number;
|
|
70
|
+
whale_sell: number;
|
|
71
|
+
small_buy: number;
|
|
72
|
+
small_sell: number;
|
|
73
|
+
}
|
|
74
|
+
export interface WhaleFeedResponse {
|
|
75
|
+
symbol: string;
|
|
76
|
+
whale_orders: WhaleOrder[];
|
|
77
|
+
summary: WhaleOrderSummary;
|
|
78
|
+
/**
|
|
79
|
+
* Native backend alerts (GET /realtime/whale-feed/{symbol}/, verified live 2026-09-21).
|
|
80
|
+
* Present when the server returns `{symbol, alerts[]}` instead of the legacy
|
|
81
|
+
* `{summary, whale_orders}` contract. Rendered as a notification list — never
|
|
82
|
+
* coerced into WhaleOrder (alerts carry no price/volume).
|
|
83
|
+
*/
|
|
84
|
+
alerts?: WhaleAlert[];
|
|
85
|
+
}
|
|
86
|
+
/** One native whale/signal alert from GET /realtime/whale-feed/{symbol}/. */
|
|
87
|
+
export interface WhaleAlert {
|
|
88
|
+
/** UUID string. */
|
|
89
|
+
id: string;
|
|
90
|
+
/** e.g. "signal" | "whale". */
|
|
91
|
+
alert_type: string;
|
|
92
|
+
/** e.g. "low" | "medium" | "high". */
|
|
93
|
+
severity: string;
|
|
94
|
+
title: string;
|
|
95
|
+
/** Score-ish string on signal alerts — NOT a VND value. Kept raw. */
|
|
96
|
+
value: string | number | null;
|
|
97
|
+
/** e.g. "buy" | "sell". */
|
|
98
|
+
direction: string;
|
|
99
|
+
/** ISO 8601 timestamp string. */
|
|
100
|
+
triggered_at: string;
|
|
101
|
+
}
|
|
102
|
+
export interface IntradayTrade {
|
|
103
|
+
/** HH:MM:SS time string */
|
|
104
|
+
time: string;
|
|
105
|
+
price: number;
|
|
106
|
+
volume: number;
|
|
107
|
+
side: WhaleSide;
|
|
108
|
+
}
|
|
109
|
+
export interface IntradayResponse {
|
|
110
|
+
symbol: string;
|
|
111
|
+
trades: IntradayTrade[];
|
|
112
|
+
}
|
|
113
|
+
export interface APIError {
|
|
114
|
+
detail: string;
|
|
115
|
+
}
|
|
116
|
+
/** One intraday CVD bucket from compute_cvd_series. */
|
|
117
|
+
export interface CVDPoint {
|
|
118
|
+
/** ISO 8601 datetime - today + bucket start time. */
|
|
119
|
+
bucket_ts: string;
|
|
120
|
+
buy_value: number;
|
|
121
|
+
sell_value: number;
|
|
122
|
+
/** Net delta for this bucket (buy_value - sell_value). */
|
|
123
|
+
cvd: number;
|
|
124
|
+
/** Running cumulative delta from session start. */
|
|
125
|
+
cumulative_cvd: number;
|
|
126
|
+
}
|
|
127
|
+
export type DarkFlowSignalType = "none" | "absorption" | "iceberg" | "twap_bot" | "mixed";
|
|
128
|
+
/** Dark flow strength result from detect_dark_flow. */
|
|
129
|
+
export interface DarkFlowResult {
|
|
130
|
+
signal_type: DarkFlowSignalType;
|
|
131
|
+
/** 0-100 composite strength score. */
|
|
132
|
+
strength: number;
|
|
133
|
+
/** 0-1 confidence. */
|
|
134
|
+
confidence: number;
|
|
135
|
+
components?: Record<string, unknown>;
|
|
136
|
+
triggered_at?: string | null;
|
|
137
|
+
}
|
|
138
|
+
export interface OrderFlowSignal {
|
|
139
|
+
id: number | string;
|
|
140
|
+
symbol: string;
|
|
141
|
+
signal_type: string;
|
|
142
|
+
strength: number;
|
|
143
|
+
confidence: number;
|
|
144
|
+
tick_rate: number;
|
|
145
|
+
small_order_ratio: number;
|
|
146
|
+
cvd_at_signal: number | null;
|
|
147
|
+
price_at_signal: number | null;
|
|
148
|
+
created_at: string;
|
|
149
|
+
event_id: string | null;
|
|
150
|
+
severity?: string;
|
|
151
|
+
}
|
|
152
|
+
/** Response from GET /api/stock-management/stocks/<symbol>/order-flow/. */
|
|
153
|
+
export interface OrderFlowResponse {
|
|
154
|
+
ok: boolean;
|
|
155
|
+
symbol: string;
|
|
156
|
+
window: string;
|
|
157
|
+
window_minutes: number;
|
|
158
|
+
latest_signal: OrderFlowSignal | null;
|
|
159
|
+
signals: OrderFlowSignal[];
|
|
160
|
+
cvd_series: CVDPoint[];
|
|
161
|
+
dark_flow: DarkFlowResult;
|
|
162
|
+
tick_rate: Record<string, unknown>;
|
|
163
|
+
size_distribution: Record<string, unknown>;
|
|
164
|
+
}
|
|
165
|
+
/** A single intraday tape entry (one matched trade or large order). */
|
|
166
|
+
export interface TapeEntry {
|
|
167
|
+
/** Unique identifier for React keying (server id or client-generated). */
|
|
168
|
+
id: string;
|
|
169
|
+
/** ISO 8601 timestamp of the trade. */
|
|
170
|
+
ts: string;
|
|
171
|
+
/** Trade price. */
|
|
172
|
+
price: number;
|
|
173
|
+
/** Volume in shares/contracts. */
|
|
174
|
+
volume: number;
|
|
175
|
+
/** Trade value in VND (raw, not billions). */
|
|
176
|
+
value: number;
|
|
177
|
+
/** Direction of the aggressive side. */
|
|
178
|
+
side: "buy" | "sell" | "unknown";
|
|
179
|
+
/** True when value exceeds whale threshold - triggers highlight. */
|
|
180
|
+
is_whale: boolean;
|
|
181
|
+
}
|
|
182
|
+
/** HTTP envelope for GET /core/v1/market-data/intraday-tape/ */
|
|
183
|
+
export interface TapeResponse {
|
|
184
|
+
ok: boolean;
|
|
185
|
+
symbol: string;
|
|
186
|
+
entries: TapeEntry[];
|
|
187
|
+
}
|
|
188
|
+
/** Decision signal returned by AI advisory session. */
|
|
189
|
+
export type AdvisoryDecision = "STRONG_BUY" | "BUY" | "HOLD" | "SELL" | "STRONG_SELL";
|
|
190
|
+
/** Per-agent score within an advisory session response. */
|
|
191
|
+
export interface AgentScore {
|
|
192
|
+
/** Agent identifier: "whale" | "tech" | "risk" | "sentiment". */
|
|
193
|
+
name: string;
|
|
194
|
+
/** Portfolio weight (0-1), e.g. 0.4 for whale agent. */
|
|
195
|
+
weight: number;
|
|
196
|
+
/** Raw score in [−100, 100]. Positive = bullish. */
|
|
197
|
+
score: number;
|
|
198
|
+
/** Signal label for this agent. */
|
|
199
|
+
signal: AdvisoryDecision;
|
|
200
|
+
/** Markdown-formatted explanation from this agent. */
|
|
201
|
+
explanation: string;
|
|
202
|
+
}
|
|
203
|
+
/** Full advisory result returned from POST /api/stock_ai_advisory_session/. */
|
|
204
|
+
export interface AdvisoryResult {
|
|
205
|
+
/** Aggregated decision across all agents. */
|
|
206
|
+
decision: AdvisoryDecision;
|
|
207
|
+
/** Aggregate confidence in [0, 1]. */
|
|
208
|
+
confidence: number;
|
|
209
|
+
/** Weighted composite score in [−100, 100]. */
|
|
210
|
+
weighted_score: number;
|
|
211
|
+
/** Per-agent breakdown - typically 4 agents. */
|
|
212
|
+
agents: readonly AgentScore[];
|
|
213
|
+
/** Markdown summary explanation. */
|
|
214
|
+
explanation: string;
|
|
215
|
+
/** ISO 8601 UTC timestamp when the analysis was triggered. */
|
|
216
|
+
triggered_at: string;
|
|
217
|
+
}
|
|
218
|
+
/** HTTP envelope for POST /api/stock_ai_advisory_session/ (legacy, 404 on current backend). */
|
|
219
|
+
export interface AdvisorySessionResponse {
|
|
220
|
+
ok: boolean;
|
|
221
|
+
symbol: string;
|
|
222
|
+
result?: AdvisoryResult;
|
|
223
|
+
/** Error message when ok is false. */
|
|
224
|
+
error?: string;
|
|
225
|
+
}
|
|
226
|
+
/** Decision block inside aggregate — actions are lowercase backend values. */
|
|
227
|
+
export interface AdvisoryDecisionBlock {
|
|
228
|
+
action: string | null;
|
|
229
|
+
risk: string | null;
|
|
230
|
+
score_band: string | null;
|
|
231
|
+
score: number | null;
|
|
232
|
+
}
|
|
233
|
+
/** Aggregate block of the native advisory session payload. */
|
|
234
|
+
export interface AdvisoryAggregate {
|
|
235
|
+
advisory_id: string;
|
|
236
|
+
session_date: string;
|
|
237
|
+
selected_trade_date: string;
|
|
238
|
+
contract_version: string;
|
|
239
|
+
decision: AdvisoryDecisionBlock;
|
|
240
|
+
}
|
|
241
|
+
/** One analysis component (indicator/flow/summary) of the native session. */
|
|
242
|
+
export interface AdvisoryComponent {
|
|
243
|
+
id: number;
|
|
244
|
+
symbol: string;
|
|
245
|
+
component_type: string;
|
|
246
|
+
indicator_name: string;
|
|
247
|
+
status: string;
|
|
248
|
+
confidence_score: number;
|
|
249
|
+
suggested_action: string;
|
|
250
|
+
rationale_text: string;
|
|
251
|
+
timeframe: string;
|
|
252
|
+
include_in_summary: boolean;
|
|
253
|
+
is_deleted: boolean;
|
|
254
|
+
created_at: string;
|
|
255
|
+
updated_at: string;
|
|
256
|
+
}
|
|
257
|
+
/** Executive summary built from active components. */
|
|
258
|
+
export interface AdvisoryExecutiveSummary {
|
|
259
|
+
symbol: string;
|
|
260
|
+
session_date: string;
|
|
261
|
+
strategy_action: string | null;
|
|
262
|
+
risk_level: string | null;
|
|
263
|
+
overall_confidence: number | null;
|
|
264
|
+
score_band: string | null;
|
|
265
|
+
summary_text: string;
|
|
266
|
+
component_ids: number[];
|
|
267
|
+
active_components_count: number;
|
|
268
|
+
source: string;
|
|
269
|
+
}
|
|
270
|
+
/** Native record fields spread at session top level by the backend. */
|
|
271
|
+
export interface AdvisoryRecordFields {
|
|
272
|
+
status?: string;
|
|
273
|
+
advisory_text?: string | null;
|
|
274
|
+
ai_model?: string | null;
|
|
275
|
+
tokens_used?: number | null;
|
|
276
|
+
strategy_action?: string | null;
|
|
277
|
+
risk_level?: string | null;
|
|
278
|
+
confidence_score?: number | null;
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* GET /core/v1/stock-management/stocks/{symbol}/ai-advisory-session/ response.
|
|
282
|
+
* Empty state: `{queued: false, reason: "no_advisory_data", advisory: null, ...}`.
|
|
283
|
+
* Record state: advisory/aggregate/components/executive_summary populated.
|
|
284
|
+
*/
|
|
285
|
+
export interface AdvisorySessionV2 extends AdvisoryRecordFields {
|
|
286
|
+
queued: boolean;
|
|
287
|
+
symbol: string;
|
|
288
|
+
contract_version: string;
|
|
289
|
+
reason?: string | null;
|
|
290
|
+
message?: string | null;
|
|
291
|
+
advisory: Record<string, unknown> | null;
|
|
292
|
+
aggregate: AdvisoryAggregate | null;
|
|
293
|
+
components: AdvisoryComponent[];
|
|
294
|
+
deleted_components: AdvisoryComponent[];
|
|
295
|
+
executive_summary: AdvisoryExecutiveSummary | null;
|
|
296
|
+
executive_summaries: AdvisoryExecutiveSummary[];
|
|
297
|
+
user_ai_provider: string | null;
|
|
298
|
+
effective_ai_provider: string | null;
|
|
299
|
+
effective_ai_model: string | null;
|
|
300
|
+
effective_ai_source: string | null;
|
|
301
|
+
}
|
|
302
|
+
/** Raw API chart point before normalization - fields may be null. */
|
|
303
|
+
export interface NullableChartPoint {
|
|
304
|
+
/** ISO 8601 date string */
|
|
305
|
+
date: string;
|
|
306
|
+
open: number | null;
|
|
307
|
+
high: number | null;
|
|
308
|
+
low: number | null;
|
|
309
|
+
close: number | null;
|
|
310
|
+
volume: number | null;
|
|
311
|
+
}
|
|
312
|
+
export interface RawOHLCVBar {
|
|
313
|
+
date: Date;
|
|
314
|
+
open: number;
|
|
315
|
+
high: number;
|
|
316
|
+
low: number;
|
|
317
|
+
close: number;
|
|
318
|
+
volume: number;
|
|
319
|
+
technical?: Partial<TechnicalIndicators>;
|
|
320
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export type AnyRecord = Record<string, any>;
|
|
2
|
+
export type ChartDatum = any;
|
|
3
|
+
export type ChartAccessor<T = any, R = any> = (datum: T) => R;
|
|
4
|
+
export interface OHLCV {
|
|
5
|
+
date: Date | number;
|
|
6
|
+
open: number;
|
|
7
|
+
high: number;
|
|
8
|
+
low: number;
|
|
9
|
+
close: number;
|
|
10
|
+
volume: number;
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}
|
|
13
|
+
export interface CandleWick {
|
|
14
|
+
stroke: string;
|
|
15
|
+
x: number;
|
|
16
|
+
y1: number;
|
|
17
|
+
y2: number;
|
|
18
|
+
y3: number;
|
|
19
|
+
y4: number;
|
|
20
|
+
}
|
|
21
|
+
export interface CandleData {
|
|
22
|
+
x: number;
|
|
23
|
+
y: number;
|
|
24
|
+
wick: CandleWick;
|
|
25
|
+
height: number;
|
|
26
|
+
width: number;
|
|
27
|
+
fill: string;
|
|
28
|
+
stroke: string;
|
|
29
|
+
className?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface BarData {
|
|
32
|
+
x: number;
|
|
33
|
+
y: number;
|
|
34
|
+
width: number;
|
|
35
|
+
height: number;
|
|
36
|
+
fill: string;
|
|
37
|
+
stroke: string;
|
|
38
|
+
}
|
|
39
|
+
export interface CanvasContexts {
|
|
40
|
+
axes?: CanvasRenderingContext2D;
|
|
41
|
+
mouseCoord?: CanvasRenderingContext2D;
|
|
42
|
+
bg?: CanvasRenderingContext2D;
|
|
43
|
+
[key: string]: any;
|
|
44
|
+
}
|
|
45
|
+
export type MoreProps = AnyRecord;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare function getChartOrigin(origin: any, contextWidth: any, contextHeight: any): any;
|
|
2
|
+
export declare function getDimensions({ width, height }: any, chartProps: any): {
|
|
3
|
+
availableHeight: any;
|
|
4
|
+
width: any;
|
|
5
|
+
height: any;
|
|
6
|
+
};
|
|
7
|
+
export declare function getNewChartConfig(innerDimension: any, children: any, existingChartConfig?: any[]): {
|
|
8
|
+
id: any;
|
|
9
|
+
paneId: any;
|
|
10
|
+
yScaleId: any;
|
|
11
|
+
origin: any;
|
|
12
|
+
padding: any;
|
|
13
|
+
originalYExtentsProp: any;
|
|
14
|
+
yExtents: any[] | undefined;
|
|
15
|
+
yExtentsCalculator: any;
|
|
16
|
+
flipYScale: any;
|
|
17
|
+
yScale: any;
|
|
18
|
+
yPan: any;
|
|
19
|
+
yPanEnabled: any;
|
|
20
|
+
width: any;
|
|
21
|
+
height: any;
|
|
22
|
+
}[];
|
|
23
|
+
export declare function getCurrentCharts(chartConfig: any[], mouseXY: any): any[];
|
|
24
|
+
export declare function getChartConfigWithUpdatedYScales(chartConfig: any[], { plotData, xAccessor, displayXAccessor, fullData }: any, xDomain: any, dy?: any, chartsToPan?: any): any;
|
|
25
|
+
export declare function getCurrentItem(xScale: any, xAccessor: any, mouseXY: any, plotData: any[]): any;
|
|
26
|
+
export declare function getXValue(xScale: any, xAccessor: any, mouseXY: any, plotData: any[]): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function accumulatingWindow(): any;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Axis price labels: full grouped numbers ("84,000") instead of compact
|
|
3
|
+
* ("84.00K"), matching the last-price tag format. Small values keep
|
|
4
|
+
* precision; negatives and NaN are handled defensively.
|
|
5
|
+
*/
|
|
6
|
+
export declare function formatAxisPrice(value: number): string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bar width is based on the amount of items in the plot data and the distance between the first and last of those
|
|
3
|
+
* items.
|
|
4
|
+
* @param props the props passed to the series.
|
|
5
|
+
* @param moreProps an object holding the xScale, xAccessor and plotData.
|
|
6
|
+
* @return {number} the bar width.
|
|
7
|
+
*/
|
|
8
|
+
export declare function plotDataLengthBarWidth(props: any, moreProps: any): number;
|
|
9
|
+
/**
|
|
10
|
+
* Generates a width function that calculates the bar width based on the given time interval.
|
|
11
|
+
* @param interval a d3-time time interval.
|
|
12
|
+
* @return {Function} the width function.
|
|
13
|
+
*/
|
|
14
|
+
export declare function timeIntervalBarWidth(interval: any): (props: any, moreProps: any) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function identity<T>(value: T): T;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import noop from "./noop";
|
|
2
|
+
export { default as rebind } from "./rebind";
|
|
3
|
+
export { default as zipper } from "./zipper";
|
|
4
|
+
export { default as merge } from "./merge";
|
|
5
|
+
export { default as slidingWindow } from "./slidingWindow";
|
|
6
|
+
export { default as identity } from "./identity";
|
|
7
|
+
export { default as noop } from "./noop";
|
|
8
|
+
export { default as shallowEqual } from "./shallowEqual";
|
|
9
|
+
export { default as mappedSlidingWindow } from "./mappedSlidingWindow";
|
|
10
|
+
export { default as accumulatingWindow } from "./accumulatingWindow";
|
|
11
|
+
export { default as PureComponent } from "./PureComponent";
|
|
12
|
+
export * from "./barWidth";
|
|
13
|
+
export * from "./strokeDasharray";
|
|
14
|
+
export * from "./timezoneFormatter";
|
|
15
|
+
export declare function getLogger(prefix: string): typeof noop;
|
|
16
|
+
export declare function sign(x: number): number;
|
|
17
|
+
export declare const yes: () => boolean;
|
|
18
|
+
export declare function path(loc?: any): (obj: any, defaultValue?: any) => any;
|
|
19
|
+
export declare function functor(v: any): any;
|
|
20
|
+
export declare function createVerticalLinearGradient(stops: any[]): (moreProps: any, ctx: CanvasRenderingContext2D) => CanvasGradient;
|
|
21
|
+
export declare function getClosestItemIndexes2(array: any[], value: any, accessor: any): {
|
|
22
|
+
left: number;
|
|
23
|
+
right: number;
|
|
24
|
+
};
|
|
25
|
+
export declare function degrees(radians: number): number;
|
|
26
|
+
export declare function radians(degreesValue: number): number;
|
|
27
|
+
export declare function getClosestValue(inputValue: any, currentValue: number): number;
|
|
28
|
+
export declare function find(this: any, list: any[], predicate: any, context?: any): any;
|
|
29
|
+
export declare function d3Window(node: any): any;
|
|
30
|
+
export declare const MOUSEENTER = "mouseenter.interaction";
|
|
31
|
+
export declare const MOUSELEAVE = "mouseleave.interaction";
|
|
32
|
+
export declare const MOUSEMOVE = "mousemove.pan";
|
|
33
|
+
export declare const MOUSEUP = "mouseup.pan";
|
|
34
|
+
export declare const TOUCHMOVE = "touchmove.pan";
|
|
35
|
+
export declare const TOUCHEND = "touchend.pan touchcancel.pan";
|
|
36
|
+
export declare function getTouchProps(touch: any): {
|
|
37
|
+
pageX?: undefined;
|
|
38
|
+
pageY?: undefined;
|
|
39
|
+
clientX?: undefined;
|
|
40
|
+
clientY?: undefined;
|
|
41
|
+
} | {
|
|
42
|
+
pageX: any;
|
|
43
|
+
pageY: any;
|
|
44
|
+
clientX: any;
|
|
45
|
+
clientY: any;
|
|
46
|
+
};
|
|
47
|
+
export declare function getClosestItemIndexes(array: any[], value: any, accessor: any, log: any): {
|
|
48
|
+
left: number;
|
|
49
|
+
right: number;
|
|
50
|
+
};
|
|
51
|
+
export declare function getClosestItem(array: any[], value: any, accessor: any, log?: any): any;
|
|
52
|
+
export declare const overlayColors: import("d3-scale").ScaleOrdinal<string, unknown, never>;
|
|
53
|
+
export declare function head(array: any[], accessor?: any): any;
|
|
54
|
+
export declare function tail(array: any[], accessor?: any): any[] | undefined;
|
|
55
|
+
export declare const first: typeof head;
|
|
56
|
+
export declare function last(array: any[], accessor?: any): any;
|
|
57
|
+
export declare function isDefined(d: any): boolean;
|
|
58
|
+
export declare function isNotDefined(d: any): boolean;
|
|
59
|
+
export declare function isObject(d: any): boolean;
|
|
60
|
+
export declare const isArray: (arg: any) => arg is any[];
|
|
61
|
+
export declare function touchPosition(touch: any, e: any): number[];
|
|
62
|
+
export declare function mousePosition(e: any, defaultRect?: any): number[];
|
|
63
|
+
export declare function clearCanvas(canvasList: any[], ratio: any): void;
|
|
64
|
+
export declare function capitalizeFirst(str: string): string;
|
|
65
|
+
export declare function hexToRGBA(inputHex: string | undefined, opacity: number): string;
|
|
66
|
+
export declare function toObject(array: any[], iteratee?: any): any;
|
|
67
|
+
export declare function mapValue(object: any, iteratee: any): any;
|
|
68
|
+
export declare function mapObject(object?: any, iteratee?: any): any[];
|
|
69
|
+
export declare function replaceAtIndex(array: any[], index: number, value: any): any[];
|
|
70
|
+
export declare function forOwn(obj: any, iteratee: any): void;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Simple inline logger — no external debug dependency.
|
|
3
|
+
* Avoids webpack dynamic-require issues with the `debug` npm package.
|
|
4
|
+
*
|
|
5
|
+
* Enabled when:
|
|
6
|
+
* - localStorage.getItem("DEBUG") or localStorage.getItem("VNINVEST_DEBUG") is set
|
|
7
|
+
* - process.env.DEBUG is set
|
|
8
|
+
*
|
|
9
|
+
* Usage:
|
|
10
|
+
* import { createLogger } from '@/lib/utils/logger';
|
|
11
|
+
* const log = createLogger('vninvestcharts-widget:adapter:binance');
|
|
12
|
+
* log.info('Fetching data for %s', symbol);
|
|
13
|
+
*/
|
|
14
|
+
export interface Logger {
|
|
15
|
+
log: (...args: unknown[]) => void;
|
|
16
|
+
info: (...args: unknown[]) => void;
|
|
17
|
+
warn: (...args: unknown[]) => void;
|
|
18
|
+
error: (...args: unknown[]) => void;
|
|
19
|
+
debug: (...args: unknown[]) => void;
|
|
20
|
+
trace: (...args: unknown[]) => void;
|
|
21
|
+
extend: (namespace: string) => Logger;
|
|
22
|
+
}
|
|
23
|
+
export declare function createLogger(namespace: string): Logger;
|
|
24
|
+
export declare const logger: Logger;
|
|
25
|
+
export declare function createComponentLogger(componentName: string): Logger;
|
|
26
|
+
export declare function createAdapterLogger(adapterName: string): Logger;
|
|
27
|
+
export declare function createHookLogger(hookName: string): Logger;
|
|
28
|
+
export declare function createEngineLogger(enginePart: string): Logger;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function mappedSlidingWindow(): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function noop(..._args: any[]): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function rebind(target: any, source: any, ...names: string[]): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function shallowEqual(a: any, b: any): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function slidingWindow(): any;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Storage access — SSOT cho mọi thao tác `localStorage` trong `src/lib/`.
|
|
3
|
+
*
|
|
4
|
+
* Vì sao tồn tại: ESLint cấm truy cập global trực tiếp (`no-restricted-globals`
|
|
5
|
+
* chặn `window`/`document`/`localStorage`). Nhưng `typeof localStorage === "undefined"`
|
|
6
|
+
* là **guard SSR**, không phải truy cập — vẫn bị rule quy cho lỗi, nên mọi module cần
|
|
7
|
+
* guard lại tự viết, rồi đếm mỗi cái là một lỗi lint mới.
|
|
8
|
+
*
|
|
9
|
+
* Đây là adapter mà chính message của rule yêu cầu: "Use StorageAdapter instead".
|
|
10
|
+
* Việc duy nhất chạm `localStorage` trong `src/lib/` nên nằm ở đây.
|
|
11
|
+
*
|
|
12
|
+
* `credentialStore.ts` từng ghi rằng adapter "không dùng được ở đây vì sẽ thành vòng
|
|
13
|
+
* tròn" — đúng **khi adapter chưa tồn tại**. File này không import gì, nên nay nó dùng
|
|
14
|
+
* được; lý do cũ đã hết hiệu lực và việc tự viết lại guard là chi phí thuần.
|
|
15
|
+
*
|
|
16
|
+
* `getSafeStorage` **không** export: không caller nào cần một handle thô, và export
|
|
17
|
+
* thừa là byte thừa trong bundle (ratchet đo được).
|
|
18
|
+
*
|
|
19
|
+
* Trả về `null` khi không có storage (SSR, hoặc storage bị chặn bởi cookie
|
|
20
|
+
* settings). Kiểm tra bằng try/catch vì Safari private mode **có** `localStorage`
|
|
21
|
+
* nhưng `setItem` ném exception.
|
|
22
|
+
*/
|
|
23
|
+
/** Đọc một khóa. Trả `fallback` nếu không có storage, không có khóa, hoặc JSON hỏng. */
|
|
24
|
+
export declare function readJson<T>(key: string, fallback: T): T;
|
|
25
|
+
/** Ghi một khóa. Trả `false` nếu không ghi được — không ném, để caller quyết định. */
|
|
26
|
+
export declare function writeJson(key: string, value: unknown): boolean;
|
|
27
|
+
/** Đọc một khóa dạng chuỗi. Trả `null` nếu không có storage hoặc không có khóa. */
|
|
28
|
+
export declare function readString(key: string): string | null;
|
|
29
|
+
/** Ghi một khóa dạng chuỗi. Trả `false` nếu không ghi được. */
|
|
30
|
+
export declare function writeString(key: string, value: string): boolean;
|
|
31
|
+
/** Xoá một khóa. Trả `false` nếu không xoá được. */
|
|
32
|
+
export declare function removeKey(key: string): boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type WidgetTimezone = "Asia/Ho_Chi_Minh" | "UTC" | "America/New_York" | "Europe/London";
|
|
2
|
+
export declare function setGlobalTimezone(tz: WidgetTimezone): void;
|
|
3
|
+
export declare function getGlobalTimezone(): WidgetTimezone;
|
|
4
|
+
export declare function getCachedFormatter(locale: string, options: Intl.DateTimeFormatOptions): Intl.DateTimeFormat;
|
|
5
|
+
/**
|
|
6
|
+
* Định dạng mốc thời gian tuân thủ múi giờ SSOT toàn cục.
|
|
7
|
+
* Hỗ trợ cache formatter để tối ưu hóa hiệu năng render 60 FPS.
|
|
8
|
+
*/
|
|
9
|
+
export declare function formatWithTimezone(date: Date | number, options?: Intl.DateTimeFormatOptions): string;
|
|
10
|
+
export declare function formatCustomDateWithTimezone(date: Date | number, pattern?: "yyyy-mm-dd" | "dd/mm/yyyy" | "mm/dd/yyyy", includeTime?: boolean): string;
|
|
11
|
+
/**
|
|
12
|
+
* Format compact tick dates for X-axis ticks (e.g. DD/MM, MM/DD, MM/YYYY, DD/MM HH:mm).
|
|
13
|
+
*/
|
|
14
|
+
export declare function formatTickDateWithTimezone(date: Date | number, pattern?: "yyyy-mm-dd" | "dd/mm/yyyy" | "mm/dd/yyyy", mode?: "dayMonth" | "monthYear" | "dayMonthTime" | "time" | "year"): string;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VNInvestCharts Public API
|
|
3
|
+
*
|
|
4
|
+
* Curated exports for external consumers.
|
|
5
|
+
* Internal symbols are marked @deprecated and will be removed in v2.0.
|
|
6
|
+
*
|
|
7
|
+
* Import from:
|
|
8
|
+
* - 'vninvestcharts-widget' (main entry)
|
|
9
|
+
* - 'vninvestcharts-widget/adapters' (data adapters)
|
|
10
|
+
* - 'vninvestcharts-widget/drawing' (drawing utilities - limited)
|
|
11
|
+
* - 'vninvestcharts-widget/types' (shared types)
|
|
12
|
+
*/
|
|
13
|
+
export { VNInvestCharts, type VNInvestChartsProps, } from './widget/VNInvestCharts';
|
|
14
|
+
export { VNInvestMultiCharts, type VNInvestMultiChartsProps, type VNInvestMultiChartsRef, type MultiChartConfig, type ChartLayout, } from './widget/VNInvestMultiCharts';
|
|
15
|
+
export type { VNInvestChartsRef } from './widget/utils/widgetHelpers';
|
|
16
|
+
export { BaseAdapter, UDFDataAdapter, MockAdapter, DjangoVnstockAdapter, createRestAdapter, createMockBars, type UDFDataAdapterConfig, type StockDataAdapter, } from './lib/adapters';
|
|
17
|
+
export type { WatchlistAdapter, WatchlistItem, WatchlistQuoteUpdate, } from './widget/types/watchlist';
|
|
18
|
+
export type { ChartTheme, PaneDescriptor, SeriesTypeId, SeriesConfig, VisibleRange, YAxisSide, TooltipMode, SeriesStyleOverride, IndicatorSet, IndicatorSetsStorage, IndicatorSetStorageLike, BarReplayState, ReplayBarLike, ReplaySpeed, ChartHandle, ChartSplitterProps, UsePaneSizesOptions, UsePaneSizesResult, UseChartThemeResult, } from './lib/core';
|
|
19
|
+
export type { OHLCVBar, OHLCVBar as BarData, } from './lib/types/ohlcv';
|
|
20
|
+
export type { Timeframe, Unsubscribe, SymbolInfo, Trade, OrderbookSnapshot, SourceSemanticsDescriptor } from './lib/types/adapter';
|
|
21
|
+
export type { WidgetCoordinateBridge, WidgetPaneRuntimeSnapshot, WidgetLocale, WidgetMessages, WidgetRuntimeCapabilities, RequestedWidgetRuntime, ResolvedWidgetRuntime, WidgetI18nContextValue, WidgetI18nProviderProps, PaperTradePanelProps, PaperTradePosition, PaperTradeJournalEntry, SettingsModalProps, WorkspaceSchema, WorkspaceSettings, } from './widget';
|
|
22
|
+
export { PaperTradePanel, SettingsModal, WidgetErrorBoundary, WidgetEmptyState, MeasurementOverlay, WorkspaceSerializer, } from './widget';
|
|
23
|
+
export { widgetMessagesEn, widgetMessagesVi, WidgetI18nContext, WidgetI18nProvider, useWidgetI18n, } from './widget';
|
|
24
|
+
export { evaluateRuntimePolicy, resolveRequestedRuntime, shouldForceLegacyRuntime, type RequestedWidgetRuntime as RuntimePolicyRequested, type WidgetRuntimeReasonCode as WidgetRuntimeResolutionReason, } from './widget/runtimePolicy';
|
|
25
|
+
export { type DrawingObject, isDrawingToolName, listDrawingTools, createLocalStorageAdapter, type DrawingStorageAdapter } from "@vninvestcharts/engine-drawing";
|
|
26
|
+
export type { DrawingDockTab, DrawingWorkspaceController, DrawingWorkspaceState, UseDrawingWorkspaceControllerOptions } from "@vninvestcharts/engine-react";
|
|
27
|
+
export { DrawingDock, DrawingInspector, DrawingListPanel, DrawingSemanticPointLegend, generateDrawingLabel, filterDrawings, reorderDrawings, } from './widget';
|
|
28
|
+
export type { DrawingDockLabels, DrawingDockProps, DrawingInspectorLabels, DrawingInspectorProps, DrawingInspectorTextEditorLabels, DrawingInspectorTextEditorProps, DrawingListPanelLabels, DrawingListPanelProps, DrawingSemanticPointLegendLabels, DrawingSemanticPointLegendProps, } from './widget';
|
|
29
|
+
export { getIndicator, registerIndicator, } from './lib/indicators';
|
|
30
|
+
export { injectVNInvestChartsCSS } from './widget/styles/injectStyles';
|
|
31
|
+
export declare const version = "0.2.0";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BU-40-01: Feature flags for backfill worker lanes.
|
|
3
|
+
* Toggle external bars normalization worker and candlestick LOD downsample worker.
|
|
4
|
+
*/
|
|
5
|
+
export interface BackfillWorkerFlags {
|
|
6
|
+
/** Enable/disable external bars normalization async worker (default: true) */
|
|
7
|
+
enableExternalBarsNormalizationWorker?: boolean;
|
|
8
|
+
/** Enable/disable candlestick LOD downsample async worker (default: true) */
|
|
9
|
+
enableCandlestickLodWorker?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const DEFAULT_BACKFILL_WORKER_FLAGS: Required<BackfillWorkerFlags>;
|
|
12
|
+
export declare function resolveBackfillWorkerFlags(props?: BackfillWorkerFlags, searchParams?: URLSearchParams): Required<BackfillWorkerFlags>;
|