# 主営構成を取得

get_financials_revenue_breakdown(code, date=None, financial_type=None, currency_code=None)

  • 説明

    指定銘柄の主営構成データを取得します。製品、業界、地域、事業などの多次元で内訳を確認できます

  • パラメータ

    パラメータ 説明
    code str 銘柄コード
    date int フィルタータイムスタンプ
    financial_type F10Type 財報種別
    currency_code str 通貨コード
  • 戻り値

    パラメータ 説明
    ret RET_CODE API呼び出し結果
    data dict ret == RET_OK の場合、主営構成データの辞書を返します
    str ret != RET_OK の場合、エラーの説明を返します
    • 返却辞書に含まれるフィールド:

      フィールド 説明
      period str 財報期間
      breakdown_list list 次元別主営構成リスト
      currency_code str 通貨コード
      screen_date_list list 選択可能な過去日付リスト
    • breakdown_list の各エントリに含まれるフィールド:

      フィールド 説明
      type RevenueBreakdownType 次元種別
      item_list list この次元の主営構成項目リスト
    • item_list の各エントリに含まれるフィールド:

      フィールド 説明
      name str 項目名
      main_oper_income float 営業収益
      ratio float 占比
    • screen_date_list の各エントリに含まれるフィールド:

      フィールド 説明
      date int フィルタータイムスタンプ
      period_text str 財報期間
      financial_type F10Type 財報種別
  • Example

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

ret, data = quote_ctx.get_financials_revenue_breakdown("HK.00700")
if ret == RET_OK:
    df = pd.DataFrame(data['breakdown_list'][0]['item_list'])
    print(df)
else:
    print('error:', data)
quote_ctx.close()
1
2
3
4
5
6
7
8
9
10
11
  • Output
name  main_oper_income    ratio
0                         Value-added services      3.692810e+11  49.1218
1  Financial technology and corporate services      2.294350e+11  30.5194
2                            Marketing service      1.449730e+11  19.2843
3                                        Other      8.077000e+09   1.0744
1
2
3
4
5

インターフェース制限

  • 30秒以内に最大30回リクエスト可能。
  • 株式およびファンドに対応。