Skip to main content

Query Stock Quote

query_symbol_quote

Input Parameters

ParameterTypeDescription
accountAccountAccount
symbolStringStock code
market_typeMarketType (Optional)(default = Common)Market type: supports Common, IntradayOdd, Fixing

Result Response

ParameterTypeDescription
isSuccessboolWhether successful
dataSymbolQuoteReturned quote information
messagestringError message when isSuccess = False

SymbolQuote Fields

Return type: Object

ParameterTypeDescription
marketstringMarket
symbolstringStock code
is_tib_or_psbboolWhether TIB or PSB
market_typestringMarket type
statusintStatus (bitmask)
reference_pricedoubleReference price
unitstringTrading unit
update_timestringUpdate time
limitup_pricedoubleUpper limit price
limitdown_pricedoubleLower limit price
open_pricedoubleOpening price
high_pricedoubleHighest price
low_pricedoubleLowest price
last_pricedoubleLast traded price
total_volumeintTotal volume
total_transactionintTotal transactions
total_valuedoubleTotal value
last_sizeintLast trade size
last_transactionintLast transaction count
last_valuedoubleLast trade value
bid_pricedoubleBid price
bid_volumeintBid volume
ask_pricedoubleAsk price
ask_volumeintAsk volume

Request Example

auto query_quote = sdk->stock->query_symbol_quote(target_account,"2330");

Response Example

{
isSuccess = True,
message = ,
data = SymbolQuote{
market = TAIEX,
symbol = 2330,
istibOrPsb = False,
marketType = Common,
status = 15,
referencePrice = 780,
unit = 1000,
updateTime = ,
limitupPrice = 858,
limitdownPrice = 702,
openPrice = 1155,
highPrice = 1160,
lowPrice = 1145,
lastPrice = 1145,
totalVolume = 20501,
totalTransaction = 0,
totalValue = 23551095000,
lastSize = 6673,
lastTransaction = 0,
lastValue = 7640585000,
bidPrice = 1145,
bidVolume = 1549,
askPrice = 1150,
askVolume = 4169
}
}