DYT AShare CLI

The dytcn CLI and the dyt-ashare skill give an agent minute and daily China A-share quotes and run a simple backtest.

  • 287 ★ on the repository
  • Last commit
  • MIT
CLI

Extended access

Why this level

  • The installer runs a script from a third-party server and installs a binary.
  • The CLI stores the API key of a paid service and sends requests to its API.
All reasons and checks

renjiegod/dyt-ashare-cli

Install

Manual install

curl -fsSL https://data.doyoutrade.cloud/releases/dyt-ashare/install.sh | sh

The macOS and Linux command from the README; Windows uses a PowerShell installer. The skill is added later with `dytcn skills install`.

Access and checks

How we review

Extended accessThe tool runs code or makes network calls and only reads external data.

  • The installer runs a script from a third-party server and installs a binary.
  • The CLI stores the API key of a paid service and sends requests to its API.

This is third-party code. Review the repository files before installing.

What it does

DYT AShare CLI connects an agent to a paid service of historical China A-share data. `dytcn coverage` checks whether a ticker has data for a period, `dytcn minutes` downloads minute candles, and `dytcn analyze` looks for duplicates and abnormal prices in them. `dytcn backtest run` fetches daily candles through the API and runs the `buy-and-hold` and `sma-cross` strategies in a local process, then saves JSON and a standalone HTML chart. The `dyt-ashare` skill is installed with `dytcn skills install`. Guest mode works without a key under limits, while extended rights and Parquet downloads come with a key.

Who it is for. Analysts and developers preparing China equity data who want Claude Code or Codex to check coverage and download samples on its own.

Good fit when

  • Before downloading, you need to confirm that ticker `600000.SH` has minute data for the chosen dates.
  • A downloaded sample must be checked for duplicates, gaps and odd prices before analysis.
  • An SMA-crossover idea has to be run quickly on daily candles with fees and slippage.
  • A research base is built from Parquet datasets on a local disk.

Not a fit when

  • You need US or Russian market quotes: the service covers China A-shares only.
  • Real-money execution is required: the tool computes backtests and does not place orders.
  • Prices must be adjusted for dividends and splits: minute prices are unadjusted.

Example request

Check whether minute data for 600000.SH exists for 19–20 October 2026, download it into minutes.json and look for duplicates and abnormal prices.

Limitations

The service is paid: guest mode limits history window, request rate and daily quota, and Parquet downloads are unavailable. Prices and terms are agreed by email with the author. A minute query covers up to 31 calendar days and prices are unadjusted. The backtest ignores price limits, trading halts and order queues. Part of the data depends on subscription length and seller terms. The repository holds the CLI and documentation, while the data itself belongs to the service.

How to disable. Delete the `dytcn` binary from the install directory and the `dyt-ashare` skill folder from the agent project. Clear the stored API key in the CLI settings and revoke the key with the provider separately.

FAQ

Does the CLI work without buying a key?

Yes, guest mode answers coverage, minute and daily queries within limits. A key is needed for long history, large volumes and Parquet downloads.

How should tickers be written?

A ticker code carries its exchange suffix: `600000.SH`, `000001.SZ`, `830946.BJ`. Dates are read in Beijing time and the end date is included.

Which strategies does the backtest support?

`buy-and-hold` and `sma-cross` are built in. The signal fires at the close, the trade fills at the next daily open and lots round down.

What does the doctor command show?

`dytcn doctor` checks the local install and client state. Run it after installation and before contacting support.

How does client updating work?

Auto-update compares files against a list that carries a size and SHA-256 for each, and the hash of the list itself is matched with anchors in the repository releases. A mismatch rejects the update.

Discussion

No questions or reviews yet.

CLI tools

Four skills for China's A-share market: quotes and indicators, trend-pullback signals, a simulated account and backtests

SkillExtended access260Repository stars
Official

The official Tushare Pro skill: quotes, financial statements, indices and macro data of the Chinese market from a natural-language request

SkillExtended access462Repository stars

A local database of China A-share and ETF market data with an MCP server for natural-language queries

MCP serverExtended access3.2KRepository stars

A skill with Chinese A-share market data: quotes, research reports, financials, news and 11 more categories from 34 sources, no keys

SkillExtended access11.8KRepository stars

MCP server and HTTP API on AKShare: the agent finds Chinese market data interfaces, reads their parameters and fetches tables

MCP serverExtended access1.6KRepository stars

ApocData Skill gives an agent China A-share quotes, financials and parsed announcements through 45 read-only endpoints.

SkillExtended access104Repository stars

Comparison with similar tools

Cards that share the main search query, and how they differ.

ToolOfficialAuthenticationRepository starsMain difference
DYT AShare CLI (this card)no287
a-share-skillno260Relies on Python data sources; DYT AShare CLI uses its own paid API and downloads minute candles with quality checks
AKShare One MCPnonot required247Serves stock data through an MCP server; this is a standalone binary CLI with a skill and a local backtest

README in short

The repository describes a paid minute-data API for the China market and its `dytcn` CLI. The CLI checks coverage, downloads candles, analyses quality and runs a local backtest. Client updates are verified against hashes anchored in the repository releases.

README badge

Report a problem