StockViewer.Tool 1.0.7

dotnet tool install --global StockViewer.Tool --version 1.0.7
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local StockViewer.Tool --version 1.0.7
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=StockViewer.Tool&version=1.0.7
                    
nuke :add-package StockViewer.Tool --version 1.0.7
                    

StockViewer

StockViewer is a .NET command-line tool for subscribing to and watching China A-share stock quotes in the console.

Install

dotnet tool install --global StockViewer.Tool

After installation, run it with:

stockviewer --help

Usage

Subscribe stocks:

stockviewer subscribe 600000 000001 300750

List subscriptions:

stockviewer list

Watch subscribed stocks:

stockviewer watch

Watch specific stocks without saving them:

stockviewer watch sh600519 sz000001 -i 3 --once

Hide stock names while watching:

stockviewer watch sh600519 sz000001 --hide-name

Unsubscribe:

stockviewer unsubscribe 600000

Notes

  • Subscriptions are saved to .stockviewer/subscriptions.json in the user profile directory.
  • Set STOCKVIEWER_HOME to change the subscription directory.
  • Quote data is fetched from Sina's public quote endpoint. Availability and refresh speed depend on that service.
  • Supported symbol formats include 600000, 000001, 300750, sh600000, sz000001, and bj8xxxxx.

Development

dotnet build
dotnet run --project StockViewer.Tests\StockViewer.Tests.csproj
dotnet pack -c Release

Publish

Create a NuGet API key at nuget.org, then publish the package:

$env:NUGET_API_KEY = "<your-api-key>"
.\publish.ps1
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.0.7 170 7/13/2026
1.0.6 121 7/13/2026
1.0.5 114 7/10/2026
1.0.4 106 7/10/2026
1.0.3 116 7/10/2026
1.0.2 121 7/6/2026
1.0.1 117 7/1/2026
1.0.0 116 7/1/2026