# Get Revenue Breakdown

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

  • Description

    Get revenue breakdown data for a specified stock, supporting multi-dimensional breakdown by product, industry, region, and business

  • Parameters

    Parameter Type Description
    code str Stock code
    date int Filter timestamp
    financial_type F10Type Report type
    currency_code str Currency code
  • Returns

    Parameter Type Description
    ret RET_CODE API call result
    data dict When ret == RET_OK, returns revenue breakdown data dictionary
    str When ret != RET_OK, returns error description
    • The returned dictionary contains the following fields:

      Field Type Description
      period str Reporting period
      breakdown_list list Revenue breakdown list
      currency_code str Currency code
      screen_date_list list Available historical dates
    • Each entry in breakdown_list contains the following fields:

      Field Type Description
      type RevenueBreakdownType Dimension type
      item_list list Revenue breakdown items
    • Each entry in item_list contains the following fields:

      Field Type Description
      name str Item name
      main_oper_income float Operating revenue
      ratio float Ratio
    • Each entry in screen_date_list contains the following fields:

      Field Type Description
      date int Filter timestamp
      period_text str Reporting period
      financial_type F10Type Report type
  • 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

Interface Limit

  • Up to 30 requests per 30 seconds.
  • Supports stocks and funds.