Logo: Fubon Trade Api

Fubon Trade Api

Communautéit
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.

Iwwersiicht

EditeurKelu0427
Repositoryfubon-tradeapi-ai-skill
Skill-Nummfubon-trade-api
Stären
48
Forks
0
Matgeliwwert Dateien
6
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.

  • 6 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

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

Installatioun

Installéiert de KI-Skill Fubon Trade Api 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/Kelu0427/fubon-tradeapi-ai-skill/tree/main
  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/Kelu0427/fubon-tradeapi-ai-skill.git \
  .claude/skills/fubon-trade-api
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Fubon Trade Api 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 Fubon Trade Api automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Fubon Trade Api 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.

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.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill 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.

Firwat Fubon Trade Api op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Fubon Trade Api 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 Fubon Trade Api an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Kelu0427/fubon-tradeapi-ai-skill/tree/main an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Fubon Trade Api 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 Fubon Trade Api benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Fubon Trade Api 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 Fubon Trade Api gratis?

Jo. Kelu0427 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 👇