Query Stock Quote Information (Single)
QuerySymbolQuote
info
For version >=2.2.5
Input Parameters
| Parameter | Type | Description |
|---|---|---|
| account | Account | Account |
| symbol | String | Symbol |
| marketType | MarketType (Optional)(default = Common) | Market type: supports Common (regular lot), IntradayOdd (odd lot during trading hours), Fixing (closing auction) |
Result
| Parameter | Type | Description |
|---|---|---|
| isSuccess | bool | Whether the request was successful |
| data | OrderResult | Returned quote information |
| message | string | Error message when isSuccess = false |
Symbol Information (SymbolQuote Fields)
Return type : Object
| Parameter | Type | Description |
|---|---|---|
| market | string | Market |
| symbol | string | Symbol |
| istibOrPsb | bool | Whether it is TIB or PSB board |
| marketType | string | Market type |
| status | int | Status (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 |
| referencePrice | double | Reference price |
| unit | int | Trading unit |
| updateTime | string | Update time |
| limitupPrice | double | Upper price limit |
| limitdownPrice | double | Lower price limit |
| openPrice | double | Opening price |
| highPrice | double | Highest price |
| lowPrice | double | Lowest price |
| lastPrice | double | Latest traded price |
| totalVolume | int | Total traded volume |
| totalTransaction | int | Total number of trades |
| totalValue | int | Total traded value |
| lastSize | int | Latest traded volume |
| lastTransaction | int | Latest number of trades |
| lastValue | int | Latest traded value |
| bidPrice | double | Best bid price |
| bidVolume | int | Best bid volume |
| askPrice | double | Best ask price |
| askVolume | int | Best 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
}
}