OvfutOrder.contract 取得外期商品資訊

此方法用於獲取當前的商品資訊,會返回一個特定格式的資訊。

Example

input
api.OvfutOrder.contract('dic')
output

output僅為示意範例,實際商品檔資訊需依python api取得內容為準

{'AP': [FContractData(Exchange='ASX', ComID='AP', ComType='0', DecimalLength='000', SPPoint='000', NorValue='0', ContractType='5', ContractValue='0000250000', TaxRate='0000000000', Tick='0001000000', SPTick='0000000000', Currency='AUD', ComCName='AP_澳洲SPI200指數', ComEName='ASX SPI 200 Index FUTURES', DDSCExchange='ASX', DDSCComID='AP', TasType='N', PMultiplier='1.0', PriceFlag='', MarketType={'01': {'StartTime': '64000', 'EndTime': '133000'}, '02': {'StartTime': '140000', 'EndTime': '235959'}, '03': {'StartTime': '0', 'EndTime': '40000'}}, TradingTime={'01': {'Season': 'N', 'OpenTime': '075000', 'CloseTime': '143000'}, '02': {'Season': 'N', 'OpenTime': '151000', 'CloseTime': '050000'}})],
 'IR': [FContractData(Exchange='ASX', ComID='IR', ComType='0', DecimalLength='003', SPPoint='000', NorValue='0', ContractType='5', ContractValue='0010000000', TaxRate='0000000000', Tick='0000010000', SPTick='0000000000', Currency='AUD', ComCName='IR_澳洲90天票', ComEName='ASX 90 day bank accepted bill futures', DDSCExchange='ASX', DDSCComID='IR', TasType='N', PMultiplier='1.0', PriceFlag='', MarketType={'01': {'StartTime': '55500', 'EndTime': '133000'}, '02': {'StartTime': '135800', 'EndTime': '235959'}, '03': {'StartTime': '0', 'EndTime': '40000'}}, TradingTime={'01': {'Season': 'N', 'OpenTime': '062800', 'CloseTime': '143000'}, '02': {'Season': 'N', 'OpenTime': '150800', 'CloseTime': '050000'}})],
 'XT': [FContractData(Exchange='ASX', ComID='XT', ComType='0', DecimalLength='003', SPPoint='000', NorValue='0', ContractType='5', ContractValue='0010000000', TaxRate='0000000000', Tick='0000005000', SPTick='0000000000', Currency='AUD', ComCName='XT_澳洲十年期公債', ComEName='ASX 10 Year Treasury Bond Futures', DDSCExchange='ASX', DDSCComID='XT', TasType='N', PMultiplier='1.0', PriceFlag='', MarketType={'01': {'StartTime': '55500', 'EndTime': '133000'}, '02': {'StartTime': '140200', 'EndTime': '235959'}, '03': {'StartTime': '0', 'EndTime': '40000'}}, TradingTime={'01': {'Season': 'N', 'OpenTime': '060000', 'CloseTime': '143000'}, '02': {'Season': 'N', 'OpenTime': '151200', 'CloseTime': '050000'}})],
 'YT': [FContractData(Exchange='ASX', ComID='YT', ComType='0', DecimalLength='003', SPPoint='000', NorValue='0', ContractType='5', ContractValue='0010000000', TaxRate='0000000000', Tick='0000005000', SPTick='0000000000', Currency='AUD', ComCName='YT_澳洲三年期公債', ComEName='ASX 3 Year Treasury Bond Futures', DDSCExchange='ASX', DDSCComID='YT', TasType='N', PMultiplier='1.0', PriceFlag='', MarketType={'01': {'StartTime': '55500', 'EndTime': '133000'}, '02': {'StartTime': '140000', 'EndTime': '235959'}, '03': {'StartTime': '0', 'EndTime': '40000'}}, TradingTime={'01': {'Season': 'N', 'OpenTime': '060000', 'CloseTime': '143000'}, '02': {'Season': 'N', 'OpenTime': '151000', 'CloseTime': '050000'}})],
 'FCPO': [FContractData(Exchange='BMD', ComID='FCPO', ComType='0', DecimalLength='000', SPPoint='000', NorValue='0', ContractType='5', ContractValue='0000250000', TaxRate='0000000000', Tick='0001000000', SPTick='0000000000', Currency='MYR', ComCName='FCPO_棕櫚油', ComEName='Crude Palm Oil Futures', DDSCExchange='BMD', DDSCComID='FCPO', TasType='N', PMultiplier='1.0', PriceFlag='', MarketType={'01': {'StartTime': '101500', 'EndTime': '123000'}, '02': {'StartTime': '141500', 'EndTime': '180000'}, '03': {'StartTime': '205000', 'EndTime': '233000'}}, TradingTime={'01': {'Season': 'N', 'OpenTime': '103000', 'CloseTime': '180000'}, '02': {'Season': 'N', 'OpenTime': '210000', 'CloseTime': '233000'}})],
 'ZL': [FContractData(Exchange='CME_CBT', ComID='ZL', ComType='0', DecimalLength='002', SPPoint='000', NorValue='0', ContractType='5', ContractValue='0006000000', TaxRate='0000000000', Tick='0000010000', SPTick='0000000000', Currency='USD', ComCName='BO_黃豆油', ComEName='SOYABEAN OIL', DDSCExchange='CBOT', DDSCComID='BO', TasType='N', PMultiplier='1.0', PriceFlag='', MarketType={'01': {'StartTime': '55500', 'EndTime': '235959'}, '02': {'StartTime': '0', 'EndTime': '32000'}}, TradingTime={'01': {'Season': 'S', 'OpenTime': '080000', 'CloseTime': '022000'}})],
 'ZC': [FContractData(Exchange='CME_CBT', ComID='ZC', ComType='0', DecimalLength='002', SPPoint='000', NorValue='0', ContractType='5', ContractValue='0000500000', TaxRate='0000000000', Tick='0000250000', SPTick='0000000000', Currency='USD', ComCName='C_玉米', ComEName='CORN (BU)', DDSCExchange='CBOT', DDSCComID='C', TasType='N', PMultiplier='1.0', PriceFlag='', MarketType={'01': {'StartTime': '55500', 'EndTime': '235959'}, '02': {'StartTime': '0', 'EndTime': '22000'}}, TradingTime={'01': {'Season': 'S', 'OpenTime': '080000', 'CloseTime': '022000'}})], ...}

Attribute

參數 資料型態 說明
type str type 默認為字典格式
可輸入參數:
dic:以字典格式回傳
df:以dataframe格式回傳

Return Attribute

參數 資料型態 說明
Exchange str 交易所代碼
ComID str 商品代碼
ComType str 商品類型
DecimalLength str 報價小數位數
SPPoint str 價差交易小數位數
NorValue str 標準價值
ContractType str 契約類型代碼
ContractValue str 契約價值
TaxRate str 稅率
Tick str 最小跳動點
SPTick str 價差交易最小跳動點
Currency str 計價幣別
ComCName str 商品中文名稱
ComEName str 商品英文名稱
DDSCExchange str DDSC 交易所代碼
DDSCComID str DDSC 商品代號
TasType str TAS 交易類型(收盤價交易)
PMultiplier str 價格乘數
PriceFlag str 價格標記
MarketType dic 市場盤別切分時段
TradingTime dic 交易開收盤時間