Skip to content

feat: add demo-crypto-stream#1

Open
budescode wants to merge 4 commits into
plotly:mainfrom
budescode:main
Open

feat: add demo-crypto-stream#1
budescode wants to merge 4 commits into
plotly:mainfrom
budescode:main

Conversation

@budescode

Copy link
Copy Markdown

Adds a live cryptocurrency dashboard demo using two concurrent persistent WebSocket callbacks.

What it does

  • Streams real-time prices for 10 trading pairs (BTC, ETH, BNB, SOL, XRP, ADA, DOGE, AVAX, DOT, POL) via Binance combined stream
  • Click any card to open a 48h candlestick chart loaded from Binance REST API
  • Chart's latest candle updates live via a second @kline_1h WebSocket stream

Changes

  • packages/demo-crypto-stream/ — new demo package
  • Root pyproject.toml — registered in uv workspace
  • justfile — added just crypto
  • README.md — added demo entry with GIF preview

BUDESCODE added 4 commits June 6, 2026 23:28
…lestick charts

Adds a new demo showcasing two concurrent persistent WebSocket callbacks:
- stream_all_tickers: streams live price/change updates to 10 crypto cards
  via Binance combined stream and set_props
- stream_klines: subscribes to the active symbol's @kline_1h stream and
  pushes live candlestick updates to the modal chart via set_props

On card click, 48h of historical klines are fetched from the Binance REST
API to render the initial chart, then stream_klines takes over with live
updates. Cards show a pulsing "Connecting..." state until first tick.

Registers demo-crypto-stream in the uv workspace, adds just crypto to the
Justfile, and updates both READMEs with description, video preview, and
run instructions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant