# Get Industrial Chain Detail

get_industrial_chain_detail(chain_id)

  • Description

    Get industrial chain detail, returning the complete structural information of the specified industrial chain, including hierarchical node list and related news links.

  • Parameters

    Parameter Type Description
    chain_id int Industrial chain ID
  • Return

    Parameter Type Description
    ret RET_CODE API call result
    data dict When ret == RET_OK, returns dict data
    str When ret != RET_OK, returns error description
    • Data format:
      Field Type Description
      chain_id int Industrial chain ID
      chain_type str Industrial chain type ("CHAIN"/"PARALLEL"/"UP_MID_DOWN")
      name str Industrial chain name
      node_list list[dict] Node list (grouped by level)
      information_list list[dict] News link list
      node_id int Node ID
      parent_node_id int Parent node ID (root node is 0)
      layer int Node level (starting from 1)
      name str Node name
      plate_id int Associated industrial plate ID (N/A if none)
      title str News title
      url str News link
  • Example

from futu import *

quote_ctx = OpenQuoteContext(host='127.0.0.1', port=11111)

ret, data = quote_ctx.get_industrial_chain_detail(chain_id=9610020)
if ret == RET_OK:
    print(f"chain_id: {data['chain_id']}")
    print(f"chain_type: {data['chain_type']}")
    print(f"name: {data['name']}")
    print(f"node_list (first 2 items):")
    for node in data['node_list'][:2]:
        print(f"  {node}")
    print(f"information_list: {data['information_list']}")
else:
    print('error:', data)

quote_ctx.close()
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  • Output
chain_id: 9610020
chain_type: UP_MID_DOWN
name: AI
node_list (first 2 items):
  {'node_id': 1, 'parent_node_id': 'N/A', 'layer': 1, 'name': '基础建设层', 'plate_id': 'N/A'}
  {'node_id': 4, 'parent_node_id': 'N/A', 'layer': 1, 'name': '算法层', 'plate_id': 'N/A'}
information_list: []
1
2
3
4
5
6
7

API Limits

  • Maximum 60 requests within 30 seconds
  • Only the first page of paginated requests counts towards rate limiting