Intraday Volumes
期權分價量表(依代碼查詢)
intraday/volumes/{symbol}
Parameters
Name | Type | Description |
---|---|---|
symbol * | string | 期權代碼 |
session | string | 交易時段,可選 afterhours 夜盤 |
Response
Name | Type | Description |
---|---|---|
date * | string | 日期 |
type * | string | 期權類型 |
exchange * | string | 交易所 |
market | string | 市場別 |
symbol * | string | 商品代號 |
data | object[] | 分價量表 |
>> price | number | 成交價 |
>> volume | number | 該成交價之累計成交量 |
info
'*' 表示必揭示欄位。
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() # 建立行情連線
restfutopt = sdk.marketdata.rest_client.futopt
restfutopt.intraday.volumes(symbol='TXFA4')
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.volumes({ symbol: 'TXFA4' })
.then(data => console.log(data));
using FubonNeo.Sdk;
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 volume = await rest.Intraday.Volumes("TXFA4");
// var volume = await rest.Intraday.Volumes("TXFA4", new(){Session=FugleMarketData.QueryModels.FuOpt.TradeSession.AfterHours}); // 盤後交易
var volume_cont = volume.Content.ReadAsStringAsync().Result;
Console.WriteLine(volume_cont);
Response Body:
{
"date": "2023-12-20",
"type": "FUTURE",
"exchange": "TAIFEX",
"symbol": "TXFA4",
"data": [
{
"price": 17676,
"volume": 68
},
{
"price": 17675,
"volume": 392
},
{
"price": 17674,
"volume": 265
},
{
"price": 17673,
"volume": 396
},
{
"price": 17672,
"volume": 430
},
{
"price": 17671,
"volume": 518
},
{
"price": 17670,
"volume": 681
},
{
"price": 17669,
"volume": 338
},
{
"price": 17668,
"volume": 395
},
{
"price": 17667,
"volume": 568
},
{
"price": 17666,
"volume": 670
},
{
"price": 17665,
"volume": 641
},
{
"price": 17664,
"volume": 542
},
{
"price": 17663,
"volume": 898
},
{
"price": 17662,
"volume": 870
},
{
"price": 17661,
"volume": 656
},
{
"price": 17660,
"volume": 876
},
{
"price": 17659,
"volume": 402
},
{
"price": 17658,
"volume": 352
},
{
"price": 17657,
"volume": 190
},
{
"price": 17656,
"volume": 470
},
....
]
}