Shioaji¶


Shioaji 是永豐金證券提供的交易 API,為您打造一個完整且易於上手的平台,讓您能夠進入台灣金融市場。
作為跨語言、跨平台的通用交易平台,您可以用 Python 原生綁定 import shioaji as sj、或是使用任何能呼叫 HTTP 的語言(JavaScript/TypeScript、Go、C/C++、C#、Rust、Java/Kotlin),打造屬於您自己的交易模型,來交易股票、期貨、選擇權與組合單。
介面直覺、效能卓越,無論您是剛踏入交易世界的新手,或是尋求更強大平台的資深交易者,Shioaji 都能滿足您的需求。立即免費註冊,開始安心交易。
特色:
-
跨語言、跨平台:Python、HTTP API、CLI 三種介面,任何能呼叫 HTTP 的語言皆可交易。
-
高效率:Rust 核心,行情處理達微秒級。
-
✨ 首個支援 AI Coding Agent 技能的台灣交易 API。
安裝¶
Python 套件¶
# uv(推薦)
uv add shioaji
# pip
pip install shioaji
CLI 工具¶
uv tool install shioaji
shioaji --help
獨立安裝檔¶
Linux / macOS:
# 穩定版
curl -fsSL https://raw.githubusercontent.com/sinotrade/shioaji/main/install.sh | sh
# 預覽版
curl -fsSL https://raw.githubusercontent.com/sinotrade/shioaji/main/install.sh | CHANNEL=prerelease sh
Windows (PowerShell):
# 穩定版
irm https://raw.githubusercontent.com/sinotrade/shioaji/main/install.ps1 | iex
# 預覽版
$env:CHANNEL="prerelease"; irm https://raw.githubusercontent.com/sinotrade/shioaji/main/install.ps1 | iex