# バリュエーション詳細の取得

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

  • 説明

    指定した銘柄または指数のバリュエーション詳細を取得します。バリュエーション推移、市場分布、セクター分布(個別銘柄のみ)、利益/収益成長率(個別銘柄のみ、PB では利用不可)を含みます

  • パラメータ

    パラメータ 説明
    code str 銘柄コード
    valuation_type ValuationType バリュエーション種別
    interval_type ValuationIntervalType 履歴データ期間
  • 戻り値

    パラメータ 説明
    ret RET_CODE API 呼び出し結果
    data dict ret == RET_OK の場合、バリュエーション詳細データの辞書を返す
    str ret != RET_OK の場合、エラーの説明を返す
    • 返される辞書には以下のフィールドが含まれます:

      フィールド 説明
      valuation_type ValuationType 実際のバリュエーション種別
      last_update_time int 最終更新タイムスタンプ(秒、市場タイムゾーン)
      last_update_time_str str 最終更新日時
      trend dict バリュエーション推移データ、trend フィールド表参照
      market_distribution dict 市場分布データ、market_distribution フィールド表参照
      plate_distribution dict セクター分布データ、plate_distribution フィールド表参照
      profit_growth_rate dict 利益/収益成長率データ、profit_growth_rate フィールド表参照
    • trend フィールド(バリュエーション推移サマリー):

      フィールド 説明
      current_value float 現在バリュエーション
      average_value float 過去平均バリュエーション
      avg_minus_1_stddev float 過去平均 - 1σ
      avg_plus_1_stddev float 過去平均 + 1σ
      valuation_percentile float 過去分位数
      forward_value float 予測バリュエーション
      historical_items list 過去バリュエーションリスト、各項目は historical_items フィールド表参照
    • historical_items フィールド(過去バリュエーション項目):

      フィールド 説明
      value float バリュエーション
      time int タイムスタンプ(秒、市場タイムゾーン)
      time_str str 日付
      plate_value float セクター平均バリュエーション
    • market_distribution フィールド(市場 / 構成銘柄分布):

      フィールド 説明
      sections list 分布区間リスト(降順)、各項目は sections フィールド表参照
      total int 市場銘柄数 / 構成銘柄数
      ranking int 市場内バリュエーション順位
      average_value float 市場平均バリュエーション
      median_value float 市場中央値バリュエーション
    • sections フィールド(分布区間項目):

      フィールド 説明
      start float 区間開始値
      end float 区間終了値
      number int 区間内銘柄数
    • plate_distribution フィールド(セクター分布、個別銘柄のみ):

      フィールド 説明
      plate str セクターコード
      plate_name str セクター名
      plate_average_value float セクター平均バリュエーション
      plate_ranking int セクター内バリュエーション順位
      plate_stock_item_count int セクター内銘柄数
      stock_items list セクター構成銘柄バリュエーション詳細、各項目は stock_items フィールド表参照
    • stock_items フィールド(セクター構成銘柄項目):

      フィールド 説明
      security str 銘柄コード
      name str 銘柄名
      value float バリュエーション
      market_cap float 時価総額
    • profit_growth_rate フィールド(利益/収益成長率、個別銘柄のみ、PB 除く):

      フィールド 説明
      financial_ttm_multiple float TTM 成長倍率
      market_cap_multiple float 時価総額成長倍率
      year_count int 成長倍率算出に使用した年数
      profit_data list 期間別データリスト、各項目は profit_data フィールド表参照
      conclusion_detailed str バリュエーション結論説明
    • profit_data フィールド(期間別利益/収益項目):

      フィールド 説明
      financial_year int 財務報告年
      financial_quarter int 財務報告四半期
      period_str str 財務報告期間
      report_date int 報告日タイムスタンプ(秒、市場タイムゾーン)
      report_date_str str 報告日
      market_cap_multiple float 報告日時点の時価総額倍率
      finance_data_multiple float 利益/収益倍率
  • Example

from moomoo 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
  • 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

制限

  • 30 秒間に最大 30 リクエストまで。
  • 普通株、ファンド、指数に対応しています。
  • PB バリュエーション種別では利益/収益成長率モジュールは含まれません。
  • 指数では順位、平均値、中央値は含まれません。