A developer integration that enables programmatic retrieval and analysis of Taiwan Stock Exchange open data without authentication.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install twse-api
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install twse-api using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The TWSE OpenAPI skill connects software applications directly to the official open data repository of the Taiwan Stock Exchange. It provides developer-ready access to daily stock prices, dividend yields, P/E ratios, market indices, and detailed corporate financials. By implementing this tool within Openclaw Skills, developers can fetch and evaluate financial snapshots from the Taiwan market without managing API keys or subscription fees.
The integration serves as a secure gateway for collecting full-market datasets. Because the official API delivers complete JSON arrays rather than server-side filtered queries, this skill is structured to process full payloads client-side, enabling efficient filtering and custom calculations for specified stock codes.
This integration relies on the public, open-data API provided by the Taiwan Stock Exchange, which requires no registration. To query the endpoints using tools managed under Openclaw Skills, you can interact with the endpoints directly.
To fetch daily OHLC data and extract data for a specific stock code (e.g., TSMC - 2330) using curl and Python, run the following commands:
curl -s https://openapi.twse.com.tw/v1/exchangeReport/STOCK_DAY_ALL | \
python3 -c "import json,sys; print([r for r in json.load(sys.stdin) if r['Code']=='2330'])"
For a direct programmatic implementation in Python, use the following snippet:
import json, urllib.request
BASE_URL = 'https://openapi.twse.com.tw/v1'
def fetch_twse_data(endpoint):
with urllib.request.urlopen(f'{BASE_URL}{endpoint}') as response:
return json.load(response)
# Fetch daily stock valuations
market_data = fetch_twse_data('/exchangeReport/BWIBBU_ALL')
target_stock = next(item for item in market_data if item['Code'] == '2330')
print(target_stock)
Endpoints are grouped into distinct categories. Field names vary between English keys and Traditional Chinese keys depending on the source dataset.
| Dataset Group | Reference Endpoint | Core Features | Key Format |
|---|---|---|---|
| Securities Trading | /exchangeReport/STOCK_DAY_ALL |
Daily quotes, valuations, margins | English (e.g., Code, ClosingPrice) |
| Corporate Governance | /opendata/t187ap03_L |
Profiles, ESG disclosures, insider data | Traditional Chinese (e.g., 公司代號, 公司名稱) |
| Financial Statements | /opendata/t187ap05_L |
Monthly revenue, balance sheets | Traditional Chinese (e.g., 營業收入-當月營收) |
| Indices | /indicesReport/MI_5MINS_HIST |
Daily TAIEX history | English (e.g., Date, OpeningIndex) |
1150706 representing July 6, 2026). Convert this format by adding 1911 to the leading three digits to get the Gregorian year."1,005,300") or dashes (e.g., "-") for blank fields. These must be sanitized before conversion to numeric data types.Loading
A comprehensive configuration and runtime optimization system to manage persona, memory, and security for OpenClaw agents.

LipVoice TTS turns reference audio into reusable voice models and generates high-quality WAV speech from text through a simple CLI workflow.

The Life Book Generator skill enables AI agents to coordinate the complete creation, payment, and retrieval of 18-chapter life reports via the official Agent API.

Publisher lets you publish HTML frontend projects to PushWebly, manage visibility, list projects, and generate Android APKs from the same workflow.

A publication-grade Chinese long-form novel creation framework powered by a unique distributed multi-agent architecture.

An AI-powered bidding assistant that automates document parsing, docx generation, and strict compliance risk analysis via an asynchronous API connection.








































