hithink-finance-shared
Shared rules and lifecycle entry point. Contains only global constraints, authentication, output, security, updates, and Skills management; does not host business data-retrieval routing.
Prerequisites Table
| Condition |
Action |
| First time using this CLI or suspecting version drift |
Run hithink-finance version --format json and hithink-finance capabilities --format json |
| Machine-readable output required |
Always add --format json |
| Results may be very large |
Use the command-declared --output <path> to write to disk; remote stdout returns only a summary |
| Remote Hithink financial data service required |
First confirm auth status or prepare HITHINK_FINANCE_API_KEY / --api-key-stdin |
Quick Decisions
| User intent |
Preferred command / route |
| Check whether the CLI is available or its version |
hithink-finance version --format json |
| View the actual capability list |
hithink-finance capabilities --format json |
| View the parameter contract of a command |
hithink-finance schema <capability-id> --format json |
| Obtain and save the API Key |
First open https://fuyao.aicubes.cn/admin/ to get the API Key, then run hithink-finance auth login --api-key-stdin --format json; in an interactive terminal you can also run hithink-finance auth login for hidden input |
| Check authentication status |
hithink-finance auth status --format json |
| View non-sensitive configuration |
hithink-finance config show --format json |
| Diagnose the runtime environment |
hithink-finance doctor --format json |
| Sync/repair companion Skills |
hithink-finance skills status --format json or hithink-finance skills sync --format json |
| Update the CLI |
hithink-finance update --check --format json only checks; after confirmation use hithink-finance update --format json to update to the latest version |
| Preview uninstallation |
hithink-finance uninstall --plan --format json |
References
Permissions Table
| Capability |
Credentials |
| Local data/db/market panel |
Usually no API Key required, unless remote dump sync or initialization is needed |
| symbol/market remote/special/financials/index/fund/futures/options/valuation |
Unified API Key required |
| skills/update/uninstall |
Local filesystem permissions required; do not write to global directories not managed by the CLI |
Boundary Statement
- Business data-retrieval requests must switch to the symbol, market, special-data, financials, index, fund, futures, options, valuation, data, or research skill.
- Users may provide the API Key to the Agent context for convenience; the Agent does not repeat it and notes that the chat platform may retain message records. Do not write the Key into command parameters, project configuration, logs, Markdown, Git, or other shareable content; for local configuration, prefer stdin, a user-level persistent source, or the system credential store.
- Do not expand stderr update prompts, diagnostic details, or complete large data results as-is as the final answer.