Fubon Trade Apiのロゴ

Fubon Trade Api

コミュニティ
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.

概要

公開者Kelu0427
リポジトリfubon-tradeapi-ai-skill
スキル名fubon-trade-api
スター
48
フォーク
0
同梱ファイル
6
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 6個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    Kelu0427がGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Fubon Trade Api」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/Kelu0427/fubon-tradeapi-ai-skill/tree/main
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Kelu0427/fubon-tradeapi-ai-skill.git \
  .claude/skills/fubon-trade-api
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでFubon Trade Apiを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にFubon Trade Apiを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Fubon Trade Apiは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「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.

TypingMindでFubon Trade Apiを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Fubon Trade Apiはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにFubon Trade Apiをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Kelu0427/fubon-tradeapi-ai-skill/tree/mainを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Fubon Trade Apiを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Fubon Trade Apiで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもFubon Trade Apiを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Fubon Trade Api」は無料ですか?

はい。Kelu0427がMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇