One industrial chain's node tree and information links
GET/api/v1.0/quote/industrial-chain/detailGet one industrial chain's node tree and information links. Returns chain_id / chain_type / name, layer-order nodes (layer / parent_node_id / plate_id), and articles. For constituents use quote.industrial_plate.stock?chain_id=; for a node plate summary use quote.industrial_plate.info.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
chain_id | int | query | yes | Industrial chain ID from quote.industrial_chain.list |
Example
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/industrial-chain/detail?chain_id=1' \
-H 'Authorization: Bearer <AccessToken>' | jqResponse parameters
| Name | Type | Description |
|---|---|---|
data.chain_id | int | Industrial chain ID |
data.chain_type | int | Chain type: CHAIN / PARALLEL / UP_MID_DOWN |
data.name | string | Chain name |
data.nodes | object[] | Nodes in layer order (all layer-1 nodes, then layer-2, and so on) |
data.nodes[].node_id | int | Node ID |
data.nodes[].parent_node_id | int | Parent node ID; 0 for layer-1 nodes |
data.nodes[].layer | int | Node layer, starting at 1 |
data.nodes[].name | string | Node name |
data.nodes[].plate_id | int | Linked industrial plate ID; 0 if none |
data.articles | object[] | Information links |
data.articles[].title | string | Title |
data.articles[].url | string | URL |
Errors
| ret_code | error.code | Description |
|---|---|---|
| 0 | — | Success |
| -3 | invalid_parameter | Missing or invalid parameter |
| -8 | unsupported | Not supported |
| -10 | no_data | No data |
Response example
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"chain_id": 0,
"chain_type": 0,
"name": "example",
"nodes": [
{
"node_id": 0,
"parent_node_id": 0,
"layer": 0,
"name": "example",
"plate_id": 0
}
],
"articles": [
{
"title": "example",
"url": "example"
}
]
}
}