Intraday Quote
Real-time quotes (query by contract symbol)
intraday/quote/{symbol}
Parameters
Name | Type | Description |
---|---|---|
symbol * | string | Contract Symbol |
session | string | Trading Session,valid in afterhours overnight market |
Response
Name | Type | Description |
---|---|---|
date * | string | Date |
type * | string | Type |
exchange | string | Exchange |
symbol | string | Contract Code |
name | string | Contract Name |
previousClose | number | The closing price of the previous trading day |
openPrice | number | Opening Price |
openTime | number | Opening price transaction time |
highPrice | number | Highest Trading Price |
highTime | number | Highest Trading Price transaction time |
lowPrice | number | Lowest Trading Price |
lowTime | number | Lowest Trading Price transaction time |
closePrice | number | Close Price |
closeTime | number | Close Price transaction time |
avgPrice | number | Trading Average Price Today |
change | number | Last Trading Price Change |
changePercent | number | Last Trading price Change Percentage |
amplitude | number | Price Range Today |
lastPrice | number | Last Price(include trial) |
lastSize | number | Last Trading Volume(include trial) |
total | object | List |
>> tradeVolume | number | Accumulative Trading Volume |
>> totalBidMatch | number | Accumulative Bid Volume |
>> totalAskMatch | number | Accumulative Ask Volume |
lastTrade | object | List |
>> bid | number | Last Trading Bid |
>> ask | number | Last Trading Ask |
>> price | number | Last Trading Price |
>> size | number | Last Trading Volume |
>> time | number | Last Trading Time |
>> serial | number | Last Trading Serial Number |
serial | number | Serial Number |
lastUpdated | number | Last Updated Time |
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.quote(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.quote({ symbol: 'TXFA4' })
.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 quote = await rest.Intraday.Quote("TXFA4");
// var quote = await rest.Intraday.Quote("TXFA4", new(){Session=FugleMarketData.QueryModels.FuOpt.TradeSession.AfterHours}); // After hours
var quote_cont = quote.Content.ReadAsStringAsync().Result;
Console.WriteLine(quote_cont);
Response Body:
{
"date": "2023-12-12",
"type": "FUTURE",
"exchange": "TAIFEX",
"symbol": "TXFA4",
"name": "臺股期貨014",
"previousClose": 17416,
"openPrice": 17514,
"openTime": 1702341900070000,
"highPrice": 17540,
"highTime": 1702342491330000,
"lowPrice": 17427,
"lowTime": 1702355400574000,
"closePrice": 17460,
"closeTime": 1702359886936000,
"avgPrice": 17478.89,
"change": 44,
"changePercent": 0.25,
"amplitude": 0.65,
"lastPrice": 17460,
"lastSize": 1,
"total": {
"tradeVolume": 1626,
"totalBidMatch": 0,
"totalAskMatch": 0
},
"lastTrade": {
"bid": 17459,
"ask": 17460,
"price": 17460,
"size": 1,
"time": 1702359886936000,
"serial": "00165753"
},
"serial": 165753,
"lastUpdated": 1702359886936000
}