Fubon Trade Api logo

Fubon Trade Api

Community
Kelu0427
fubon-trade-api

Use when helping users write, review, debug, or validate code for Fubon Neo / Fubon Securities TradeAPI / 富邦新一代 API / 富邦證券 API, including natural-language requests about market data, stock trading, futures/options trading, account queries, conditional orders, SDK installation, local environment checks, latest SDK setup, authentication, certificates, and API Key login. This skill uses the official online llms.txt and llms-full.txt first, with bundled local copies as offline fallback.

Overview

PublisherKelu0427
Repositoryfubon-tradeapi-ai-skill
Skill namefubon-trade-api
Stars
48
Forks
0
Bundled files
6
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 6 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Kelu0427 on GitHub. Read the source before you install it.

Installation

Install the Fubon Trade Api AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Kelu0427/fubon-tradeapi-ai-skill/tree/main
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Kelu0427/fubon-tradeapi-ai-skill.git \
  .claude/skills/fubon-trade-api
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Fubon Trade Api in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Fubon Trade Api on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Fubon Trade Api is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Fubon TradeAPI Skill

Use this skill whenever the user asks for help with Fubon Neo, Fubon Securities API, Fubon TradeAPI, 富邦新一代 API, 富邦證券 API, or natural-language-to-code assistance for Fubon market data, trading, account, futures/options, condition-order workflows, or large-project Fubon API audits.

Source Of Truth

  • Official online index: https://www.fbs.com.tw/TradeAPI/llms.txt. Use first for navigation when network is available.
  • Official online full docs: https://www.fbs.com.tw/TradeAPI/llms-full.txt. Use for exact signatures, object fields, examples, constants, version notes, and error codes when network is available.
  • Bundled llms.txt and llms-full.txt: local cache and offline fallback.
  • references/fubon-api-guidance.md: local workflow and recurring gotchas for agents.
  • scripts/search_docs.py: deterministic search/extract/sync helper for official online docs and local cached docs.

Do not invent API names, enum names, parameter order, or object fields. Prefer official online llms-full.txt; if network is unavailable, use the bundled llms-full.txt cache and say it is the local snapshot.

Workflow

  1. Classify the user's intent:
    • SDK setup/version compatibility, local environment checks, and latest SDK installation/update
    • authentication, password login, API Key login, certificate login
    • market data REST
    • market data WebSocket
    • stock trading and stock account queries
    • futures/options trading and account queries
    • smart/conditional orders
    • large-project audit for an existing app/repository using Fubon APIs
    • error handling, reconnect, or rate limit behavior
  2. Determine the target language. If unspecified, default to Python and say that assumption.
  3. Search the docs with scripts/search_docs.py; add --online when current official docs are needed and network is available.
  4. Read the exact matching section(s) from llms-full.txt; prefer official examples in the user's language.
  5. Produce code that includes imports, login/init steps, object construction, API call, response/error handling, and logout/cleanup when relevant.
  6. If reviewing code, check every SDK call, enum, object field, and argument order against llms-full.txt.

Intent Mapping

Use these natural-language cues and stable API terms to choose searches:

  • setup/version/install/environment check/latest SDK/Python version/SDK: search SDK, compatibility, Python 3.13, v2.2.8, platform-specific SDK download names, and install steps.
  • login/certificate/API Key/account: search login, apikey_login, API Key, certPath, Account.
  • stock quote/price/K-line/books/trades: search Intraday Quote, intraday.quote, Historical Candles, Trades, Books.
  • WebSocket/subscribe/realtime streaming: search websocket_client, subscribe, Trades, Books, Candles.
  • stock order/buy/sell/modify/cancel/order result: search place_order, Order Object, modify_price, cancel_order, get_order_results.
  • futures/options/margin/position: search trading-future, place_order, query_margin_equity, query_single_position, query_estimate_margin.
  • conditional order/TPSL/trailing profit/time slice: search smart-condition, single_condition, multi_condition, TPSL, trail_profit, time_slice_order.
  • large project audit/repository review/automation system/Fubon integration: scan code for Fubon SDK imports, login/session managers, market-data clients, order adapters, accounting services, .env.example, secret handling, paper/live gates, risk managers, mock fallbacks, and docs. Verify SDK calls against llms-full.txt; do not log in or place orders.

Large Project Audit Output

For a large project audit, produce a structured report:

  • Scope: files/modules inspected and Fubon workflows found.
  • P0: issues that can leak secrets, place unintended live orders, bypass risk controls, or use clearly wrong Fubon API calls.
  • P1: likely API mismatches, missing login/init/logout handling, weak paper/live separation, incomplete .env.example, or stale SDK/version assumptions.
  • P2: maintainability, observability, documentation, and test coverage improvements.
  • Verification: commands/tests the user can run without real credentials, plus any manual checks needed before live use.
  • Safety note: state whether the review was static only and whether any real login/order action was intentionally avoided.

Search Examples

bash
python scripts/search_docs.py sync
python scripts/search_docs.py search "place_order OrderType PriceType TimeInForce" --online
python scripts/search_docs.py search "API Key apikey_login" --online
python scripts/search_docs.py section "Intraday Quote" --online
python scripts/search_docs.py section "API Key"
python scripts/search_docs.py lines 23770 23820

On Windows PowerShell:

powershell
python .\scripts\search_docs.py search "place_order OrderType PriceType TimeInForce"

Response Requirements

  • State the verified SDK version or version constraint when relevant.
  • Name the exact documentation anchors searched when giving non-trivial code, e.g. place_order, Order Object, Intraday Quote, apikey_login.
  • Use placeholders for secrets and personal data. Never ask users to paste passwords, API keys, private keys, ID numbers, or certificate passwords into chat.
  • When generating runnable examples that require Fubon credentials, create or update .env.example with placeholder variable names and ensure .env is ignored. Do not create a real .env with secret values unless the user explicitly asks, and never fill it with real credentials.
  • For trading code, explicitly identify whether it may place a real order. Prefer dry-run/review snippets unless the user explicitly asks for live order code.
  • For live order examples, make the account/order parameters obvious placeholders and include a final confirmation step in comments.
  • For market data examples, include sdk.login(...) and sdk.init_realtime() when the official docs require login for market data permission.
  • Prefer modern behavior documented for SDK v2.2.8 unless the user states an older version.
  • If the docs are ambiguous or language-specific, answer with the verified language only and say what still needs checking for other languages.

Common Python Anchors

Verify details in llms-full.txt before finalizing, but these anchors help search:

  • SDK import: from fubon_neo.sdk import FubonSDK
  • Stock order object: from fubon_neo.sdk import Order
  • Trading constants commonly include BSAction, OrderType, PriceType, MarketType, TimeInForce
  • Market data REST client: sdk.marketdata.rest_client.stock or sdk.marketdata.rest_client.futopt
  • Market data WebSocket client: sdk.marketdata.websocket_client.stock or sdk.marketdata.websocket_client.futopt
  • Stock trading namespace: sdk.stock
  • Futures/options trading namespace: commonly documented under trading-future

Quality Checklist

Before answering:

  • You searched official online llms-full.txt when possible, or the bundled local cache when offline. Do not rely on llms.txt alone.
  • The code path matches the requested domain: stock vs futures/options, REST vs WebSocket, trading vs condition order.
  • For large projects, all Fubon SDK entry points, secret sources, paper/live gates, risk controls, and mock/fallback paths were identified or explicitly called out as not found.
  • The code imports every SDK class/constant it uses.
  • Function/method names match the target language casing (place_order in Python, placeOrder in JavaScript, PlaceOrder in C#).
  • Enum/member casing matches the target language.
  • Date/time strings match the documented format.
  • Quantity units are clear: stocks usually use shares; futures/options use lots/contracts per docs.
  • Price fields follow the documented type: many order APIs use string prices.
  • Market/order/price/time-in-force combinations are plausible and documented.
  • Error handling follows the documented SDK version behavior where available.
  • Secrets are placeholders or environment variables.
  • Credential setup uses .env.example or shell environment variables, not secrets in source code.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Fubon Trade Api AI skill do?

Use when helping users write, review, debug, or validate code for Fubon Neo / Fubon Securities TradeAPI / 富邦新一代 API / 富邦證券 API, including natural-language requests about market data, stock trading, futures/options trading, account queries, conditional orders, SDK installation, local environment checks, latest SDK setup, authentication, certificates, and API Key login. This skill uses the official online llms.txt and llms-full.txt first, with bundled local copies as offline fallback.

Why use Fubon Trade Api on TypingMind?

Because you install it once and use it with any model. Fubon Trade Api is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Fubon Trade Api in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Kelu0427/fubon-tradeapi-ai-skill/tree/main. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Fubon Trade Api?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Fubon Trade Api?

As many as you like. As long as a model supports skills, you can use Fubon Trade Api with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Fubon Trade Api AI skill free?

Yes. It is published on GitHub by Kelu0427 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇