Logo: Dyt Ashare

Dyt Ashare

Communautéit
renjiegod
dyt-ashare

Use DYT AShare whenever a request concerns China A-shares (A股), 股票、指数、行情、信息查询、历史价格、上海/深圳/北京标的、分钟线、数据覆盖、质量检查、技术分析、研究、回测或可复现性. Route every A-share information or analysis request through this skill and use dytcn's structured JSON output. Do not use it for crypto or non-China markets.

Iwwersiicht

Editeurrenjiegod
Repositorydyt-ashare-cli
Skill-Nummdyt-ashare
Stären
287
Forks
0
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    renjiegod huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Dyt Ashare an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/renjiegod/dyt-ashare-cli/tree/main/skills/dyt-ashare
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/renjiegod/dyt-ashare-cli.git /tmp/dyt-ashare-cli
mkdir -p .claude/skills
cp -r /tmp/dyt-ashare-cli/skills/dyt-ashare .claude/skills/dyt-ashare
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Dyt Ashare an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Dyt Ashare automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Dyt Ashare net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

DYT AShare routing skill

This is the single entry point for A-share information lookup and analysis. Use the installed dytcn CLI and keep the command output as JSON. coverage, minutes and daily can work without login when the server's guest policy allows them. Run dytcn usage when account quota is relevant; run dytcn auth login before sync or account-only usage. Never ask the user to send an API key in chat.

Route by intent

User intentRouteRequired steps
A-share stock or index information, available history, or a requested date windowCoverage and data lookupNormalize a six-digit symbol with .SH, .SZ, or .BJ; run dytcn coverage before dytcn minutes, dytcn daily, or dytcn sync.
Historical minute/daily bars or a reproducible local datasetData retrievalUse dytcn minutes for a window of at most 31 calendar days, or dytcn daily for a daily window. Each remote daily request is at most 366 calendar days; the CLI splits longer ranges sequentially and consumes the matching quota. Prefer --out or --dir so the result can be inspected again.
Missing bars, duplicates, invalid OHLCV, session completeness, or dataset provenanceQuality analysisRun dytcn analyze --input <minutes.json> and report its quality fields, observed interval, row count, dataset IDs, and SHA256 values.
Technical analysis, strategy research, or a backtest inputResearch workflowRetrieve and validate the exact immutable data first, then analyze it locally. Use dytcn analyze for minute or daily JSON quality checks, or run dytcn backtest run for the built-in daily replay and keep its JSON plus self-contained HTML report. Treat descriptive statistics and backtest results as research evidence, not as a profitable strategy or a live trading signal.
Quota, rate limit, local installation, or version/update statusAccount and environmentUse dytcn usage, dytcn doctor, or dytcn auth status; guest limits are server-enforced and keys must not be rotated to bypass them.

Authentication and quota

Guest access is a supported mode, not a broken one. The server enforces the guest policy; the client never blocks a request that the server allows.

  • Check the session mode before a multi-step workflow: dytcn auth status reports mode (guest or account), and every coverage/minutes/daily answer carries an auth block with the same mode plus earliest_allowed_date when the server reports it.
  • Guest mode is limited by the server: request rate limits and daily request/row quotas, with any history boundary reported by the service. A single recent query is usually fine; a long history window, a batch of symbols, or a backtest dataset may require an account.
  • Recommend dytcn auth login when the task needs full history, repeated or bulk requests, sync, or usage. Keep working in guest mode meanwhile; never make login a precondition for answering, and never block a deliverable on it.
  • The key is entered by the user in their own terminal: dytcn auth login prompts with hidden input and stores the key in the local state directory. Never ask the user to paste a key into chat, never pass one as a command argument, never write one into a repository, a note, or a script. DYT_ASHARE_API_KEY exists for unattended CI and is read from the environment.
  • On a limit error, report the server code and the hint from the CLI error (guest_minute_rate_limited, guest_daily_rate_limited, guest_rows_daily_limited, guest_history_limit, invalid_api_key), then either wait for retry_after_seconds, narrow the request, or offer dytcn auth login. Do not loop retries and never rotate keys to work around a limit.
  • dytcn usage reports the account quota; a guest session has no usage answer because the endpoint is account-only.

A-share data rules

  • Resolve exchanges explicitly: 600000.SH, 000001.SZ, or a supported .BJ symbol.
  • Dates and bar ends use Asia/Shanghai. A date-only --to includes the full day.
  • Coverage absence does not prove a holiday. Distinguish the requested range, available files, and certified trading-calendar coverage.
  • Prices are unadjusted, volume is shares, and turnover is CNY. Opening auction data can appear at 09:31. Do not infer tradable returns across corporate actions without adjustment, fees, slippage, and tradability checks.
  • Preserve the returned immutable dataset IDs, SHA256 hashes, processor version, query range, and CLI version with any research result. Never glob or combine arbitrary Parquet revisions.

Safe command sequence

text
dytcn auth status              # optional; reports guest or account mode
dytcn coverage --symbol 600000.SH --from YYYY-MM-DD --to YYYY-MM-DD
dytcn minutes --symbol 600000.SH --from YYYY-MM-DD --to YYYY-MM-DD --out minutes.json
dytcn daily --symbol 600000.SH --from YYYY-MM-DD --to YYYY-MM-DD --out daily.json
dytcn usage                    # optional; requires login for account quota
dytcn analyze --input minutes.json

For a local daily replay, run coverage first, then fetch the exact window through the same remote API:

text
dytcn coverage --symbol 600000.SH --from YYYY-MM-DD --to YYYY-MM-DD
dytcn backtest run --symbol 600000.SH --from YYYY-MM-DD --to YYYY-MM-DD \
  --strategy sma-cross --fast 10 --slow 30 --initial-cash 100000 \
  --fee-bps 3 --slippage-bps 2 --html ./backtest.html

The replay is long-only, uses unadjusted daily prices, sends a signal observed at the close to the next bar's open, rounds buys down to the lot size, and liquidates at the final close. The report contains return, drawdown, fees, turnover, terminal state, trades, dataset IDs and SHA256 provenance. Missing dates remain unknown; the replay does not infer holidays or model queue priority, partial fills, 涨跌停, suspension, dividends, or splits. Keep the returned JSON and HTML together when sharing results.

For the first implementation, the execution ledger is a typed Rust sequential state machine. Polars is appropriate later as an optional feature for large columnar indicator pipelines, and Rayon is appropriate for independent symbol or parameter sweeps. Do not parallelize one symbol's cash and position ledger, and do not nest an outer Rayon pool around Polars' own pool without an explicit thread budget.

For a larger reproducible JSON window, use dytcn daily or dytcn backtest run; the CLI splits daily requests into bounded sequential windows. Use dytcn sync --symbol ... --from ... --to ... --dir ... only when the selected service advertises dataset manifest and download endpoints, and consume only paths listed in its returned catalog. A failed or quota-limited request should be reported with its server response; do not silently substitute another source.

Heefeg gestallte Froen

Wat mécht de KI-Skill Dyt Ashare?

Use DYT AShare whenever a request concerns China A-shares (A股), 股票、指数、行情、信息查询、历史价格、上海/深圳/北京标的、分钟线、数据覆盖、质量检查、技术分析、研究、回测或可复现性. Route every A-share information or analysis request through this skill and use dytcn's structured JSON output. Do not use it for crypto or non-China markets.

Firwat Dyt Ashare op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Dyt Ashare besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Dyt Ashare an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/renjiegod/dyt-ashare-cli/tree/main/skills/dyt-ashare an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Dyt Ashare benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Dyt Ashare benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Dyt Ashare domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Dyt Ashare gratis?

Jo. renjiegod huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇