Products List
Futures and Options Contract List(Query Based on Conditions)
intraday/products/
Parameters
Name | Type | Description |
---|---|---|
type * | string | Type,valid in FUTURE ; OPTION |
exchange | string | Exchange Type,valid in TAIFEX |
session | string | Tradeing Session,valid in REGULAR 、 AFTERHOURS |
contractType | string | Contract Type,valid in I index;R rate;B bond;C commodity;S stock;E exchange rate |
status | string | Contract Status,valid in N normal;P pause;U upcoming |
Response
Name | Type | Description |
---|---|---|
type * | string | Type |
exchange | string | Exchange Tyep |
session | string | Trading Session |
contractType | string | Contract Type |
status | string | Contract Status |
data | object[] | Contract List |
>> symbol | string | Contract Symbol |
>> type | string | Contract type |
>> name | string | Symbol name |
>> underlyingSymbol | string | Unerlying Symbol |
>> contractType | string | Contract Type |
>> contractSize | string | Contract Size |
>> statusCode | string | Status Code |
>> tradingCurrency | string | Trading Currency |
>> quoteAcceptable | boolean | Provide Quote Flag |
>> startDate | string | Beginning Date |
>> canBlockTrade | boolean | Support Block Trade Flag |
>> expiryType | string | Expiry Type,S standard;W week |
>> underlyingType | string | Underlying Type,E ETF;S stock |
>> marketCloseGroup | string | Closing Time Group |
>> endSession | string | Last Trading Deadline 0 regular;1 afterhours |
info
'*' Indicates mandatory disclosure fields.
Example
- Python
- Node.js
- C#
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()
restfut = sdk.marketdata.rest_client.futopt
restfut.intraday.products(type='FUTURE', exchange='TAIFEX',session='REGULAR', contractType='E')
const { FubonSDK } = require('fubon-neo');
const sdk = new FubonSDK();
const accounts = sdk.login("Your ID", "Your Password", "Your Cert Path", "Your Cert Password");
sdk.initRealtime();
const client = sdk.marketdata.restClient
client.futopt.intraday.products({ type: 'FUTURE', exchange:'TAIFEX', session:'REGULAR', contractType:'E'})
.then(data => console.log(data));
using FubonNeo.Sdk;
using FugleMarketData.QueryModels.FuOpt;
using FugleMarketData.QueryModels.FuOpt.Intraday;
var sdk = new FubonSDK();
var result = sdk.Login("Your ID", "Your Password", "Your Cert Path", "Your Cert Password");
sdk.InitRealtime();
var rest = sdk.MarketData.RestClient.FutureOption;
var contracts = await rest.Intraday.Products(FutOptType.Future, new(){
Exchange=FutOptExchangeType.TaiFex,
Session=SessionType.AfterHours,
ContractType=ContractType.E
});
var contracts_cont = contracts.Content.ReadAsStringAsync().Result;
Console.WriteLine(contracts_cont);
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": ""
}
]
}