Skip to content
Industry and Supply Chains

Get Industry Chain Entity Relations

Returns other chain entities related to the specified industry chain or concept chain, grouped by relation type (classification, upstream and downstream, complementary, substitute, and so on). Use it for the Related tab on the chain detail page. Render group tabs from types, place each items entry in the group matching its relation_type, and show entity_num as the total number of related entities.

GEThttps://api.lbkrs.com/industrial/chain/entityRelation

Parameters

idstringqueryRequired

Chain ID from items[].id returned by Get Industry Chains of a Stock or Get Concept Chains of a Stock

typeintegerqueryRequired

Chain type:

  • 1 - Industry chain
  • 2 - Concept chain

12

Responses

HTTP 200The request succeeded. The response body contains the result of the “Get Industry Chain Entity Relations” operation.
Standard response envelopecodemessagedata
dataobjectdata structure

Relations

typesarray<object>

Relation types present

Child attributes
typeinteger

Relation type:

  • 1 - Classification
  • 2 - Upstream and downstream
  • 3 - Whole and part
  • 4 - Complementary
  • 5 - Substitute
  • 6 - Other
Values
1
2
3
4
5
6
namestring

Relation type name, used as the tab title

itemsarray<object>

Related entities

Child attributes
idinteger

Entity ID

namestring

Entity name

relation_typeinteger

Relation type to the current chain. See types[].type for values.

relation_type_namestring

Relation type name

year_chgstring

Year-to-date change as a decimal ratio (for example, 0.1523 means 15.23%)

introductionstring

Entity introduction

entity_numinteger

Total number of related entities

Whale Docs