Always-on quotes strip pinned to the top of the DSH window (folds into a titlebar capsule and queues with other top-bar plugins): watchlist and holdings with shares, cost and per-currency P&L, candlestick and intraday charts with MA, volume and crosshair, 5-level order book, trade ledger with realized P&L, and price alerts. AI review streams over selectable data packs (daily candles, intraday, multi-day money flow, ETF constituents, share creation and redemption), adds a verdict card with auto-set alerts, supports follow-up questions on a selected passage, and can run on a schedule. With dsh-better-sidebar installed the same dashboard also opens as a right-sidebar tab. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-stock-bar
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:NoCandles/dsh-stock-bar
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
中文 · English
A stock ticker strip pinned to the top of the DSH window: quotes, holdings, charts, AI review.
Features
- Ticker strip — live price and change for watchlist and holdings, scrolling marquee (mouse wheel works too), limit-up/down badges, collapses into a small pill in the title bar; immersive when idle — the whole strip fades out and the drag grip/clock/buttons retreat, hover brings everything back solid; each symbol can opt out of the strip individually — hit the 📌 pin in the table to keep it in the list but off the strip (so the strip stops growing), pin it back anytime; the
⋮⋮grip on the left drags the whole strip anywhere (position is remembered as a percentage of the window, so it stays put across monitors and resizes; double-click the grip to reset; dragging to the edges is allowed too — only 120px of the strip needs to stay inside the window); ⚓ dock to the session view embeds the strip at the end of the chat/trace/context tab row (stepping clear of the trailing "⋯" button), vertically centered against the tab text (it tracks the host's tab row live), so it never drifts when the window resizes or the sidebar opens/closes (with the right sidebar open the center column narrows and the strip no longer fits after the tab row, so it wraps to the line below and spans the column width instead of running over the sidebar); on any other page it folds itself back into the top-right pill and re-docks automatically when you return to the conversation view; grabbing the grip undocks it (the tab row is tracked by resize + ResizeObserver + MutationObserver events — no polling while idle; during the right-sidebar open/close animation re-renders are throttled to one every 120ms with a final pass once the animation settles, so it no longer stutters) - Charts — intraday (1/3/5 day, with a top-left read-out for price and average price; the x-axis is a fixed trading-session axis: ticks at 9:30/10:30/11:30|13:00/14:00/15:00 with the lunch break folded into one tick, the line only extends to the current time and the rest of the day stays blank; the right axis labels price first, change-percentage underneath, and the y-axis auto-fits the day's actual range (like Eastmoney's app, so even a ±1% day shows its trend clearly) but never beyond the price limit — on a limit-up day the axis is exactly ±10.00% (20% for ChiNext/STAR, 30% for BJSE; ETFs round to their 0.001 tick; indexes and HK/US names are not capped)) and candlesticks (day/week/month/minute) with MA5/10/20/30/60 (price read-outs in the chart's top-left corner plus matching tags on the right axis, both following the crosshair), volume, crosshair, and a cost line (K-line only — the intraday chart does not draw it, and the cost no longer stretches the intraday y-axis); the sub-pane switches between MACD / KDJ / RSI with read-outs following the crosshair; drag left-to-right on the candles to zoom into that slice of the timeline — the overview bar under the chart (both ends labelled with the full year) shows the full range and the current window, drag the window's edges to change the granularity or its middle to pan (pixel-accurate, widened to avoid mis-clicks), click outside it or hit “All” to reset (moving the cursor only overlays the hover layer — grid, volume, candles and MAs are painted once and cached, never redrawn as a whole)
- Order book — 5 levels each side + bid/ask imbalance (a percentage; hover for the formula, both sides' totals and the difference)
- ETF premium/discount — the detail area shows IOPV / premium rate / latest NAV per unit for ETFs (Tencent quote fields, premium color-coded red/green; a missing value shows "unavailable" instead of an error)
- Paper trading — an isolated virtual account that never touches real positions: FIFO average cost, rolling cash, total/realized P&L and fees; selling more than held or buying with insufficient cash is blocked with concrete numbers; initial cash configurable in settings (default 100k). AI auto-trading: click "run one AI round", or enable auto mode (intraday polling every N minutes / multiple fixed times) — the AI buys/sells inside the simulated account based on your watchlist quotes (out-of-list symbols must resolve to a real quote; every decision is logged with its rejection reason). Strategy trading: local rule engine watches prices every 20 s (zero AI cost, instant triggers) — 9 condition types: P&L/price thresholds, MA golden/death cross, volume spike (≥ M× the N-day average), N-day high breakout, trailing stop (sell when price falls X% from your holding-period high), with up to 3 AND-combined conditions per rule (e.g. "volume spike + 20-day-high breakout before buying"); with execution mode "ask AI first", the AI is called exactly at the trigger moment with the trigger context, so it participates when prices are right instead of every single tick; 8 one-click presets (stop-loss / take-profit / golden-cross buy / death-cross exit …)
- Calendar — dividends/splits, earnings preannouncements and share unlock events for your top-12 holdings (or any single symbol) within the next 30/90/180/365 days (Eastmoney datacenter, cached 6h)
- Portfolio AI diagnosis — run the AI analysis on the whole portfolio: concentration (top-3 share / HHI), sector distribution, β and correlation vs CSI 300, ledger discipline — a five-step verdict, never concrete trade calls; history is archived as "Portfolio" for review and follow-ups
- Redundant data sources — Eastmoney first for quotes / candles / intraday, automatic Tencent fallback (
fqklinefor day/week/month with adjustments,mklinefor minute candles,minute/queryfor intraday);/healthreports which source K-lines actually used, and it switches back automatically once the primary recovers - Holdings — shares, cost price, market value, floating and daily P&L (split per currency); an equity curve records the portfolio value once a day (plotted as floating P&L %, with period return and max drawdown)
- Ledger — trade history, realized P&L; recording a buy/sell automatically updates the position's shares and cost (weighted average on buys, gains/losses diluted into the remaining shares, same as brokers); cost stays hand-editable
- Alerts — price or percentage thresholds with a toast; duplicate conditions merge on save and the same alert re-fires at most once an hour; every trigger is kept in a history table (time / name / condition / price, clearable); both the alerts and trades pages can be filtered per symbol
- AI review — uses the models already configured in DSH (provider → model picker), streamed output; the data pack also includes sector attribution (industry/concept boards of the day with main inflow and breadth, plus the stock's excess vs its primary board; ETFs borrow their top holding's boards) and a fundamentals snapshot (PE/PB/ROE/margins/YoY, latest reported quarter)
- Sidebar page (optional) — with dsh-better-sidebar installed, the same panel also opens as a "股票" tab in the right sidebar, sharing holdings and settings with the top strip; polling pauses while the tab is hidden
Install
Search dsh-stock-bar in the DSH plugin market.
Or install from this repo:
dsh plugin --profile desktop add github:NoCandles/dsh-stock-bar
Then add dsh-stock-bar to dsh.profile.bundles in <profile>/package.json (dsh plugin only forwards args to pnpm and does not edit that field — a bundle that is not listed is never loaded), and quit DSH completely and relaunch — a page refresh is not enough.
Uninstall:
dsh plugin --profile desktop remove dsh-stock-bar
Usage
Click any symbol in the top strip to open the panel: Holdings / Watchlist / Add / AI review / Trades / Alerts / Settings. Share counts and cost prices are edited inline in the table; table headers sort, there is a code/name search box, and a summary row sits at the bottom.
With dsh-better-sidebar installed, a "股票" tab also appears in the right sidebar (same components as the top strip; polling pauses while the tab is hidden).
Self-checks
node scripts/verify.mjs # host, 306 assertions offline (add --offline)
node scripts/verify-client.mjs # client rendering, 806 assertions
node scripts/verify-live.mjs # real HTTP end-to-end, 180 assertions
node scripts/verify-analysis.mjs # AI data pack, 167 assertions
1459 assertions in total; none of them need DSH or any API key.
Notes
- Quotes come from public Eastmoney and Tencent endpoints — not investment advice; the plugin does not trade
- The strip lives inside the DSH window; it is not a desktop-wide always-on-top overlay
- The expanded strip is a self-sizing floating card that lets clicks through its empty background; collapse it with "—" and click the pill to expand again (no hover-to-expand, which used to make the UI vanish as soon as the mouse moved)
- Editing
lib/client.jsneeds a page refresh; editinglib/index.js(host) needs a DSH restart
Routes, internals and known limitations: docs/notes.md (Chinese). Changelog: CHANGELOG.md.
License
MIT
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 10735
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 10735
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
ccch1mneyyy/dsh-TUI★ 8661
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 7538
A fixed-corner whale widget for the DSH web GUI — balance, today's usage and per-turn cost with peak/off-peak pricing, editable balance-alert and daily-budget bubbles, a module-based custom bubble queue with A/B weighted choices and random lines or images, 30+ vendor templates (OpenAI, OpenRouter, Kimi, SiliconFlow, Ark, Zhipu, MiniMax and more) with per-model balance and subscription quota, plus task-end sound, imported audio, custom roles and a resource manager. Local-only, no telemetry.
omdsh-dev/DSH-better-sidebar★ 5419
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
omdsh-dev/dsh-genui★ 1103
Interactive UI components rendered inline in replies: layout, charts, forms, quizzes, mermaid, 3D scenes, and an action event loop back to the model.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.