Skip to main content

Query Stock Quote Information (Single)

QuerySymbolQuote

info

For version >=2.2.5

Input Parameters

ParameterTypeDescription
accountAccountAccount
symbolStringSymbol
marketTypeMarketType (Optional)(default = Common)Market type: supports Common (regular lot), IntradayOdd (odd lot during trading hours), Fixing (closing auction)

Result

ParameterTypeDescription
isSuccessboolWhether the request was successful
dataOrderResultReturned quote information
messagestringError message when isSuccess = false

Symbol Information (SymbolQuote Fields)

Return type : Object

ParameterTypeDescription
marketstringMarket
symbolstringSymbol
istibOrPsbboolWhether it is TIB or PSB board
marketTypestringMarket type
statusintStatus (bitmask) 0 :All forbidden 、 1:Exempted from margin short selling price constraint、2: Exempted from SBL short selling price constraint、 4: Available sale after buy day trading 、 8: Available buy after sale day trading
referencePricedoubleReference price
unitintTrading unit
updateTimestringUpdate time
limitupPricedoubleUpper price limit
limitdownPricedoubleLower price limit
openPricedoubleOpening price
highPricedoubleHighest price
lowPricedoubleLowest price
lastPricedoubleLatest traded price
totalVolumeintTotal traded volume
totalTransactionintTotal number of trades
totalValueintTotal traded value
lastSizeintLatest traded volume
lastTransactionintLatest number of trades
lastValueintLatest traded value
bidPricedoubleBest bid price
bidVolumeintBest bid volume
askPricedoubleBest ask price
askVolumeintBest ask volume
Supported Products

TAIEX and TAISDAQ securities

info

Status Example : if Status = 15 : It represnet there is no constraint for this symbol ,15 eqauls 1+2+4+8 break down; if Status = 12 ,it represnet 4 + 8 break down。

Request Example

var quote = sdk.Stock.QuerySymbolQuote(result.data[0],"2330");
Console.WriteLine(quote.data)

Response Example

{
isSuccess = True,
message = ,
data = SymbolQuote{
market = TAIEX, // string - Market
symbol = 2330, // string - Symbol
istibOrPsb = False, // bool - Whether it is TIB or PSB board
marketType = Common, // string - Market type
status = 15, // int - Status (bitmask sum)
referencePrice = 780, // double - Reference price
unit = 1000, // int - Trading unit
updateTime = , // string - Update time
limitupPrice = 858, // double - Upper price limit
limitdownPrice = 702, // double - Lower price limit
openPrice = 1155, // double - Opening price
highPrice = 1160, // double - Highest price
lowPrice = 1145, // double - Lowest price
lastPrice = 1145, // double - Latest traded price
totalVolume = 20501, // int - Total traded volume
totalTransaction = 0, // int - Total number of trades
totalValue = 23551095000, // int - Total traded value
lastSize = 6673, // int - Latest traded volume
lastTransaction = 0, // int - Latest number of trades
lastValue = 7640585000, // int - Latest traded value
bidPrice = 1145, // double - Best bid price
bidVolume = 1549, // int - Best bid volume
askPrice = 1150, // double - Best ask price
askVolume = 4169 // int - Best ask volume
}
}