Logo di Fubon Trade Api

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.

Panoramica

Pubblicato daKelu0427
Repositoryfubon-tradeapi-ai-skill
Nome della skillfubon-trade-api
Stelle
48
Fork
0
File inclusi
6
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 6

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da Kelu0427 su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Fubon Trade Api in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/Kelu0427/fubon-tradeapi-ai-skill/tree/main
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Kelu0427/fubon-tradeapi-ai-skill.git \
  .claude/skills/fubon-trade-api
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Fubon Trade Api in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Fubon Trade Api non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Fubon Trade Api non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA 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.

Perché usare Fubon Trade Api su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Fubon Trade Api è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Fubon Trade Api in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/Kelu0427/fubon-tradeapi-ai-skill/tree/main. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Fubon Trade Api?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Fubon Trade Api?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Fubon Trade Api: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Fubon Trade Api è gratuita?

Sì. È pubblicata su GitHub da Kelu0427 con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇