# 獲取主營構成

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 介面調用結果
    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 futu 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 次。
  • 支持正股及基金。