Skip to main content
Glama

Taiwan Stocks

Get futures, options and warrants

get_derivatives
Read-onlyIdempotent

TAIFEX futures and options (option chains, implied volatility, institutional positions, put/call ratio, contract specs) and Taiwan warrants. Data comes from the CubeLV Market Data API (https://cubelv.com/en/mcp/taiwan-stocks/): pick a method and pass its arguments in args. US markets are available only for the ADRs of Taiwan companies.

Methods:

  • derivativeProducts (Futures and options products with institutional data): TAIFEX futures and options product codes and names that have institutional investor data, with the latest data date. Use it to find the product code before calling derivativesInstitutional.

  • derivativesInstitutional (Futures and options institutional positions): Daily long and short trading volume (contracts), contract value and open interest of the three major institutional investors (foreign investors, investment trusts, dealers) in a TAIFEX futures or options product, optionally split into calls and puts or limited to the after-hours session. Up to 400 trading days per request. Args: product (required): TAIFEX product code (TXF, TXO), continuous code (TXF1) or the product's Chinese name as in the TAIFEX table; see derivativeProducts; side: Options only: call or put; omit for the total; session: all = regular (day) session as in the main TAIFEX table, excluding the night session; after_hours = after-hours (night) session only, without open interest; from: Start date (inclusive), YYYYMMDD; to: End date (inclusive), YYYYMMDD; limit: Most recent N trading days (1-400, default 30); use from and to to page further back.

  • putCallRatio (TAIEX options put/call ratio): Daily call and put volume, open interest and put/call ratios for TAIEX options (TXO), oldest first. Up to 400 trading days per request; for longer ranges page with from and to. Args: from: Start date (inclusive), YYYYMMDD; to: End date (inclusive), YYYYMMDD; limit: Most recent N trading days within from-to (1-400, default 30).

  • optionChain (Option chain (end of day)): End-of-day data for every strike of one TAIFEX options contract on a trading day (updated after 17:30 each trading day): list of expiries, settlement prices and open interest. TAIEX (TXO), electronics (TEO) and finance (TFO) options also carry, for the regular session, implied volatility (iv) backed out from the settlement price, Black-76 Greeks (delta, gamma, vega, theta), and for each expiry the expiry date, days to expiry, put-call-parity forward and at-the-money IV (expiryIV). Stock options have prices only, no IV. For live quotes use optionChainLive; for 30-day IV and IV Rank use optionIV. Args: contract (required): TAIFEX options contract code, e.g. TXO, TEO, TFO, or a stock option such as CAO; IV and Greeks only for TXO, TEO, TFO; date: Trading day, YYYYMMDD; default the latest day with data; expiry: Expiry month or week, e.g. 202610, 202610W2, 202610F1; omit for all expiries; session: regular or after_hours; omit for both.

  • optionChainLive (Live option chain): Live quotes for every expiry and strike of TAIEX (TXO, including Wednesday and Friday weeklies), electronics (TEO) and finance (TFO) options in the current session: best bid/ask with size, last price, change, open/high/low, session volume, reference price, price limits and the previous regular session's open interest. Expiries within 35 days update about every 5 seconds, others about every minute. Regular session 08:45-13:45, after-hours session 15:00-05:00 Taipei time (TEO and TFO have no after-hours session); after the close it shows the last session's closing state. With expiry only that expiry's quotes are returned (expiries still lists all); without it all expiries (over a thousand rows for TXO). Each row's symbol can be passed to quote, quotes or subscribe, or written as TXO202611C46900 (contract + expiry + C/P + strike; weeklies TXO202610W4P41600, TXO202610F4C41600). No order book depth, IV or Greeks: use optionChain and optionIV for those. Args: contract (required): TAIFEX options contract code: TXO (including weeklies), TEO, TFO; expiry: Expiry month or week, e.g. 202611, Wednesday weekly 202610W4, Friday weekly 202610F4; omit for all expiries.

  • optionIV (Option implied volatility and IV Rank): Daily 30-day constant-maturity at-the-money implied volatility, IV Rank and IV percentile (over the last 252 trading days) for TAIFEX index options (TXO, TEO, TFO), plus the latest day's at-the-money IV per expiry (term structure). Backed out with Black-76 from regular-session settlement prices; TXO from 2001-12-24, updated after 17:30 each trading day. Not available for stock options. Args: contract (required): Index options contract: TXO = TAIEX, TEO = electronics, TFO = finance; from: Start date (inclusive), YYYYMMDD; with from and no limit, everything up to to is returned; to: End date (inclusive), YYYYMMDD; default latest; limit: Most recent N trading days (1-7000, default 60); IV Rank always looks back 252 trading days regardless of limit.

  • futuresTrades (Futures trade-by-trade details): Tick-by-tick trades of a TAIFEX futures contract (monthly contracts and mini-TAIEX weeklies) on a trading day, newest first with paging via before, plus outside (buy-initiated) and inside (sell-initiated) volume in contracts; a match that sweeps several prices yields one row per price. Trading days follow TAIFEX: the night session belongs to the next trading day. Only trades received live since the service last started are available, and only for the last two trading days; sessions shows when collection started and how many contracts were missed. Up to 5000 trades per page. Args: symbol (required): Continuous code (TXF1 = front month, TXF2 = next month, TXF3 and up by expiry order, MXFW1 = nearest mini-TAIEX weekly; resolved at query time), specific month (TXF202611, MXF202610W4) or contract code (TXFK6, MX1K6); date: Trading day, YYYYMMDD (night sessions belong to the next trading day; Friday night belongs to Monday); default the latest day with trades; limit: Trades per page (1-5000, default 200); before: Pagination cursor: nextBefore from the previous page ([HHMMSS[mmm|uuuuuu]:]sequence; only the sequence is used).

  • contractSpecs (Futures contract specs and margins): TAIFEX futures contract multiplier, quote currency and initial and maintenance margin per contract; for stock and ETF futures the margin amount is converted using the futures settlement price. Args: product: Product code (TXF, CDF), continuous code (TXF1, CDF2, MXFW1) or contract code (TXFJ6, MX1J6); omit for all.

  • warrants (Warrant search): Filter TWSE- and TPEx-listed warrants by underlying, market, call/put, name and last trading date; returns strike, exercise ratio, expiry and live derived metrics. Spread metrics (bestBid, bestAsk, spread, spreadPct) are only present during trading when both sides have orders. Up to 2000 rows. Args: underlying: Underlying symbol (2330) or name, up to 64 characters; market: Warrant market: TWSE or TPEX; omit for both; kind: call or put warrants; q: Match against warrant symbol and name, up to 64 characters; expiresFrom: Earliest last trading date, YYYYMMDD; default today (Taipei); expiresTo: Latest last trading date, YYYYMMDD; limit: Maximum warrants (1-2000, default 100).

  • warrant (Single warrant): Terms, last close and live derived metrics of one warrant; if the symbol was reused, the issue with the latest exercise deadline is returned. Spread metrics (bestBid, bestAsk, spread, spreadPct) are only present during trading when both sides have orders. Args: symbol (required): Warrant symbol.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "method": "<method>"
    },
    "name": "get_derivatives"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNoArguments of the method, as listed in the tool description
langNoLanguage for data labels (industries, statement items, categories) and links: en, ja, ko or vi; default en
methodYesMethod from the list in the tool description

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the readOnly/idempotent annotations, the description discloses data refresh times (updated after 17:30 each trading day), polling cadence (~5s under 35 days, ~1min beyond), session windows in Taipei time, and hard availability limits ('only trades received live since the service last started, and only for the last two trading days' with a sessions field reporting missed contracts). The night-session-belonging-to-next-trading-day rule is exactly the kind of quirk an agent would otherwise get wrong.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with a scope sentence followed by a method list, which is the right structure for a 10-method dispatcher, and nearly every clause carries operational information. It is still a dense wall of text with duplicated boilerplate (the spread-metrics caveat appears verbatim under both warrants and warrant, and paging notes repeat), so scanning cost is higher than necessary.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a polymorphic multi-method tool with a free-form args object and no output schema, the description supplies everything needed to call it: per-method argument contracts, data provenance and update timing, pagination mechanics, and availability caveats. There is no output schema to explain return shapes, and the field lists given per method (iv, Greeks, expiryIV, spreadPct) cover that gap adequately.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is nominally 100%, but the schema only exposes method/args/lang with args as a free-form object; the real semantics live here. Each method's args are spelled out with codes, formats and defaults (product accepts TXF/TXF1/Chinese name; from/to as YYYYMMDD; expiry formats 202610W2/202610F1; limit ranges and defaults; before cursor as nextBefore), which is far more than the schema conveys.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence names a specific domain (TAIFEX futures/options: chains, IV, institutional positions, put/call ratio, contract specs; Taiwan warrants) and each of the 10 methods gets a one-line verb+resource gloss. The scope is unambiguous against most siblings, but the boundary with get_quotes/get_price_history is never drawn even though optionChainLive rows are explicitly said to be passable to quote/quotes, so an agent could still hesitate about which tool to reach for a single option symbol.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing is everywhere: 'Use it to find the product code before calling derivativesInstitutional', 'For live quotes use optionChainLive; for 30-day IV and IV Rank use optionIV', 'No order book depth, IV or Greeks: use optionChain and optionIV for those'. Usage constraints (stock options have prices only, no IV; limit 1-400; use from/to to page further back) are stated where they matter rather than left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources