Taiwan Stock Data API
The Infoway API provides comprehensive real-time stock market data for the Taiwan Stock Exchange (TWSE) and the Taipei Exchange (TPEX), covering approximately 2,340 listed companies on the Taiwan stoc
1. Retrieving the Taiwan Stock List
Infoway maintains an updated list of approximately 2,340 Taiwan securities, covering both TWSE-listed and TPEX-listed companies. You can obtain the list in two ways:
Option 1 — Download from the Web Portal
Log in to your Infoway account and download the latest stock excel list file from the Downloads section at the right side of the dashboard.
Option 2 — Query via API
You can also retrieve the list programmatically through the HTTP Symbol List API, using the instrument type STOCK_TW.
Refer to the GET /symbol-list documentation for usage details.
2. Query Methods
Infoway offers two primary data-access methods, optimized for different use cases:
HTTP API
Scheduled or batch data queries
Flexible pull-based access to company fundamentals, historical quotes, real-time candlesticks, and order book data.
WebSocket Streaming
Low-latency, real-time monitoring
Push-based streaming for the fastest access to live market updates.
3. Market Data Schemas
The Infoway Taiwan Stock Real-Time Market Data API supports multiple categories of data feeds.
3.1 Real-Time Candlestick (OHLCV) Data
Provides live candlestick data for Taiwan securities, including open, high, low, close prices, trading volume, and turnover value. This allows users to visualize price movements and analyze short-term market trends.
You can access this data via:
HTTP Request: see GET /candlestick
WebSocket Subscription: see WebSocket /candlestick topic
Example Response
3.2 Latest Trade
Retrieve the latest trade for any listed Taiwan company, including price, volume, and trade direction.
Access methods:
HTTP API: GET /trades
WebSocket: Subscribe to /trades
Example Response
3.3 Order Book
Provides real-time bid/ask depth, showing market liquidity and order book structure.
Access methods:
HTTP API: GET /market-depth
WebSocket: Subscribe to /Depth
Example Response
3.4 Taiwan Stock Fundamentals
Retrieve fundamental information for listed companies, including corporate names, share structure, exchange details, and key financial indicators. (GET / symbol-fundamentals)
Example Response
3.5 Trading Days & Market Hours
Retrieve trading session schedules and trading calendar information for the Taiwan market. This ensures your system is synchronized with market open/close times and holiday periods.
Query Methods
GET /trading-hours — Returns daily trading sessions and their start/end times
GET /trading-days — Returns valid trading days and half-days
Example: Trading Hours
Example: Trading Days
