Skip to content
Market Data

Get Stock Details

Fetch detailed market data for a single stock, including last price, price change-related prices, bid/ask order book, broker queues, AH premium, ADR ratio, total shares outstanding, industry info, ETF reference NAV, night session quotes, etc., for display on the stock detail page.

GEThttps://api.lbkrs.com/v3/quote/stock/detail

Parameters

counter_idstringqueryRequired

Stock id

Responses

HTTP 200The request succeeded. The response body contains the result of the “Get stock details” operation.
Standard response envelopecodemessagedata
dataobjectdata structure
last_donestring

Last price

openstring

Open price

prev_closestring

Previous close

highstring

Today's high

lowstring

Today's low

amountstring

Volume

balancestring

Turnover

turnover_ratestring

Turnover rate

epsstring

Earnings per share

eps_ttmstring

Earnings per share (TTM)

trade_statusinteger

Trading status:

  • 0 - No market data (pending listing)
  • 101 - Liquidation state
  • 102 - Opening auction
  • 105 - Trading
  • 106 - Midday halt
  • 107 - Closing auction
  • 108 - Closed
  • 110 - Dark pool awaiting open
  • 111 - Dark pool trading
  • 112 - Dark pool closed
  • 120 - Fixed-price trade
  • 121 - Half-day market closed
  • 122 - Not opened
  • 201 - US pre-market
  • 202 - US trading
  • 203 - US post-market
  • 204 - US closed
  • 205 - US halted
  • 206 - US liquidation (including pre-market)
  • 207 - US night session
  • 1001 - Delisted
  • 1002 - Preparing for listing
  • 1003 - Code change
  • 1004 - Suspended
  • 1005 - Awaiting open
  • 1006 - Trading paused for split/consolidation
  • 1007 - Expired/not listed
  • 1008 - No price
  • 1009 - Not listed
  • 1010 - Terminated trading
  • 1011 - Waiting to list

010110210510610710811011111212012112220120220320420520620710011002100310041005100610071008100910101011

timestampstring

Timestamp

volume_ratestring

Volume ratio

depth_ratestring

Order imbalance

year_highstring

52-week high

year_lowstring

52-week low

loweststring

All-time low

higheststring

All-time high

total_sharesstring

Total shares outstanding

circulating_sharesstring

Free float shares

dividend_yieldstring

Dividend

bpsstring

Net asset value per share

bid_depthsarray<object>

Bid depth

Child attributes
price_levelinteger

Order book tier (level index)

countstring

Order book queued volume (currently unused)

volumestring

Order book buy/sell volume

pricestring

Order book price

ask_depthsarray<object>

Ask depth

Child attributes
price_levelinteger

Order book tier (level index)

countstring

Order book queued volume (currently unused)

volumestring

Order book buy/sell volume

pricestring

Order book price

market_timestampstring

Pre-market or after-hours time (US market)

market_pricestring

Pre-/post-market price (US market)

factor_astring

Adjusted factor A

factor_bstring

Adjusted factor B

pretrade_closestring

Pre-market previous close price

limit_upstring

Upper limit price

limit_downstring

Lower limit price

ah_premiumobject

A/H premium information

Child attributes
counter_idstring

Compared stock code

last_donestring

Compared stock latest price

prev_closestring

Compared stock previous close price

latencyboolean

Whether the quote is delayed

market_highstring

Pre-/post-market high

market_lowstring

Pre-/post-market low

market_amountstring

Pre-/post-market volume

market_balancestring

Pre-/post-market turnover

unitinteger

Shares per lot

dps_ratestring

Dividend yield

upgradeinteger

Upgrade prompt id; 0 means no upgrade prompt needed

available_levelsarray<string>

Quote type

prev_year_closestring

Last year's close price

bid_brokersarray<object>

Broker queue bid depth

Child attributes
price_levelinteger

Order book tier (level index)

brokersarray<string>

Broker ID list

ask_brokersarray<object>

Broker queue ask depth

Child attributes
price_levelinteger

Order book tier (level index)

brokersarray<string>

Broker ID list

inflowstring

Capital inflow

currencystring

Currency

exchangestring

Exchange

risestring

Number of advancing stocks (index-specific)

fallstring

Number of declining stocks (index-specific)

flatlinestring

Number of unchanged stocks (index-specific)

hk_sharesstring

Hong Kong shares outstanding

counter_idstring

Stock id

eps_forecaststring

Earnings per share (forecast)

market_capstring

Total market capitalization (index only)

stock_namestring

Stock name

tplinteger

Equity/security template:

  • 0 - Unknown
  • 1 - Stock
  • 2 - ETF
  • 3 - DLC
  • 4 - Index
  • 5 - LB industry sector
  • 6 - LB concept sector
  • 11 - Filed (submitted)
  • 12 - Pending listing
  • 13 - Dark pool today
  • 14 - IPO today
  • 15 - LB custom security
  • 16 - Security without market data
  • 17 - Sector without market data
  • 20 - Option
  • 31 - Warrant
  • 32 - Bull/Bear certificate
  • 33 - Structured note
  • 34 - US-linked security template
  • 35 - Virtual asset

012345611121314151617203132333435

cnconnectinteger

A-share Connect trading (display A-share Connect icon):

  • 1 - Buy and sell allowed
  • 2 - Sell only
short_sellboolean

Whether short selling is allowed

ticker_sizestring

HK step size type, one of A/B/C/D

channel_infoobject

Channel messages, key is the channel identifier

industry_counter_idstring

Industry counter_id for the stock

industry_namestring

Industry name for the stock

show_kline_typeinteger

K-line comparison display type:

  • 1 - K-line < 120 days
  • 2 - K-line < 240 days
  • 3 - K-line < 730 days
  • 4 - K-line < 1460 days
sub_statusinteger

Sub-status

base_large_balancestring

Block trade reference

sub_marketstring

Sub-market

tagsarray<string>

Full market tag

first_kline_timestampstring

Timestamp of the first K-line

stock_derivativesarray<string>

Supported derivatives

adr_rateobject

ADR ratio information

Child attributes
counter_idstring

Related stock code

ratestring

ADR ratio

cnconnect_neueinteger

A-share Connect trading (new version):

  • 1 - Buy and sell allowed
  • 2 - Sell only
  • -1 - No handling
constituent_stockinteger

Has component stocks:

  • -1 - Template not applicable
  • 0 - No
  • 1 - Yes
amount_precisioninteger

Volume precision

support_overnightboolean

Whether night session is supported

overnight_priceobject

Night session price quote

Child attributes
last_donestring

Last price

highstring

High price

lowstring

Low price

prev_closestring

Previous close

amountstring

Volume

balancestring

Turnover

timestampstring

Timestamp

overnight_bid_depthsarray<object>

Night session bid depth

Child attributes
price_levelinteger

Order book tier (level index)

countstring

Order book queued volume (currently unused)

volumestring

Order book buy/sell volume

pricestring

Order book price

overnight_ask_depthsarray<object>

Night session ask depth

Child attributes
price_levelinteger

Order book tier (level index)

countstring

Order book queued volume (currently unused)

volumestring

Order book buy/sell volume

pricestring

Order book price

etf_referenceobject

ETF reference information

Child attributes
disc_premstring

Premium/discount rate

navstring

Net asset value (NAV)

nav_datestring

NAV date

relate_etfinteger

Has related ETF:

  • -1 - Template not applicable
  • 0 - No
  • 1 - Yes
hk_dualobject

A/H dual-counter security information

Child attributes
counter_idstring

Stock code for corresponding counter

security_typeinteger

Counter type:

  • 1 - RMB counter instrument
  • 2 - HKD counter instrument

12

status_descobject

Trading status description information

Child attributes
status_descstring

Status description text

append_market_timeboolean

Requires additional market time

is_holidayboolean

Is closed for holidays

HTTP 400The service rejected the request because a business rule or input validation failed. Review the business codes and correct the request before retrying.
codeintegerrequired

Business status code, 0 indicates success

messagestringrequired

Human-readable result or error message.

Whale Docs