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
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package StockViewer.Tool --version 1.0.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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.jsonin the user profile directory. - Set
STOCKVIEWER_HOMEto 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, andbj8xxxxx.
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 | Versions 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.