Intraday Products BETA
取得期權契約清單(依條件查詢)
GET /intraday/products
Parameters
Name | Type | Description |
---|---|---|
type * | string | 類型,可選 FUTURE 期貨 ; OPTION 選擇權 |
exchange | string | 交易所,可選 TAIFEX 臺灣期貨交易所 |
session | string | 交易時段,可選 REGULAR 一般交易 或 AFTERHOURS 盤後交易 |
contractType | string | 契約類別,可選 I 指數類;R 利率類;B 債券類;C 商品類;S 股票類;E 匯率類 |
status | string | 契約狀態,可選 N 正常;P 暫停交易;U 即將上市 |
Response
Name | Type | Description |
---|---|---|
type * | string | 期權類型 |
exchange | string | 交易所 |
session | string | 交易時段 |
contractType | string | 契約類別 |
status | string | 契約狀態 |
data * | object[] | 契約列表 |
data[0].symbol | string | 契約代碼 |
data[0].type | string | 期權類型 |
data[0].name | string | 契約名稱 |
data[0].underlyingSymbol | string | 股票現貨代號 |
data[0].contractType | string | 契約類別 |
data[0].contractSize | string | 契約乘數 |
data[0].statusCode | string | 狀態碼 |
data[0].tradingCurrency | string | 交易幣別 |
data[0].quoteAcceptable | boolean | 是否可報價 |
data[0].startDate | string | 上市日期 |
data[0].canBlockTrade | boolean | 是否可鉅額交易 |
data[0].expiryType | string | 到期別,S 標準;W 週 |
data[0].underlyingType | string | 股票現貨類別,E ETF;S 個股 |
data[0].marketCloseGroup | string | 商品收盤時間群組 |
data[0].endSession | string | 交易時段,0 一般交易時段;1 盤後交易時段 |
Example
- cURL
- Python
- Node.js
curl -X 'GET' \
'https://api.fugle.tw/marketdata/v1.0/futopt/intraday/products?type=FUTURE&exchange=TAIFEX&session=REGULAR&contractType=S' \
-H 'X-API-KEY: <YOUR_API_KEY>'
from fugle_marketdata import RestClient
client = RestClient(api_key = 'YOUR_API_KEY')
futopt = client.futopt
futopt.intraday.products(type='FUTURE', exchange='TAIFEX', session='REGULAR', contractType='S')
const { RestClient } = require("@fugle/marketdata");
const client = new RestClient({ apiKey: "YOUR_API_KEY" });
client.futopt.intraday
.products({ type: "FUTURE", exchange: "TAIFEX", session:'REGULAR', contractType:'S' })
.then((data) => console.log(data));
Response Body:
{
"type": "FUTURE",
"exchange": "TAIFEX",
"session": "REGULAR",
"contractType": "S",
"data": [
{
"symbol": "CAF",
"type": "FUTURE",
"canBlockTrade": true,
"contractSize": 2000,
"contractType": "S",
"endSession": "0",
"expiryType": "S",
"marketCloseGroup": 1,
"name": "南亞期貨",
"quoteAcceptable": true,
"startDate": "2013-08-07",
"statusCode": "N",
"tradingCurrency": "TWD",
"underlyingSymbol": "1303",
"underlyingType": "S"
},
{
"symbol": "CBF",
"type": "FUTURE",
"canBlockTrade": true,
"contractSize": 2000,
"contractType": "S",
"endSession": "0",
"expiryType": "S",
"marketCloseGroup": 1,
"name": "中鋼期貨",
"quoteAcceptable": true,
"startDate": "2014-08-14",
"statusCode": "N",
"tradingCurrency": "TWD",
"underlyingSymbol": "2002",
"underlyingType": "S"
},
{
"symbol": "CCF",
"type": "FUTURE",
"canBlockTrade": true,
"contractSize": 2000,
"contractType": "S",
"endSession": "0",
"expiryType": "S",
"marketCloseGroup": 1,
"name": "聯電期貨",
"quoteAcceptable": true,
"startDate": "2010-01-25",
"statusCode": "N",
"tradingCurrency": "TWD",
"underlyingSymbol": "2303",
"underlyingType": "S"
},
{
"symbol": "CDF",
"type": "FUTURE",
"canBlockTrade": true,
"contractSize": 2000,
"contractType": "S",
"endSession": "0",
"expiryType": "S",
"marketCloseGroup": 1,
"name": "台積電期貨",
"quoteAcceptable": true,
"startDate": "2010-01-25",
"statusCode": "N",
"tradingCurrency": "TWD",
"underlyingSymbol": "2330",
"underlyingType": "S"
},
{
"symbol": "CE1",
"type": "FUTURE",
"canBlockTrade": true,
"contractSize": 2100,
"contractType": "S",
"endSession": "0",
"expiryType": "S",
"marketCloseGroup": 1,
"name": "富邦金期貨",
"quoteAcceptable": true,
"startDate": "2022-09-22",
"statusCode": "N",
"tradingCurrency": "TWD",
"underlyingSymbol": "2881",
"underlyingType": "S"
},
{
"symbol": "CEF",
"type": "FUTURE",
"canBlockTrade": true,
"contractSize": 2000,
"contractType": "S",
"endSession": "0",
"expiryType": "S",
"marketCloseGroup": 1,
"name": "富邦金期貨",
"quoteAcceptable": true,
"startDate": "2023-09-04",
"statusCode": "N",
"tradingCurrency": "TWD",
"underlyingSymbol": "2881",
"underlyingType": "S"
},
{
"symbol": "CFF",
"type": "FUTURE",
"canBlockTrade": true,
"contractSize": 2000,
"contractType": "S",
"endSession": "0",
"expiryType": "S",
"marketCloseGroup": 1,
"name": "台塑期貨",
"quoteAcceptable": true,
"startDate": "2013-07-17",
"statusCode": "N",
"tradingCurrency": "TWD",
"underlyingSymbol": "1301",
"underlyingType": "S"
},
{
"symbol": "CGF",
"type": "FUTURE",
"canBlockTrade": true,
"contractSize": 2000,
"contractType": "S",
"endSession": "0",
"expiryType": "S",
"marketCloseGroup": 1,
"name": "仁寶期貨",
"quoteAcceptable": true,
"startDate": "2010-08-11",
"statusCode": "N",
"tradingCurrency": "TWD",
"underlyingSymbol": "2324",
"underlyingType": "S"
},
{
"symbol": "CHF",
"type": "FUTURE",
"canBlockTrade": true,
"contractSize": 2000,
"contractType": "S",
"endSession": "0",
"expiryType": "S",
"marketCloseGroup": 1,
"name": "友達期貨",
"quoteAcceptable": true,
"startDate": "2022-10-11",
"statusCode": "N",
"tradingCurrency": "TWD",
"underlyingSymbol": "2409",
"underlyingType": "S"
},
...
]
}