Get contract specs and settlement prices
get_contract_specsTAIFEX futures contract multipliers and initial and maintenance margins, and final settlement prices of expired futures and options contracts. Data comes from the CubeLV Market Data API (https://cubelv.com/en/mcp/taiwan-futures/): pick a method and pass its arguments in args. The market is TAIFEX (filled in when market is omitted).
Methods:
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.
futures_final_settlement (Futures final settlement prices): Final settlement price of every expired TAIFEX futures contract (monthly and weekly), with category, underlying stock and notional value for stock futures. Updated after 18:30 on each settlement day; symbols filters by product code (TX); up to 3660 days per request. Args: market: TAIFEX; symbols: comma-separated codes; from (required), to (required): YYYYMMDD, at most 3660 days per request; fields: comma-separated field names; limit: rows per page; cursor: nextCursor from the previous page. Fields: settlementDate: Final settlement date, YYYYMMDD; product: Product code; products sharing one settlement price are joined with / (TX/MTX/TMF); contractMonth: Contract month YYYYMM, weekly YYYYMMWn (Wednesday) or YYYYMMFn (Friday); category: index, interest_rate, commodity, currency or stock; settlementPrice: Final settlement price (index points or TWD); underlying: Underlying stock code (stock futures only).
options_final_settlement (Options final settlement prices): Final settlement price of every expired TAIFEX options contract (monthly and weekly), with category and underlying stock for stock options. Updated after 18:30 on each settlement day; symbols filters by product code (TXO); up to 3660 days per request. Args: market: TAIFEX; symbols: comma-separated codes; from (required), to (required): YYYYMMDD, at most 3660 days per request; fields: comma-separated field names; limit: rows per page; cursor: nextCursor from the previous page. Fields: settlementDate: Final settlement date, YYYYMMDD; product: Product code; products sharing one settlement price are joined with /; contractMonth: Contract month YYYYMM, weekly YYYYMMWn or YYYYMMFn; category: index, interest_rate, commodity, currency or stock; settlementPrice: Final settlement price.
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_contract_specs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Arguments of the method, as listed in the tool description | |
| lang | No | Language for data labels (industries, statement items, categories) and links: en, ja, ko or vi; default en | |
| method | Yes | Method from the list in the tool description |