Skip to main content

deephaven-plugin-tradingview-lightweight

A Deephaven plugin for creating TradingView Lightweight Charts from Python.

Usage

from deephaven.plot import tradingview_lightweight as tvl

# Simple candlestick chart
chart = tvl.candlestick(
    ohlc_table,
    timestamp="Timestamp",
    open="Open",
    high="High",
    low="Low",
    close="Close",
)

# Multi-series chart
chart = tvl.chart(
    tvl.candlestick(
        ohlc_table,
        timestamp="Timestamp",
        open="Open",
        high="High",
        low="Low",
        close="Close",
    ),
    tvl.line(
        sma_table,
        timestamp="Timestamp",
        value="SMA_20",
        color="#2962FF",
        title="SMA 20",
    ),
    crosshair=tvl.crosshair(mode="magnet"),
    time_scale=tvl.time_scale(time_visible=True),
)

Docs

User-facing documentation lives in docs/ and follows the same structure plotly-express does: one Markdown page per chart type and concept, ending with a ## API Reference block that dhautofunction expands from the Python docstrings.

Build the docs locally

From this plugin's directory (plugins/tradingview-lightweight/):

pip install -r ../../sphinx_ext/sphinx-requirements.txt
pip install dist/deephaven_plugin_tradingview_lightweight-*.whl
python make_docs.py

The rendered Markdown lands in docs/build/markdown/. Don't commit it — docs/build/ is gitignored.

The same plugin_builder.py workflow used for ui and plotly-express works here. From the repo root:

# Reinstall the wheel, then build docs.
python tools/plugin_builder.py --docs --reinstall tradingview-lightweight

# Build docs and regenerate Pass-1 (table) snapshots.
python tools/plugin_builder.py --docs --snapshots --reinstall tradingview-lightweight

Preview the docs

# Live preview at http://localhost:3001 (uses source markdown, no API reference).
npm run docs

# Or, after running `python tools/plugin_builder.py --docs tradingview-lightweight`:
BUILT=true npm run docs

Doc snapshots

TVL has none. docker-compose.docs-snapshots.yml — which backs npm run update-doc-snapshots and plugin_builder.py --snapshots — names only ui and plotly-express in its extractor, snapshotter, and validator services, so running either is a no-op for this plugin.

An earlier docs/snapshots/ directory was removed: it had been produced by out-of-repo tooling, nothing in CI could regenerate or validate it, and the chart entries pointed at PNGs in a form Salmon has no renderer for. Wiring TVL into the shared pipeline is follow-up work; snapshots should come back from that pipeline rather than by hand.

Release files for deephaven-plugin-tradingview-lightweight 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deephaven-plugin-tradingview-lightweight 0.0.1
File Size Uploaded
deephaven_plugin_tradingview_lightweight-0.0.1.tar.gz 330.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for deephaven-plugin-tradingview-lightweight 0.0.1
File Interpreter ABI Platform
deephaven_plugin_tradingview_lightweight-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 690.2 kB

Release files / deephaven_plugin_tradingview_lightweight-0.0.1.tar.gz

Download URL deephaven_plugin_tradingview_lightweight-0.0.1.tar.gz
Size 330.2 kB
Tags Source
SHA-256 checksum
How to use checksums
84a2c27df7875d2c2c00876f6017520ae5234f9fbb08f74107bd20357ef54eec
BLAKE2b-256 checksum
How to use checksums
60f19c04506f0eebc5e003538fd6b9c27c95b1ecffb8bf1ccac06654cec9f30c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / deephaven_plugin_tradingview_lightweight-0.0.1-py3-none-any.whl

Download URL deephaven_plugin_tradingview_lightweight-0.0.1-py3-none-any.whl
Size 360.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cc7769da03bd36adc2d3f5777a2f7fe3e2f69cc0324bd36816978b06e64dc121
BLAKE2b-256 checksum
How to use checksums
b2b37a8895eeb666d7e6dfa419f71d79e7b0235fa0ca076879ac589baa4e7705
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page