Skip to main content

Intraday Quote

Real-time quotes (query by contract symbol)

intraday/quote/{symbol}

Parameters

NameTypeDescription
symbol*stringContract Symbol
sessionstringTrading Session,valid in afterhours overnight market

Response

NameTypeDescription
date*stringDate
type*stringType
exchangestringExchange
symbolstringContract Code
namestringContract Name
previousClosenumberThe closing price of the previous trading day
openPricenumberOpening Price
openTimenumberOpening price transaction time
highPricenumberHighest Trading Price
highTimenumberHighest Trading Price transaction time
lowPricenumberLowest Trading Price
lowTimenumberLowest Trading Price transaction time
closePricenumberClose Price
closeTimenumberClose Price transaction time
avgPricenumberTrading Average Price Today
changenumberLast Trading Price Change
changePercentnumberLast Trading price Change Percentage
amplitudenumberPrice Range Today
lastPricenumberLast Price(include trial)
lastSizenumberLast Trading Volume(include trial)
totalobjectList
>> tradeVolumenumberAccumulative Trading Volume
>> totalBidMatchnumberAccumulative Bid Volume
>> totalAskMatchnumberAccumulative Ask Volume
lastTradeobjectList
>> bidnumberLast Trading Bid
>> asknumberLast Trading Ask
>> pricenumberLast Trading Price
>> sizenumberLast Trading Volume
>> timenumberLast Trading Time
>> serialnumberLast Trading Serial Number
serialnumberSerial Number
lastUpdatednumberLast Updated Time
info

'*' Indicates mandatory disclosure fields.

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()

restfut = sdk.marketdata.rest_client.futopt
restfut.intraday.quote(symbol='TXFA4')

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
}