Quick Start
Key takeaways
- Fubon Market Data Web API provides intraday, snapshot, and historical data for Taiwan equities.
- Exceeding limits returns status code
429. - SDK examples are available for Python, Node.js, and C#.
| Item | Details |
|---|---|
| Interface | Web API |
| Market | Taiwan equities |
| Data types | Intraday / Snapshot / Historical |
| Rate limit | 429 on exceed |
| SDK | Python / Node.js / C# |
Fubon Market Data Web API provides developer-friendly services. You can access intraday, snapshot, and historical market data for Taiwan equities.
Rate Limit
If your API requests exceed the limit, you will receive a response with a status code 429 ( For detailed limitations, please refer to Rate Limit )
API Category
API are categorized based on data types into intraday(盤中行情)、snapshot(行情快照)、historical(歷史行情)
/intraday/tickers- Stock or index lists (query by conditions)/intraday/ticker/{symbol}- Stock information (query by stock number)/intraday/quote/{symbol}- Real-time quotes (query by stock number)/intraday/candles/{symbol}- Stock KLine(query by stock number)/intraday/trades/{symbol}- Stock trade details (query by stock number)./intraday/volumes/{symbol}- Stock price-volume data(query by stock number)/snapshot/quotes/{market}- Stock market snapshot (by market type)./snapshot/movers/{market}- Stock price change ranking (by market type)/snapshot/actives/{market}- Stock trading value ranking (by market type)./historical/candles/{symbol}- Retrieve historical stock prices within 1 year (query by stock number))/historical/stats/{symbol}- Retrieve recent 52-week stock price data (query by stock number)
Using SDK
Fubon Market Data Web API offers Python, Node.js, and C# SDKs. You can access the API through the following methods:
- Python
- Node.js
- C#
from fubon_neo.sdk import FubonSDK, Order
# Since version 2.2.4, add the following import:
# from fubon_neo.fugle_marketdata.rest.base_rest import FugleAPIError
sdk = FubonSDK()
accounts = sdk.login("Your ID", "Your password", "Your cert path", "Your cert password")
sdk.init_realtime() # Establish market-data
reststock = sdk.marketdata.rest_client.stock
const { FubonSDK } = require('fubon-neo');
const sdk = new FubonSDK();
const accounts = sdk.login("Your ID", "Your password", "Your cert path","Your cert password");
sdk.initRealtime(); // Establish market-data
const client = sdk.marketdata.restClient
const stock = client.stock;
using FubonNeo.Sdk;
var sdk = new FubonSDK();
var result = sdk.Login("Your ID", "Your password", "Your cert path","Your cert password");
sdk.InitRealtime(); // Establish market-data
var rest = sdk.MarketData.RestClient.Stock;