Hysen Labs
Open-source project
sbr0574/StockWidget avatar
sbr0574

StockWidget

简洁桌面股票盯盘Widget工具,置顶浮窗显示,自由摆放,免安装,支持沪深京三市

136 stars29 forksPythonApache-2.0
DEEP OPEN-SOURCE ANALYSIS

StockWidget is a transparent desktop stock ticker for Windows with mini K line charts

Built with PySide6, the widget floats on top, supports the Shanghai, Shenzhen and Beijing markets, and pulls quotes from Sina and East Money.

What the widget does

StockWidget is a minimal transparent desktop widget for Windows that shows a real time quote table for specified stock codes and optionally a mini same day K line. The README says it supports stocks, funds and indices across the Shanghai, Shenzhen and Beijing markets, and it is meant to sit in a corner of the screen for quick glances. The window is borderless and top most by default, can be dragged anywhere, hidden by double click, and opened through a right click menu, with optional mouse click through. A system tray icon toggles visibility from the left click and offers settings or exit from the right click. Global hotkeys, Ctrl+Alt+F to show or hide and Ctrl+Alt+C to toggle click through, are customizable in settings. The table can show name, price, change value, change percent, floating profit, bid and ask sizes, order imbalance, volume, turnover, average price and the K line, with red for up and green for down by default and a monochrome mode as an alternative.

Configuration and data sources

The settings cover layout and data in detail. Font size runs from 5 to 15 points, line spacing is extra pixels, and the K line size scales with font size. The refresh interval is selectable from 1 to 15 seconds. Stock code management uses a list in the settings panel to add, delete, move up, down or to top, and on first launch each day the app fetches the full market code list from an akshare source; watchlist items can be added through a button or by double clicking empty space, and search matches by numeric code, pinyin, initial letters or Chinese name. All settings save immediately to a config file under the application data directory, and refresh pauses when the widget is hidden and resumes when shown. Quotes are fetched with requests from the Sina Finance interface, and the code list is updated through AkShare. The program only issues GET requests and includes no account or trading operations.

Distribution and licensing

The project is structured in layers, with a UI layer for Qt components, a data layer for quote requests and parsing, a pure function core layer that is unit testable, and a platform layer for native differences such as click through, autostart and hotkeys. Prebuilt releases ship as a zip that runs by extracting and launching the executable, and running from source needs Windows 10 or 11, Python 3.12 or later, and dependencies including PySide6, requests and akshare. The README is explicit that the only official release channel is the GitHub Releases page and warns against downloads from other sites. The project is licensed under Apache License 2.0, and redistribution must keep the license and notice files and credit the original author and repository. The repository carries 136 stars and 29 forks with 5 open issues, the default branch is main, and the current version is 1.3.0.

Editorial conclusion

StockWidget is an Apache 2.0 licensed Python widget on the main branch with 136 stars, version 1.3.0, that floats on Windows using PySide6 and pulls quotes from Sina and East Money while officially distributing only through GitHub Releases.

DEEP OPEN-SOURCE ANALYSIS

Official sources

Community notes

Community notes