Skip to content

Releases: NoCandles/dsh-stock-bar

dsh-stock-bar 1.1.0

Choose a tag to compare

@NoCandles NoCandles released this 21 Oct 03:08

侧边栏页(可选,需要 dsh-better-sidebar)

  • 装了 dsh-better-sidebar 时,把「股票」注册成右侧栏标签页:dsh-stock-bar:portfolio,单实例,order 60。
  • 持仓/自选、分时与 K 线、五档盘口、流水、预警、AI 分析全部复用顶栏那套组件,数据与设置共享。
  • dsh-better-sidebar 是软依赖:没装时注册逻辑不执行,插件行为与 1.0.0 完全一致,也不会因为缺服务而挂起(inject 仍只有 slots)。
  • 注册包在 ctx.effect 里:禁用 / 热更新 / 卸载时自动注销 tab、释放座位。
  • 侧边栏 tab 不可见时暂停行情轮询(visible),不白耗请求。

自检

  • 客户端 275 条(新增 35 条侧边栏接线 / 渲染 / 暂停轮询 / 清理断言)
  • 四个脚本合计 780 条断言,不需要 DSH 或密钥

Sidebar page (optional, requires dsh-better-sidebar)

  • Registers a single "股票" tab (dsh-stock-bar:portfolio, order 60) in the right sidebar, reusing the exact same components as the top strip.
  • dsh-better-sidebar is a soft dependency: without it the registration code never runs and nothing else changes; the module's static inject is still just slots.
  • Tab registration lives in ctx.effect, so disable/HMR/uninstall unregisters cleanly; polling pauses while the tab is hidden.

Full changelog: CHANGELOG.md

dsh-stock-bar 1.0.0

Choose a tag to compare

@NoCandles NoCandles released this 18 Oct 05:55

钉在 DSH 窗口顶部的股票行情条:看行情、记持仓、画 K 线、让 AI 复盘。

功能

  • 行情条:自选和持仓的实时价、涨跌幅、跑马灯(鼠标滚轮可横滑)、涨跌停标记,可折叠成标题栏小胶囊
  • 图表:分时(1/3/5 日)与 K 线(日/周/月/分钟),MA5/10/20/60、成交量、十字光标、成本虚线
  • 盘口:五档买卖 + 委比
  • 持仓:股数、成本价、市值、浮动与当日盈亏(按币种分开)
  • 记账:交易流水、加权平均成本、已实现盈亏
  • 预警:价格或涨跌幅到线弹提示
  • AI 分析:用 DSH 已配置的模型(供应商 → 模型两级选择),流式输出复盘

安装

在 DSH 插件市场里搜 dsh-stock-bar 直接装,或从本仓库装:

dsh plugin --profile desktop add github:NoCandles/dsh-stock-bar

再把 dsh-stock-bar 加进 <profile>/package.json 的 dsh.profile.bundles,然后完全退出 DSH 再打开。

说明

  • 行情来自东方财富与腾讯的公开接口,不构成投资建议;插件不做交易
  • 行情条在 DSH 窗口内,不是覆盖全桌面的悬浮窗

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, limit-up/down badges, collapses into a small pill in the title bar
  • Charts — intraday (1/3/5 day) and candlesticks (day/week/month/minute) with MA5/10/20/60, volume, crosshair, and a cost line
  • Order book — 5 levels each side + bid/ask imbalance
  • Holdings — shares, cost price, market value, floating and daily P&L (split per currency)
  • Ledger — trade history, weighted-average cost, realized P&L
  • Alerts — price or percentage thresholds with a toast
  • AI review — uses the models already configured in DSH, streamed output

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, and quit DSH completely before relaunching.

Quotes come from public Eastmoney and Tencent endpoints — not investment advice; the plugin does not trade.