Primary README (Chinese): README.md
This repository is used to test and refine the neoapi-python skill bundle for AI coding assistants (Codex, Claude Code). The skill provides guidance for the Fubon Neo Python SDK, including trading and market data workflows.
skills/neoapi-python/- The skill bundle (SKILL.md, references, llms*.txt, VERSION, INSTALL.md)update-skill.ps1- Windows update helper (pulls from GitHub and installs to~/.codex/skills/public/)update-skill.sh- macOS/Linux update helper
The skill is packaged as plain files with a SKILL.md entry point. This keeps the bundle portable across AI platforms that accept local skill bundles or custom instruction folders. For non-Codex platforms, set the install destination to that platform’s skill/instruction folder (use the INSTALL_DIR parameter or env var in the update scripts).
https://github.com/phenomenoner/neoapi-skill
See skills/neoapi-python/INSTALL.md for full instructions. This repo uses skills/ (no leading dot). End users install to:
- Windows:
%USERPROFILE%\.codex\skills\public\neoapi-python - macOS/Linux:
~/.codex/skills/public/neoapi-python
The skill version is stored in skills/neoapi-python/VERSION using semver. Current version: 1.0.0-beta.30 (Beta 1.0.0).
Root-level adapter files are provided for major agents, with Chinese-first guidance and English supplement:
CLAUDE.mdGEMINI.mdAGENTS.md
These adapters point to skills/neoapi-python/ as the canonical source.
The official LLM-oriented pages and llms*.txt endpoints are available online and should be treated as primary references:
https://www.fbs.com.tw/TradeAPI/docs/welcome/build-with-llmhttps://www.fbs.com.tw/TradeAPI/en/docs/welcome/build-with-llm/https://www.fbs.com.tw/TradeAPI/llms.txthttps://www.fbs.com.tw/TradeAPI/llms-full.txthttps://www.fbs.com.tw/TradeAPI/en/llms.txthttps://www.fbs.com.tw/TradeAPI/en/llms-full.txt
The bundled llms*.txt files are offline snapshots. When the official endpoints change, refresh the repo copies and bump VERSION; otherwise the update scripts will treat the installed bundle as unchanged.
The update scripts download the repo zip from GitHub, copy skills/neoapi-python into the install location, and compare VERSION to skip if already up to date.
Example:
.\update-skill.ps1 -Repo phenomenoner/neoapi-skill./update-skill.sh phenomenoner/neoapi-skill- Local integrated runner:
.test/test_runner.py(not included in published skill bundle). - Logs are written to
.test/logs/as both text and JSON summaries. - Suites:
smoke: basic login + market/trade sanity checkscomplex: multi-symbol marketdata matrix + dual-order lifecycleall: full coverage (includes complex checks)
The full release history is maintained in CHANGELOG.md.
The current latest version is 1.0.0-beta.30, with the main update being live fill-handling guidance: use set_on_filled as the low-latency primary fill path, get_order_results as periodic safe-net reconciliation, and never fall back to submitted limit price for P/L.