@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,124 @@
|
|
|
1
|
+
import React, { Component } from "react";
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
|
+
import { noop } from "./utils";
|
|
4
|
+
import { type StockChartContextValue } from "./StockChartContext";
|
|
5
|
+
import type { AnyRecord, CanvasContexts } from "./types";
|
|
6
|
+
export declare function getAxisCanvas(contexts: CanvasContexts | undefined): CanvasRenderingContext2D | undefined;
|
|
7
|
+
export declare function getMouseCanvas(contexts: CanvasContexts | undefined): CanvasRenderingContext2D | undefined;
|
|
8
|
+
export interface GenericComponentProps {
|
|
9
|
+
svgDraw: (moreProps: AnyRecord) => React.ReactNode;
|
|
10
|
+
canvasDraw?: (ctx: CanvasRenderingContext2D, moreProps: AnyRecord) => void;
|
|
11
|
+
drawOn: string[];
|
|
12
|
+
clip?: boolean;
|
|
13
|
+
edgeClip?: boolean;
|
|
14
|
+
interactiveCursorClass?: string;
|
|
15
|
+
selected?: boolean;
|
|
16
|
+
enableDragOnHover?: boolean;
|
|
17
|
+
disablePan?: boolean;
|
|
18
|
+
shouldDisablePanOnMouseDown?: (event: unknown) => boolean;
|
|
19
|
+
canvasToDraw?: (contexts: CanvasContexts | undefined) => CanvasRenderingContext2D | undefined;
|
|
20
|
+
allowAnyChart?: boolean;
|
|
21
|
+
isHover?: (moreProps: AnyRecord, e?: unknown) => boolean;
|
|
22
|
+
onClick?: (moreProps: AnyRecord, e?: unknown) => void;
|
|
23
|
+
onClickWhenHover?: (moreProps: AnyRecord, e?: unknown) => void;
|
|
24
|
+
onClickOutside?: (moreProps: AnyRecord, e?: unknown) => void;
|
|
25
|
+
onPan?: (moreProps: AnyRecord, e?: unknown) => void;
|
|
26
|
+
onPanEnd?: (moreProps: AnyRecord, e?: unknown) => void;
|
|
27
|
+
onDragStart?: (moreProps: AnyRecord, e?: unknown) => void;
|
|
28
|
+
onDrag?: (moreProps: AnyRecord, e?: unknown) => void;
|
|
29
|
+
onDragComplete?: (moreProps: AnyRecord, e?: unknown) => void;
|
|
30
|
+
onDoubleClick?: (moreProps: AnyRecord, e?: unknown) => void;
|
|
31
|
+
onDoubleClickWhenHover?: (moreProps: AnyRecord, e?: unknown) => void;
|
|
32
|
+
onContextMenu?: (moreProps: AnyRecord, e?: unknown) => void;
|
|
33
|
+
onContextMenuWhenHover?: (moreProps: AnyRecord, e?: unknown) => void;
|
|
34
|
+
onMouseMove?: (moreProps: AnyRecord, e?: unknown) => void;
|
|
35
|
+
onMouseDown?: (moreProps: AnyRecord, e?: unknown) => void;
|
|
36
|
+
onHover?: (moreProps: AnyRecord, e?: unknown) => void;
|
|
37
|
+
onUnHover?: (moreProps: AnyRecord, e?: unknown) => void;
|
|
38
|
+
chartId?: number | string;
|
|
39
|
+
morePropsDecorator?: (moreProps: AnyRecord) => AnyRecord;
|
|
40
|
+
}
|
|
41
|
+
interface GenericComponentState {
|
|
42
|
+
updateCount: number;
|
|
43
|
+
}
|
|
44
|
+
declare class GenericComponent extends Component<GenericComponentProps, GenericComponentState> {
|
|
45
|
+
static contextType: React.Context<StockChartContextValue | undefined>;
|
|
46
|
+
static propTypes: {
|
|
47
|
+
svgDraw: PropTypes.Validator<(...args: any[]) => any>;
|
|
48
|
+
canvasDraw: PropTypes.Requireable<(...args: any[]) => any>;
|
|
49
|
+
drawOn: PropTypes.Validator<any[]>;
|
|
50
|
+
clip: PropTypes.Validator<boolean>;
|
|
51
|
+
edgeClip: PropTypes.Validator<boolean>;
|
|
52
|
+
interactiveCursorClass: PropTypes.Requireable<string>;
|
|
53
|
+
selected: PropTypes.Validator<boolean>;
|
|
54
|
+
enableDragOnHover: PropTypes.Validator<boolean>;
|
|
55
|
+
disablePan: PropTypes.Validator<boolean>;
|
|
56
|
+
shouldDisablePanOnMouseDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
57
|
+
canvasToDraw: PropTypes.Validator<(...args: any[]) => any>;
|
|
58
|
+
isHover: PropTypes.Requireable<(...args: any[]) => any>;
|
|
59
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
60
|
+
onClickWhenHover: PropTypes.Requireable<(...args: any[]) => any>;
|
|
61
|
+
onClickOutside: PropTypes.Requireable<(...args: any[]) => any>;
|
|
62
|
+
onPan: PropTypes.Requireable<(...args: any[]) => any>;
|
|
63
|
+
onPanEnd: PropTypes.Requireable<(...args: any[]) => any>;
|
|
64
|
+
onDragStart: PropTypes.Requireable<(...args: any[]) => any>;
|
|
65
|
+
onDrag: PropTypes.Requireable<(...args: any[]) => any>;
|
|
66
|
+
onDragComplete: PropTypes.Requireable<(...args: any[]) => any>;
|
|
67
|
+
onDoubleClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
68
|
+
onDoubleClickWhenHover: PropTypes.Requireable<(...args: any[]) => any>;
|
|
69
|
+
onContextMenu: PropTypes.Requireable<(...args: any[]) => any>;
|
|
70
|
+
onContextMenuWhenHover: PropTypes.Requireable<(...args: any[]) => any>;
|
|
71
|
+
onMouseMove: PropTypes.Requireable<(...args: any[]) => any>;
|
|
72
|
+
onMouseDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
73
|
+
onHover: PropTypes.Requireable<(...args: any[]) => any>;
|
|
74
|
+
onUnHover: PropTypes.Requireable<(...args: any[]) => any>;
|
|
75
|
+
chartId: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
76
|
+
};
|
|
77
|
+
static defaultProps: {
|
|
78
|
+
svgDraw: any;
|
|
79
|
+
canvasToDraw: (contexts: CanvasContexts | undefined) => CanvasRenderingContext2D | undefined;
|
|
80
|
+
clip: true;
|
|
81
|
+
edgeClip: false;
|
|
82
|
+
selected: false;
|
|
83
|
+
disablePan: false;
|
|
84
|
+
enableDragOnHover: false;
|
|
85
|
+
onClickWhenHover: typeof noop;
|
|
86
|
+
onClickOutside: typeof noop;
|
|
87
|
+
onDragStart: typeof noop;
|
|
88
|
+
onMouseMove: typeof noop;
|
|
89
|
+
onMouseDown: typeof noop;
|
|
90
|
+
};
|
|
91
|
+
context: StockChartContextValue;
|
|
92
|
+
moreProps: AnyRecord;
|
|
93
|
+
suscriberId: number;
|
|
94
|
+
dragInProgress: boolean | undefined;
|
|
95
|
+
someDragInProgress: boolean | undefined;
|
|
96
|
+
iSetTheCursorClass: boolean | undefined;
|
|
97
|
+
evaluationInProgress: boolean | undefined;
|
|
98
|
+
constructor(props: GenericComponentProps);
|
|
99
|
+
componentDidMount(): void;
|
|
100
|
+
componentWillUnmount(): void;
|
|
101
|
+
componentDidUpdate(prevProps?: Readonly<Partial<GenericComponentProps>>): void;
|
|
102
|
+
updateMorePropsFromContext(context: StockChartContextValue): void;
|
|
103
|
+
updateMoreProps(moreProps: AnyRecord): void;
|
|
104
|
+
shouldTypeProceed(_type: string, _moreProps: AnyRecord): boolean;
|
|
105
|
+
preEvaluate(_type?: string, _moreProps?: AnyRecord, _e?: unknown): void;
|
|
106
|
+
listener(type: string, moreProps: AnyRecord, state: unknown, e: unknown): void;
|
|
107
|
+
evaluateType(type: string, e: unknown): void;
|
|
108
|
+
isHover(e: unknown): boolean;
|
|
109
|
+
getPanConditions(): {
|
|
110
|
+
draggable: any;
|
|
111
|
+
panEnabled: boolean;
|
|
112
|
+
shouldDisablePanOnMouseDown: ((event: unknown) => boolean) | undefined;
|
|
113
|
+
};
|
|
114
|
+
draw({ trigger, force }?: {
|
|
115
|
+
trigger?: string;
|
|
116
|
+
force?: boolean;
|
|
117
|
+
}): void;
|
|
118
|
+
getMoreProps(): AnyRecord;
|
|
119
|
+
preCanvasDraw(_ctx: CanvasRenderingContext2D, _moreProps: AnyRecord): void;
|
|
120
|
+
postCanvasDraw(_ctx: CanvasRenderingContext2D, _moreProps: AnyRecord): void;
|
|
121
|
+
drawOnCanvas(): void;
|
|
122
|
+
render(): React.JSX.Element | null;
|
|
123
|
+
}
|
|
124
|
+
export default GenericComponent;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { AnyRecord, CanvasContexts } from "./types";
|
|
3
|
+
export interface ChartConfig {
|
|
4
|
+
id: number | string;
|
|
5
|
+
paneId?: string;
|
|
6
|
+
yScaleId?: string;
|
|
7
|
+
origin: [number, number];
|
|
8
|
+
padding: number | {
|
|
9
|
+
top: number;
|
|
10
|
+
bottom: number;
|
|
11
|
+
};
|
|
12
|
+
yScale: any;
|
|
13
|
+
yExtents: any[];
|
|
14
|
+
width: number;
|
|
15
|
+
height: number;
|
|
16
|
+
mouseCoordinates?: {
|
|
17
|
+
at: string;
|
|
18
|
+
format: (n: number) => string;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export interface StockChartContextValue {
|
|
22
|
+
plotData: any[];
|
|
23
|
+
fullData: any[];
|
|
24
|
+
chartConfig: ChartConfig[];
|
|
25
|
+
xScale: any;
|
|
26
|
+
xAccessor: (d: any) => any;
|
|
27
|
+
displayXAccessor: (d: any) => any;
|
|
28
|
+
width: number;
|
|
29
|
+
height: number;
|
|
30
|
+
chartCanvasType: "svg" | "hybrid";
|
|
31
|
+
margin: {
|
|
32
|
+
top: number;
|
|
33
|
+
right: number;
|
|
34
|
+
bottom: number;
|
|
35
|
+
left: number;
|
|
36
|
+
};
|
|
37
|
+
ratio: number;
|
|
38
|
+
getCanvasContexts?: () => CanvasContexts | undefined;
|
|
39
|
+
xAxisZoom?: (newDomain: any[]) => void;
|
|
40
|
+
yAxisZoom?: (chartId: string | number, newDomain: any[]) => void;
|
|
41
|
+
amIOnTop?: (id: string | number) => boolean;
|
|
42
|
+
redraw?: () => void;
|
|
43
|
+
subscribe: (id: string | number, rest: AnyRecord) => void;
|
|
44
|
+
unsubscribe: (id: string | number) => void;
|
|
45
|
+
setCursorClass?: (className: string | null | undefined) => void;
|
|
46
|
+
generateSubscriptionId: () => number;
|
|
47
|
+
getMutableState: () => AnyRecord;
|
|
48
|
+
morePropsDecorator?: (moreProps: AnyRecord) => AnyRecord;
|
|
49
|
+
}
|
|
50
|
+
declare const StockChartContext: React.Context<StockChartContextValue | undefined>;
|
|
51
|
+
export declare const StockChartProvider: React.Provider<StockChartContextValue | undefined>;
|
|
52
|
+
export declare const useStockChart: () => StockChartContextValue;
|
|
53
|
+
export default StockChartContext;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { OrderbookSnapshot, StockDataAdapter, SymbolInfo, Timeframe, Trade, Unsubscribe } from "../types/adapter";
|
|
2
|
+
import type { OHLCVBar } from "../types/ohlcv";
|
|
3
|
+
export type RawOHLCVBar = Omit<OHLCVBar, "date" | "index" | "dataIndex"> & {
|
|
4
|
+
date: string | number | Date;
|
|
5
|
+
index?: number;
|
|
6
|
+
dataIndex?: number;
|
|
7
|
+
};
|
|
8
|
+
export declare abstract class BaseAdapter implements StockDataAdapter {
|
|
9
|
+
protected readonly baseUrl: string;
|
|
10
|
+
protected readonly cacheTtlMs: number;
|
|
11
|
+
private readonly requestCache;
|
|
12
|
+
protected constructor(baseUrl?: string, cacheTtlMs?: number);
|
|
13
|
+
protected buildUrl(path: string): string;
|
|
14
|
+
protected buildWebSocketUrl(path: string): string;
|
|
15
|
+
protected requestJson<T>(path: string, init?: RequestInit): Promise<T>;
|
|
16
|
+
protected memoize<T>(cacheKey: string, loader: () => Promise<T>): Promise<T>;
|
|
17
|
+
protected normalizeBar(rawBar: RawOHLCVBar, fallbackIndex: number): OHLCVBar;
|
|
18
|
+
protected normalizeBars(rawBars: readonly RawOHLCVBar[]): OHLCVBar[];
|
|
19
|
+
abstract fetchBarsInRange(symbol: string, timeframe: Timeframe, from: Date, to: Date): Promise<readonly OHLCVBar[]>;
|
|
20
|
+
abstract fetchBarsBefore(symbol: string, timeframe: Timeframe, before: Date, limit?: number): Promise<readonly OHLCVBar[]>;
|
|
21
|
+
abstract subscribeToBar(symbol: string, timeframe: Timeframe, onBar: (bar: OHLCVBar) => void): Unsubscribe;
|
|
22
|
+
abstract subscribeToTrades(symbol: string, onTrade: (trade: Trade) => void): Unsubscribe;
|
|
23
|
+
abstract subscribeToOrderbook(symbol: string, onUpdate: (snapshot: OrderbookSnapshot) => void): Unsubscribe;
|
|
24
|
+
abstract searchSymbols(query: string): Promise<readonly SymbolInfo[]>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { CanonicalFetchResult, DataAdapter, GetBarsParams, GetBarsResult, KLineBar, Level2Snapshot, TickData } from "./DataAdapter";
|
|
2
|
+
import type { SourceSemanticsDescriptor } from "@vninvestcharts/engine-core";
|
|
3
|
+
/** Error carrying the upstream HTTP status so callers can handle geo-blocks (451) gracefully. */
|
|
4
|
+
export declare class BinanceHttpError extends Error {
|
|
5
|
+
readonly status: number;
|
|
6
|
+
constructor(status: number, message: string);
|
|
7
|
+
}
|
|
8
|
+
export declare class BinanceAdapter implements DataAdapter {
|
|
9
|
+
readonly name = "binance";
|
|
10
|
+
/**
|
|
11
|
+
* Latched when Binance answers HTTP 451 (regional block). Demo shells read this
|
|
12
|
+
* to serve offline data with a visible status instead of an empty chart.
|
|
13
|
+
* Cleared on the next successful fetch.
|
|
14
|
+
*/
|
|
15
|
+
private regionBlocked;
|
|
16
|
+
/** True after an observed HTTP 451 until a fetch succeeds again. */
|
|
17
|
+
isRegionBlocked(): boolean;
|
|
18
|
+
getSourceSemantics(): SourceSemanticsDescriptor;
|
|
19
|
+
getBars(params: GetBarsParams): Promise<GetBarsResult>;
|
|
20
|
+
fetchBarsInRange(symbol: string, timeframe: string, from: Date, to: Date, signal?: AbortSignal): Promise<readonly KLineBar[]>;
|
|
21
|
+
fetchBarsBefore(symbol: string, timeframe: string, before: Date, limit?: number, signal?: AbortSignal): Promise<readonly KLineBar[]>;
|
|
22
|
+
getBarsCanonical(params: GetBarsParams): Promise<CanonicalFetchResult>;
|
|
23
|
+
subscribeLevel2(params: {
|
|
24
|
+
symbol: string;
|
|
25
|
+
depth: number;
|
|
26
|
+
callback: (snapshot: Level2Snapshot) => void;
|
|
27
|
+
}): () => void;
|
|
28
|
+
subscribeTicks(params: {
|
|
29
|
+
symbol: string;
|
|
30
|
+
callback: (tick: TickData) => void;
|
|
31
|
+
}): () => void;
|
|
32
|
+
subscribeKline(params: {
|
|
33
|
+
symbol: string;
|
|
34
|
+
interval: string;
|
|
35
|
+
callback: (bar: KLineBar & {
|
|
36
|
+
isClosed?: boolean;
|
|
37
|
+
}) => void;
|
|
38
|
+
}): () => void;
|
|
39
|
+
fetchLevel2History(params: {
|
|
40
|
+
symbol: string;
|
|
41
|
+
from: number;
|
|
42
|
+
to: number;
|
|
43
|
+
depth: number;
|
|
44
|
+
}): Promise<Level2Snapshot[]>;
|
|
45
|
+
fetchTickHistory(params: {
|
|
46
|
+
symbol: string;
|
|
47
|
+
from: number;
|
|
48
|
+
to: number;
|
|
49
|
+
}): Promise<TickData[]>;
|
|
50
|
+
}
|
|
51
|
+
export declare const binanceAdapter: BinanceAdapter;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseAdapter } from "./BaseAdapter";
|
|
2
|
+
import type { OHLCVBar } from "../types/ohlcv";
|
|
3
|
+
import type { OrderbookSnapshot, SymbolInfo, Timeframe, Trade, Unsubscribe } from "../types/adapter";
|
|
4
|
+
/**
|
|
5
|
+
* CSVAdapter loads and parses offline/local CSV data.
|
|
6
|
+
*/
|
|
7
|
+
export declare class CSVAdapter extends BaseAdapter {
|
|
8
|
+
private parsedBars;
|
|
9
|
+
constructor(csvContent: string, baseUrl?: string);
|
|
10
|
+
private parseCSV;
|
|
11
|
+
fetchBarsInRange(symbol: string, timeframe: Timeframe, from: Date, to: Date): Promise<readonly OHLCVBar[]>;
|
|
12
|
+
fetchBarsBefore(symbol: string, timeframe: Timeframe, before: Date, limit?: number): Promise<readonly OHLCVBar[]>;
|
|
13
|
+
subscribeToBar(symbol: string, timeframe: Timeframe, onBar: (bar: OHLCVBar) => void): Unsubscribe;
|
|
14
|
+
subscribeToTrades(symbol: string, onTrade: (trade: Trade) => void): Unsubscribe;
|
|
15
|
+
subscribeToOrderbook(symbol: string, onUpdate: (snapshot: OrderbookSnapshot) => void): Unsubscribe;
|
|
16
|
+
searchSymbols(query: string): Promise<readonly SymbolInfo[]>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ContinuousContractAdapter - Client-side adapter for continuous futures contracts
|
|
3
|
+
*
|
|
4
|
+
* Implements DataAdapter interface for seamless integration with chart widget.
|
|
5
|
+
* Delegates heavy stitching computation to BFF (ContinuousContractAdapter.server.ts)
|
|
6
|
+
* but provides local roll logic for immediate feedback and offline capability.
|
|
7
|
+
*/
|
|
8
|
+
import type { DataAdapter, KLineBar, GetBarsParams, GetBarsResult, CanonicalFetchResult } from "./DataAdapter";
|
|
9
|
+
import type { SourceSemanticsDescriptor } from "@vninvestcharts/engine-core";
|
|
10
|
+
import type { ContinuousContractConfig, ContinuousContractMetadata } from "./ContinuousContractTypes";
|
|
11
|
+
export declare class ContinuousContractAdapter implements DataAdapter {
|
|
12
|
+
readonly name = "continuous-futures";
|
|
13
|
+
private config;
|
|
14
|
+
private rootSymbol;
|
|
15
|
+
private fetchRawBars?;
|
|
16
|
+
constructor(rootSymbol: string, config?: Partial<ContinuousContractConfig>, fetchRawBars?: (symbol: string, timeframe: string, from: Date, to: Date) => Promise<readonly KLineBar[]>);
|
|
17
|
+
/** Get the continuous contract configuration */
|
|
18
|
+
getConfig(): ContinuousContractConfig;
|
|
19
|
+
/** Update roll configuration */
|
|
20
|
+
setConfig(config: Partial<ContinuousContractConfig>): void;
|
|
21
|
+
getBars(params: GetBarsParams): Promise<GetBarsResult>;
|
|
22
|
+
getBarsCanonical(params: GetBarsParams): Promise<CanonicalFetchResult>;
|
|
23
|
+
fetchBarsInRange?(symbol: string, timeframe: string, from: Date, to: Date, signal?: AbortSignal): Promise<readonly KLineBar[]>;
|
|
24
|
+
fetchBarsBefore?(symbol: string, timeframe: string, before: Date, limit?: number, signal?: AbortSignal): Promise<readonly KLineBar[]>;
|
|
25
|
+
getSourceSemantics(): SourceSemanticsDescriptor;
|
|
26
|
+
/**
|
|
27
|
+
* Fetch continuous contract bars - tries BFF first, falls back to local computation
|
|
28
|
+
*/
|
|
29
|
+
private fetchContinuousBars;
|
|
30
|
+
/**
|
|
31
|
+
* Fetch from BFF endpoint
|
|
32
|
+
*/
|
|
33
|
+
private fetchFromBFF;
|
|
34
|
+
/**
|
|
35
|
+
* Local computation fallback - stitches contracts client-side
|
|
36
|
+
* Requires individual contract data to be available via another adapter
|
|
37
|
+
*/
|
|
38
|
+
private computeLocally;
|
|
39
|
+
/**
|
|
40
|
+
* Get or fetch continuous contract metadata
|
|
41
|
+
*/
|
|
42
|
+
getMetadata(): Promise<ContinuousContractMetadata>;
|
|
43
|
+
/**
|
|
44
|
+
* Generate synthetic metadata for development/testing
|
|
45
|
+
*/
|
|
46
|
+
private generateSyntheticMetadata;
|
|
47
|
+
/**
|
|
48
|
+
* Build coverage fragments for canonical fetch
|
|
49
|
+
*/
|
|
50
|
+
private buildCoverage;
|
|
51
|
+
private mapToContinuousParams;
|
|
52
|
+
private getCacheKey;
|
|
53
|
+
private cacheBars;
|
|
54
|
+
private intervalToMs;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Factory function to create adapter for a continuous contract
|
|
58
|
+
*/
|
|
59
|
+
export declare function createContinuousContractAdapter(rootSymbol: string, config?: Partial<ContinuousContractConfig>): ContinuousContractAdapter;
|
|
60
|
+
/**
|
|
61
|
+
* Get available continuous contract configurations
|
|
62
|
+
*/
|
|
63
|
+
export declare function getAvailableContinuousContracts(): string[];
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Continuous Futures Contract Types
|
|
3
|
+
*
|
|
4
|
+
* Defines types for continuous futures contracts with roll logic and back-adjustment.
|
|
5
|
+
* Supports multiple roll methods: Ratio, Panama (Cumulative Difference), Backward Ratio.
|
|
6
|
+
*/
|
|
7
|
+
import type { KLineBar } from "./DataAdapter";
|
|
8
|
+
/** Futures contract metadata */
|
|
9
|
+
export interface FuturesContract {
|
|
10
|
+
/** Unique contract identifier (e.g., "VN30F2409", "VN30F2412") */
|
|
11
|
+
symbol: string;
|
|
12
|
+
/** Underlying symbol (e.g., "VN30F") */
|
|
13
|
+
rootSymbol: string;
|
|
14
|
+
/** Expiry date (Unix ms) */
|
|
15
|
+
expiry: number;
|
|
16
|
+
/** First trading date (Unix ms) */
|
|
17
|
+
firstTradeDate: number;
|
|
18
|
+
/** Last trading date (Unix ms) - typically a few days before expiry */
|
|
19
|
+
lastTradeDate: number;
|
|
20
|
+
/** Contract month code (F, G, H, J, K, M, N, Q, U, V, X, Z) */
|
|
21
|
+
monthCode: string;
|
|
22
|
+
/** Contract year (2-digit) */
|
|
23
|
+
year: number;
|
|
24
|
+
/** Tick size */
|
|
25
|
+
tickSize: number;
|
|
26
|
+
/** Contract multiplier */
|
|
27
|
+
multiplier: number;
|
|
28
|
+
/** Exchange */
|
|
29
|
+
exchange: string;
|
|
30
|
+
}
|
|
31
|
+
/** Continuous contract configuration */
|
|
32
|
+
export interface ContinuousContractConfig {
|
|
33
|
+
/** Root symbol for the continuous contract (e.g., "VN30F1M" for front month) */
|
|
34
|
+
rootSymbol: string;
|
|
35
|
+
/** Roll method to use */
|
|
36
|
+
rollMethod: RollMethod;
|
|
37
|
+
/** Roll trigger: days before expiry or volume-based */
|
|
38
|
+
rollTrigger: RollTrigger;
|
|
39
|
+
/** Days before expiry to roll (if rollTrigger === "days-before-expiry") */
|
|
40
|
+
rollDaysBeforeExpiry?: number;
|
|
41
|
+
/** Volume threshold for volume-based roll (if rollTrigger === "volume") */
|
|
42
|
+
volumeThreshold?: number;
|
|
43
|
+
/** Whether to adjust volumes during back-adjustment */
|
|
44
|
+
adjustVolumes: boolean;
|
|
45
|
+
/** Custom roll calendar (overrides auto-detection) */
|
|
46
|
+
customRollDates?: number[];
|
|
47
|
+
}
|
|
48
|
+
/** Roll adjustment methods */
|
|
49
|
+
export type RollMethod = "ratio" | "panama" | "backward-ratio";
|
|
50
|
+
/** Roll trigger types */
|
|
51
|
+
export type RollTrigger = "days-before-expiry" | "volume" | "open-interest" | "custom";
|
|
52
|
+
/** Roll point information */
|
|
53
|
+
export interface RollPoint {
|
|
54
|
+
/** Timestamp of roll (Unix ms) */
|
|
55
|
+
timestamp: number;
|
|
56
|
+
/** Expiring contract symbol */
|
|
57
|
+
fromContract: string;
|
|
58
|
+
/** New contract symbol */
|
|
59
|
+
toContract: string;
|
|
60
|
+
/** Price of expiring contract at roll */
|
|
61
|
+
fromPrice: number;
|
|
62
|
+
/** Price of new contract at roll */
|
|
63
|
+
toPrice: number;
|
|
64
|
+
/** Adjustment factor applied */
|
|
65
|
+
adjustmentFactor: number;
|
|
66
|
+
/** Cumulative adjustment up to this point (for Panama) */
|
|
67
|
+
cumulativeAdjustment: number;
|
|
68
|
+
/** Roll method used */
|
|
69
|
+
method: RollMethod;
|
|
70
|
+
}
|
|
71
|
+
/** Continuous contract metadata returned by adapter */
|
|
72
|
+
export interface ContinuousContractMetadata {
|
|
73
|
+
/** Root symbol */
|
|
74
|
+
rootSymbol: string;
|
|
75
|
+
/** All contracts in the chain */
|
|
76
|
+
contracts: FuturesContract[];
|
|
77
|
+
/** Roll points in chronological order */
|
|
78
|
+
rollPoints: RollPoint[];
|
|
79
|
+
/** Current active contract */
|
|
80
|
+
activeContract: string;
|
|
81
|
+
/** Next roll date (Unix ms) */
|
|
82
|
+
nextRollDate: number | null;
|
|
83
|
+
/** Total cumulative adjustment (for Panama method) */
|
|
84
|
+
totalCumulativeAdjustment: number;
|
|
85
|
+
/** Data range available */
|
|
86
|
+
dataRange: {
|
|
87
|
+
from: number;
|
|
88
|
+
to: number;
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
/** Parameters for fetching continuous contract bars */
|
|
92
|
+
export interface GetContinuousBarsParams {
|
|
93
|
+
/** Continuous contract root symbol (e.g., "VN30F1M") */
|
|
94
|
+
rootSymbol: string;
|
|
95
|
+
/** Timeframe/interval */
|
|
96
|
+
interval: string;
|
|
97
|
+
/** Fetch type */
|
|
98
|
+
type: "init" | "forward" | "backward";
|
|
99
|
+
/** Anchor timestamp for backward fetch */
|
|
100
|
+
timestamp: number | null;
|
|
101
|
+
/** Maximum bars to return */
|
|
102
|
+
limit: number;
|
|
103
|
+
/** Abort signal */
|
|
104
|
+
signal?: AbortSignal;
|
|
105
|
+
/** Override roll config for this request */
|
|
106
|
+
rollConfig?: Partial<ContinuousContractConfig>;
|
|
107
|
+
}
|
|
108
|
+
/** Result with continuous contract bars and metadata */
|
|
109
|
+
export interface GetContinuousBarsResult {
|
|
110
|
+
/** Adjusted continuous bars */
|
|
111
|
+
bars: KLineBar[];
|
|
112
|
+
/** Whether more historical data available */
|
|
113
|
+
hasMore: boolean;
|
|
114
|
+
/** Metadata about the continuous contract */
|
|
115
|
+
metadata: ContinuousContractMetadata;
|
|
116
|
+
/** Roll points within the returned range */
|
|
117
|
+
rollPointsInRange: RollPoint[];
|
|
118
|
+
}
|
|
119
|
+
/** Server-side stitching request (BFF) */
|
|
120
|
+
export interface StitchContinuousRequest {
|
|
121
|
+
rootSymbol: string;
|
|
122
|
+
interval: string;
|
|
123
|
+
from: number;
|
|
124
|
+
to: number;
|
|
125
|
+
rollConfig: ContinuousContractConfig;
|
|
126
|
+
}
|
|
127
|
+
/** Server-side stitching response (BFF) */
|
|
128
|
+
export interface StitchContinuousResponse {
|
|
129
|
+
bars: KLineBar[];
|
|
130
|
+
metadata: ContinuousContractMetadata;
|
|
131
|
+
rollPoints: RollPoint[];
|
|
132
|
+
/** Source contracts used */
|
|
133
|
+
sourceContracts: string[];
|
|
134
|
+
/** Any warnings (e.g., missing data gaps) */
|
|
135
|
+
warnings: string[];
|
|
136
|
+
}
|
|
137
|
+
/** Futures contract calendar entry */
|
|
138
|
+
export interface ContractCalendarEntry {
|
|
139
|
+
rootSymbol: string;
|
|
140
|
+
contracts: FuturesContract[];
|
|
141
|
+
/** Typical roll schedule (e.g., "quarterly", "monthly", "serial") */
|
|
142
|
+
rollSchedule: "monthly" | "quarterly" | "serial" | "custom";
|
|
143
|
+
/** Exchange trading hours */
|
|
144
|
+
tradingHours: {
|
|
145
|
+
timezone: string;
|
|
146
|
+
sessions: Array<{
|
|
147
|
+
open: string;
|
|
148
|
+
close: string;
|
|
149
|
+
days: number[];
|
|
150
|
+
}>;
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
/** Default roll configurations for known VN futures */
|
|
154
|
+
export declare const DEFAULT_VN_FUTURES_ROLL_CONFIG: Record<string, ContinuousContractConfig>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseAdapter } from "./BaseAdapter";
|
|
2
|
+
import type { OHLCVBar } from "../types/ohlcv";
|
|
3
|
+
import type { OrderbookSnapshot, SymbolInfo, Timeframe, Trade, Unsubscribe } from "../types/adapter";
|
|
4
|
+
/**
|
|
5
|
+
* DBAdapter simulated database queries executor for stock data.
|
|
6
|
+
*/
|
|
7
|
+
export declare class DBAdapter extends BaseAdapter {
|
|
8
|
+
private readonly queryExecutor;
|
|
9
|
+
constructor(queryExecutor?: (sql: string, params: unknown[]) => Promise<unknown[]>, baseUrl?: string);
|
|
10
|
+
fetchBarsInRange(symbol: string, timeframe: Timeframe, from: Date, to: Date): Promise<readonly OHLCVBar[]>;
|
|
11
|
+
fetchBarsBefore(symbol: string, timeframe: Timeframe, before: Date, limit?: number): Promise<readonly OHLCVBar[]>;
|
|
12
|
+
subscribeToBar(symbol: string, timeframe: Timeframe, onBar: (bar: OHLCVBar) => void): Unsubscribe;
|
|
13
|
+
subscribeToTrades(symbol: string, onTrade: (trade: Trade) => void): Unsubscribe;
|
|
14
|
+
subscribeToOrderbook(symbol: string, onUpdate: (snapshot: OrderbookSnapshot) => void): Unsubscribe;
|
|
15
|
+
searchSymbols(query: string): Promise<readonly SymbolInfo[]>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CE20: DataAdapter abstraction for demo data fetching.
|
|
3
|
+
*
|
|
4
|
+
* This is intentionally separate from `StockDataAdapter` (used by VNInvestCharts for
|
|
5
|
+
* chart rendering). `DataAdapter` handles historical bar loading for the demo shell.
|
|
6
|
+
*/
|
|
7
|
+
import type { CoverageFragment, CoverageBulkSlotInfo, SourceSemanticsDescriptor } from "@vninvestcharts/engine-core";
|
|
8
|
+
/** A single OHLCV bar with a Unix-ms timestamp. */
|
|
9
|
+
export interface KLineBar {
|
|
10
|
+
timestamp: number;
|
|
11
|
+
open: number;
|
|
12
|
+
high: number;
|
|
13
|
+
low: number;
|
|
14
|
+
close: number;
|
|
15
|
+
volume: number;
|
|
16
|
+
}
|
|
17
|
+
/** Whether we are fetching the initial set, newer bars, or older bars. */
|
|
18
|
+
export type GetBarsType = "init" | "forward" | "backward";
|
|
19
|
+
export interface GetBarsParams {
|
|
20
|
+
type: GetBarsType;
|
|
21
|
+
symbol: string;
|
|
22
|
+
interval: string;
|
|
23
|
+
/**
|
|
24
|
+
* Anchor timestamp (ms).
|
|
25
|
+
* - "init"/"forward": unused (pass null)
|
|
26
|
+
* - "backward": fetch bars whose close time is strictly before this value
|
|
27
|
+
*/
|
|
28
|
+
timestamp: number | null;
|
|
29
|
+
limit: number;
|
|
30
|
+
signal?: AbortSignal;
|
|
31
|
+
}
|
|
32
|
+
export interface GetBarsResult {
|
|
33
|
+
bars: KLineBar[];
|
|
34
|
+
/** true when the source may have more bars further back */
|
|
35
|
+
hasMore: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Canonical fetch result that carries coverage fragments alongside bars.
|
|
39
|
+
*
|
|
40
|
+
* `coverage` describes exactly which time ranges were resolved by this fetch
|
|
41
|
+
* call and why any sub-range remains unresolved. The consumer (planner, cache
|
|
42
|
+
* writer) can use this to reclassify gaps from `not-fetched` to a concrete
|
|
43
|
+
* `GapReason` without making a second API call.
|
|
44
|
+
*/
|
|
45
|
+
export interface CanonicalFetchResult extends GetBarsResult {
|
|
46
|
+
/** One or more fragments describing the resolved and unresolved coverage. */
|
|
47
|
+
readonly coverage: readonly CoverageFragment[];
|
|
48
|
+
}
|
|
49
|
+
export interface Level2Snapshot {
|
|
50
|
+
symbol: string;
|
|
51
|
+
timestamp: number;
|
|
52
|
+
bids: [price: number, size: number][];
|
|
53
|
+
asks: [price: number, size: number][];
|
|
54
|
+
}
|
|
55
|
+
export interface TickData {
|
|
56
|
+
symbol: string;
|
|
57
|
+
timestamp: number;
|
|
58
|
+
price: number;
|
|
59
|
+
size: number;
|
|
60
|
+
side: "buy" | "sell";
|
|
61
|
+
}
|
|
62
|
+
export interface DataAdapter {
|
|
63
|
+
readonly name: string;
|
|
64
|
+
getBars(params: GetBarsParams): Promise<GetBarsResult>;
|
|
65
|
+
/**
|
|
66
|
+
* Optional exact-range helper for sources that can fetch directly by [from, to].
|
|
67
|
+
* The widget bridge prefers this over `getBars()` when present so it does not
|
|
68
|
+
* collapse range requests into a latest-page bootstrap.
|
|
69
|
+
*/
|
|
70
|
+
fetchBarsInRange?(symbol: string, timeframe: string, from: Date, to: Date, signal?: AbortSignal): Promise<readonly KLineBar[]>;
|
|
71
|
+
/**
|
|
72
|
+
* Optional backward-anchor helper mirroring the widget contract directly.
|
|
73
|
+
*/
|
|
74
|
+
fetchBarsBefore?(symbol: string, timeframe: string, before: Date, limit?: number, signal?: AbortSignal): Promise<readonly KLineBar[]>;
|
|
75
|
+
/**
|
|
76
|
+
* Optional canonical variant of getBars that also returns coverage fragments.
|
|
77
|
+
* Adapters that can accurately report what they fetched (and what they could
|
|
78
|
+
* not) should implement this method. The demo bridge prefers this over
|
|
79
|
+
* getBars when present.
|
|
80
|
+
*/
|
|
81
|
+
getBarsCanonical?(params: GetBarsParams): Promise<CanonicalFetchResult>;
|
|
82
|
+
getSourceSemantics?(): SourceSemanticsDescriptor;
|
|
83
|
+
/** Subscribe to Level 2 order book updates */
|
|
84
|
+
subscribeLevel2?(params: {
|
|
85
|
+
symbol: string;
|
|
86
|
+
depth: number;
|
|
87
|
+
callback: (snapshot: Level2Snapshot) => void;
|
|
88
|
+
}): () => void;
|
|
89
|
+
/** Subscribe to tick/print data */
|
|
90
|
+
subscribeTicks?(params: {
|
|
91
|
+
symbol: string;
|
|
92
|
+
callback: (tick: TickData) => void;
|
|
93
|
+
}): () => void;
|
|
94
|
+
/**
|
|
95
|
+
* Subscribe to live kline (candle) updates for the given symbol + interval.
|
|
96
|
+
* Emits the current candle on every update (same `timestamp` while the candle
|
|
97
|
+
* is open; a new `timestamp` when a new candle opens). Consumers dedupe by
|
|
98
|
+
* timestamp so re-emits update the open candle in place.
|
|
99
|
+
*/
|
|
100
|
+
subscribeKline?(params: {
|
|
101
|
+
symbol: string;
|
|
102
|
+
interval: string;
|
|
103
|
+
callback: (bar: KLineBar & {
|
|
104
|
+
isClosed?: boolean;
|
|
105
|
+
}) => void;
|
|
106
|
+
}): () => void;
|
|
107
|
+
/** Fetch historical Level 2 snapshots (if available) */
|
|
108
|
+
fetchLevel2History?(params: {
|
|
109
|
+
symbol: string;
|
|
110
|
+
from: number;
|
|
111
|
+
to: number;
|
|
112
|
+
depth: number;
|
|
113
|
+
}): Promise<Level2Snapshot[]>;
|
|
114
|
+
/** Fetch historical tick data */
|
|
115
|
+
fetchTickHistory?(params: {
|
|
116
|
+
symbol: string;
|
|
117
|
+
from: number;
|
|
118
|
+
to: number;
|
|
119
|
+
}): Promise<TickData[]>;
|
|
120
|
+
/**
|
|
121
|
+
* Phase 4 — Optional bulk coverage endpoint for multi-chart prefetch.
|
|
122
|
+
*
|
|
123
|
+
* When implemented, the widget can issue 1 bulk request instead of N
|
|
124
|
+
* individual fetchBarsInRange calls during layout change.
|
|
125
|
+
*
|
|
126
|
+
* Returns coverage metadata per slotId, allowing the widget to:
|
|
127
|
+
* - Determine which ranges are already available
|
|
128
|
+
* - Only fetch missing gaps
|
|
129
|
+
* - Mount charts with coverage data for zero-wait render
|
|
130
|
+
*/
|
|
131
|
+
fetchCoverageBulk?(slots: Array<{
|
|
132
|
+
slotId: string;
|
|
133
|
+
symbol: string;
|
|
134
|
+
timeframe: string;
|
|
135
|
+
}>): Promise<Record<string, CoverageBulkSlotInfo>>;
|
|
136
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { OrderbookSnapshot, SymbolInfo, Timeframe, Trade, Unsubscribe } from "../types/adapter";
|
|
2
|
+
import type { OHLCVBar } from "../types/ohlcv";
|
|
3
|
+
import { BaseAdapter } from "./BaseAdapter";
|
|
4
|
+
import type { SourceSemanticsDescriptor } from "@vninvestcharts/engine-core";
|
|
5
|
+
export declare class DjangoVnstockAdapter extends BaseAdapter {
|
|
6
|
+
constructor(baseUrl?: string, cacheTtlMs?: number);
|
|
7
|
+
getSourceSemantics(): SourceSemanticsDescriptor;
|
|
8
|
+
fetchBarsInRange(symbol: string, timeframe: Timeframe, from: Date, to: Date): Promise<readonly OHLCVBar[]>;
|
|
9
|
+
fetchBarsBefore(symbol: string, timeframe: Timeframe, before: Date, limit?: number): Promise<readonly OHLCVBar[]>;
|
|
10
|
+
subscribeToBar(symbol: string, timeframe: Timeframe, onBar: (bar: OHLCVBar) => void): Unsubscribe;
|
|
11
|
+
subscribeToTrades(symbol: string, onTrade: (trade: Trade) => void): Unsubscribe;
|
|
12
|
+
subscribeToOrderbook(symbol: string, onUpdate: (snapshot: OrderbookSnapshot) => void): Unsubscribe;
|
|
13
|
+
searchSymbols(query: string): Promise<readonly SymbolInfo[]>;
|
|
14
|
+
}
|
|
15
|
+
export declare function createRestAdapter(baseUrl?: string): DjangoVnstockAdapter;
|