TW Market Data LogoTW Market Data

Core data

Market & prices

TWSE / TPEx daily bars, adjusted prices, indices, and market breadth

Financials & growth

Monthly revenue, the three financial statements, financial metrics, and valuation data

Flows & positioning

Institutional investors and margin & short-selling data

Company & structure

Company & events

Company profiles, disclosures, events, corporate actions, and dividends

Taxonomy & structure

Theme taxonomy, index classification, and cross-dataset mapping

Strategy & quant

Features, factor data, time alignment, and screener

Platform capabilities

API access

REST API, authentication, and your first request

Query & tools

Search API, Query API, field lists, and query examples

Tools / MCP

Agent workflows, MCP tools, and the OpenAPI entry point

PricingDocsBlog
中文Dashboard

TW Market Data (TWMD) provides historical data and statistics, not investment advice; investment decisions and their risks are your own.

Privacy Policy|Terms of Service|Help Center||中文|TW Market Data © 2026

Documentation

DASHBOARD

DashboardPricing

FOR AI AGENTS

MCP Serverllms.txtTool manifestOpenAPI SpecAgent workflow examples
WebhooksBuilding

OVERVIEW

OverviewQuick startAuthenticationSource policyData gradesData lineageMarket coverage

DATA APIS

Options settlement priceConvertible bondsDerivatives marketOptions (daily)TAIFEX institutional flowConvertible-bond referenceFutures Daily Context

GUIDES

How to get the 3 financial statementsHow to read institutional flowsHow to check market statusHow to wire a strategy / AI agent

SDKS

Release statusPython SDKJavaScript / TypeScript SDK

Building an AI agent? Start with /llms.txt for the full site index.

Derivatives & Convertibles

Futures Daily Context

Per-contract daily futures context: near-month futures close vs spot index (basis and basis%), open interest and its daily change, days-to-settlement with a settlement flag, three-institution net OI, and put/call ratio. Derived from TAIFEX daily futures + spot index. Not a forecast, not a recommendation.

BuildingSource: TAIFEX·Plan: starter·Cost: 2 credits·GET /v2/datasets/futures-daily-context

Overview

This dataset is in build and not yet queryable via the API. The coverage and honest limitations below are the real database state; it moves off "Building" once serving lands (targeted 8/1).

FieldTypeDescription
futures_closeindex_pts
spot_closeindex_pts
basisindex_ptsfutures−spot
basis_pctratio
open_interestcontracts
oi_deltacontractsdaily Δ
days_to_settlementdays
settlement_flagbool
inst_net_oi_foreigncontractsNULL pre-2023-07
put_call_ratioratioNULL where no options data

Coverage

6,923 rows, 1998-07-21..2026-07-16. Three-institution net OI columns (inst_net_oi_*) are only populated where TAIFEX institutional OI exists (free source = 3-year rolling from 2023-07; earlier rows carry NULL inst OI). put_call_ratio populated where options data exists.

Example response

A real response from this endpoint. Rows are returned under "data", and provenance is carried in the shape shown below — it is not identical across datasets, so read this page's rather than assuming another's.

{  "dataset_id": "futures-daily-context",  "row_count": 3,  "data": [    {      "contract": "TX",      "trade_date": "2026-07-16",      "near_contract_month": "202608",      "futures_close": 45700.0,      "spot_close": 45624.98,      "basis": 75.02,      "basis_pct": 0.1644,      "open_interest": 106669.0,      "oi_delta": 95677.0,      "days_to_settlement": 34,      "put_call_ratio": null    },    {      "contract": "TX",      "trade_date": "2026-07-15",      "near_contract_month": "202607",      "futures_close": 45830.0,      "spot_close": 45631.59,      "basis": 198.41,      "basis_pct": 0.4348,      "open_interest": 10992.0,      "oi_delta": -9070.0,      "days_to_settlement": 0,      "put_call_ratio": null    },    {      "contract": "TX",      "trade_date": "2026-07-14",      "near_contract_month": "202607",      "futures_close": 44815.0,      "spot_close": 44737.95,      "basis": 77.05,      "basis_pct": 0.1722,      "open_interest": 20062.0,      "oi_delta": -33067.0,      "days_to_settlement": 1,      "put_call_ratio": null    }  ]}

Captured from the live API on 2026-07-20.

Getting started

  1. Put your key in the X-API-Key header.
  2. Add query parameters (symbol, date range, limit).
  3. Send the request and read the data array.
curl "https://api.twmarketdata.com/v2/datasets/futures-daily-context?symbol=2330" \  -H "X-API-Key: sk_live_..."

Filtering

ParameterRequiredTypeDescription
symbolYesstringTicker, e.g. 2330.
start_dateNostring (YYYY-MM-DD)Start of the query range.
end_dateNostring (YYYY-MM-DD)End of the query range.
limitNointegerMaximum rows to return.

Python

A first call:

import requests resp = requests.get(    "https://api.twmarketdata.com/v2/datasets/futures-daily-context",    params={"symbol": "2330"},    headers={"X-API-Key": "sk_live_..."},)resp.raise_for_status()print(resp.json()["data"])

With a date-range filter:

import requests # The full verified example — the same call with every supported filter set.resp = requests.get(    "https://api.twmarketdata.com/v2/datasets/futures-daily-context",    params={"symbol": "2330"},    headers={"X-API-Key": "sk_live_..."},)resp.raise_for_status()for row in resp.json()["data"]:    print(row)

OpenAPI

This endpoint is GET /v2/datasets/futures-daily-context. The full machine-readable schema (parameters, security, response envelope) lives in the OpenAPI spec.

Notes & limitations

  • In build (not yet generally available): not yet served over the API. The figures above are the measured database state (WAVE_L_REGISTRY), shown honestly before serving lands — not a live endpoint yet.

Request & Response

Request

curl "https://api.twmarketdata.com/v2/datasets/futures-daily-context?symbol=2330&start_date=2026-01-01&end_date=2026-06-30&limit=5" \  -H "X-API-Key: $TWMD_API_KEY"

Authenticate with the X-API-Key header, using a sk_live_ key issued in the dashboard.

Response

JSON
{  "dataset_id": "futures-daily-context",  "row_count": 3,  "data": [    {      "contract": "TX",      "trade_date": "2026-07-16",      "near_contract_month": "202608",      "futures_close": 45700.0,      "spot_close": 45624.98,      "basis": 75.02,      "basis_pct": 0.1644,      "open_interest": 106669.0,      "oi_delta": 95677.0,      "days_to_settlement": 34,      "put_call_ratio": null    },    {      "contract": "TX",      "trade_date": "2026-07-15",      "near_contract_month": "202607",      "futures_close": 45830.0,      "spot_close": 45631.59,      "basis": 198.41,      "basis_pct": 0.4348,      "open_interest": 10992.0,      "oi_delta": -9070.0,      "days_to_settlement": 0,      "put_call_ratio": null    },    {      "contract": "TX",      "trade_date": "2026-07-14",      "near_contract_month": "202607",      "futures_close": 44815.0,      "spot_close": 44737.95,      "basis": 77.05,      "basis_pct": 0.1722,      "open_interest": 20062.0,      "oi_delta": -33067.0,      "days_to_settlement": 1,      "put_call_ratio": null    }  ]}

Captured from a real call to this endpoint — not written by hand.

This dataset returns its rows under "data". The envelope differs between datasets, so read this one rather than reusing another page's shape.

The grade badge on this page is a documentation classification, not a response field.