Skip to main content

Products List

期權契約清單(依條件查詢)

intraday/products

Parameters

NameTypeDescription
type*string類型,可選 FUTURE 期貨 ; OPTION 選擇權
exchangestring交易所,可選 TAIFEX 臺灣期貨交易所
sessionstring交易時段,可選 REGULAR 一般交易 或 AFTERHOURS 盤後交易
contractTypestring契約類別,可選 I 指數類;R 利率類;B 債券類;C 商品類;S 股票類;E 匯率類
statusstring契約狀態,可選 N 正常;P 暫停交易;U 即將上市

Response

NameTypeDescription
type*string期權類型
exchangestring交易所
sessionstring交易時段
contractTypestring契約類別
statusstring契約狀態
dataobject[]契約列表
>> symbolstring契約代號
>> typestring期權類型
>> namestring契約名稱
>> underlyingSymbolstring股票現貨代號
>> contractTypestring契約類別
>> contractSizestring契約乘數
>> statusCodestring狀態碼
>> tradingCurrencystring交易幣別
>> quoteAcceptableboolean是否可報價
>> startDatestring上市日期
>> canBlockTradeboolean是否可鉅額交易
>> expiryTypestring到期別,S 標準;W
>> underlyingTypestring股票現貨類別,E ETF;S 個股
>> marketCloseGroupstring商品收盤時間群組
>> endSessionstring交易時段,0 一般交易時段;1 盤後交易時段
info

'*' 表示必揭示欄位。

Example

from fubon_neo.sdk import FubonSDK, Order

sdk = FubonSDK()

accounts = sdk.login("Your ID", "Your password" , "Your cert path", "Your cert password") # 需登入後,才能取得行情權限

sdk.init_realtime() # 建立行情連線

restfutopt = sdk.marketdata.rest_client.futopt
restfutopt.intraday.products(type='FUTURE', exchange='TAIFEX',session='REGULAR', contractType='E')

Response Body:

{
"type": "FUTURE",
"exchange": "TAIFEX",
"session": "AFTERHOURS",
"contractType": "E",
"data": [
{
"symbol": "RHF",
"type": "FUTURE_AH",
"canBlockTrade": true,
"contractSize": 100000,
"contractType": "E",
"endSession": "0",
"expiryType": "S",
"marketCloseGroup": 10,
"name": "美元兌人民幣期貨",
"quoteAcceptable": true,
"startDate": "",
"statusCode": "N",
"tradingCurrency": "CNY",
"underlyingSymbol": "",
"underlyingType": ""
},
{
"symbol": "RTF",
"type": "FUTURE_AH",
"canBlockTrade": true,
"contractSize": 20000,
"contractType": "E",
"endSession": "0",
"expiryType": "S",
"marketCloseGroup": 10,
"name": "小型美元兌人民幣期貨",
"quoteAcceptable": true,
"startDate": "",
"statusCode": "N",
"tradingCurrency": "CNY",
"underlyingSymbol": "",
"underlyingType": ""
},
{
"symbol": "XAF",
"type": "FUTURE_AH",
"canBlockTrade": true,
"contractSize": 25000,
"contractType": "E",
"endSession": "0",
"expiryType": "S",
"marketCloseGroup": 10,
"name": "澳幣兌美元期貨",
"quoteAcceptable": true,
"startDate": "",
"statusCode": "N",
"tradingCurrency": "USD",
"underlyingSymbol": "",
"underlyingType": ""
}
]
}