# Get Valuation Detail

get_valuation_detail(code, valuation_type=None, interval_type=None)

  • Description

    Get valuation detail for the specified stock or index, including valuation trend, market distribution, sector distribution (stocks only), and earnings/revenue growth rate (stocks only, not available for PB)

  • Parameters

    Parameter Type Description
    code str Stock code
    valuation_type ValuationType Valuation type
    interval_type ValuationIntervalType Historical data time interval
  • Return

    Parameter Type Description
    ret RET_CODE API call result
    data dict If ret == RET_OK, returns valuation detail data dict
    str If ret != RET_OK, returns error description
    • The returned dict contains the following fields:

      Field Type Description
      valuation_type ValuationType Actual valuation type
      last_update_time int Last update timestamp
      last_update_time_str str Last update time
      trend dict Valuation trend data, see trend field table
      market_distribution dict Market distribution data, see market_distribution field table
      plate_distribution dict Sector distribution data, see plate_distribution field table
      profit_growth_rate dict Earnings/revenue growth rate data, see profit_growth_rate field table
    • trend fields (valuation trend summary):

      Field Type Description
      current_value float Current valuation
      average_value float Historical average valuation
      avg_minus_1_stddev float Historical average - 1σ
      avg_plus_1_stddev float Historical average + 1σ
      valuation_percentile float Historical percentile
      forward_value float Forward valuation
      historical_items list Historical valuation list, each item see historical_items field table
    • historical_items fields (historical valuation entry):

      Field Type Description
      value float Valuation
      time int Timestamp
      time_str str Date
      plate_value float Sector average valuation
    • market_distribution fields (market / constituent stock distribution):

      Field Type Description
      sections list Distribution sections list (descending), each item see sections field table
      total int Total market count / constituent stock count
      ranking int Stock's valuation ranking in the market
      average_value float Market average valuation
      median_value float Market median valuation
    • sections fields (distribution section entry):

      Field Type Description
      start float Section start value
      end float Section end value
      number int Number of stocks in this section
    • plate_distribution fields (sector distribution, stocks only):

      Field Type Description
      plate str Sector code
      plate_name str Sector name
      plate_average_value float Sector average valuation
      plate_ranking int Stock's valuation ranking within the sector
      plate_stock_item_count int Total stocks in the sector
      stock_items list Sector constituent stock valuation details, each item see stock_items field table
    • stock_items fields (sector constituent stock entry):

      Field Type Description
      security str Stock code
      name str Stock name
      value float Valuation
      market_cap float Market cap
    • profit_growth_rate fields (earnings/revenue growth rate, stocks only, not PB):

      Field Type Description
      financial_ttm_multiple float TTM growth multiple
      market_cap_multiple float Market cap growth multiple
      year_count int Number of years used to calculate growth multiple
      profit_data list Per-period data list, each item see profit_data field table
      conclusion_detailed str Valuation conclusion description
    • profit_data fields (per-period earnings/revenue entry):

      Field Type Description
      financial_year int Financial report year
      financial_quarter int Financial report quarter
      period_str str Financial report period
      report_date int Report date timestamp
      report_date_str str Report date
      market_cap_multiple float Market cap multiple on report date
      finance_data_multiple float Earnings/revenue multiple
  • Example

from futu import *
import pandas as pd
quote_ctx = OpenQuoteContext(host='127.0.0.1', port=11111)

ret, data = quote_ctx.get_valuation_detail("HK.00700")
if ret == RET_OK:
    trend = data.get('trend', {})
    items = trend.get('historical_items', [])
    df = pd.DataFrame(items)
    print(df.to_string(index=False))
else:
    print('error:', data)
quote_ctx.close()
1
2
3
4
5
6
7
8
9
10
11
12
13
  • Output
value       time   time_str  plate_value
22.690 1746979200 2025-05-12       22.678
22.186 1747065600 2025-05-13       22.179
22.843 1747152000 2025-05-14       22.817
22.046 1747238400 2025-05-15       22.050
21.538 1747324800 2025-05-16       21.577
21.792 1747584000 2025-05-19       21.821
//...
18.087 1776960000 2026-04-24       18.147
17.544 1777219200 2026-04-27       17.617
17.368 1777305600 2026-04-28       17.444
17.566 1777392000 2026-04-29       17.650
17.148 1777478400 2026-04-30       17.227
17.339 1777824000 2026-05-04       17.421
17.310 1777910400 2026-05-05       17.393
16.972 1777996800 2026-05-06       17.059
17.500 1778083200 2026-05-07       17.589
17.266 1778169600 2026-05-08       17.364
17.039 1778428800 2026-05-11       17.143
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

Restrictions

  • Maximum 30 requests per 30 seconds.
  • Supports common stocks, funds, and indexes.
  • PB valuation type does not include earnings/revenue growth rate module.
  • Indexes do not include ranking, average value, or median value.