{
  "domain": "www.sse.com.cn",
  "url": "https://www.sse.com.cn/assortment/stock/list/info/company/index.shtml",
  "title": "上市公司详情",
  "summary": "上交所个股详情页，一页聚合多个 API：公司概况、股本结构、十大股东、分红送股、融资情况、成交概况、大宗交易、融资融券等。",
  "params_common": {
    "COMPANY_CODE": {
      "required": true,
      "description": "公司代码（6位）",
      "example": "600519"
    },
    "Referer": "https://www.sse.com.cn/assortment/stock/list/info/company/index.shtml"
  },
  "apis": {
    "blocktrade": {
      "endpoint": "https://query.sse.com.cn/commonQuery.do",
      "method": "GET",
      "sqlId": "COMMON_SSE_XXPL_JYXXPL_DZJYXX_L_1",
      "params": {
        "SEC_CODE": {
          "required": true,
          "example": "600519"
        }
      },
      "paginated": true
    },
    "bonus": {
      "endpoint": "https://query.sse.com.cn/commonQuery.do",
      "method": "GET",
      "sqlId": "COMMON_SSE_CP_GPJCTPZ_GPLB_LRFP_SG_L",
      "params": {
        "COMPANY_CODE": {
          "required": true,
          "example": "600519"
        }
      },
      "paginated": true
    },
    "dividend": {
      "endpoint": "https://query.sse.com.cn/commonQuery.do",
      "method": "GET",
      "sqlId": "COMMON_SSE_CP_GPJCTPZ_GPLB_LRFP_FH_L",
      "params": {
        "COMPANY_CODE": {
          "required": true,
          "description": "公司代码",
          "example": "600519"
        },
        "IS_STAR": {
          "value": "0",
          "description": "0=主板, 1=科创板"
        },
        "CONDITION_ZBB": {
          "value": "1",
          "description": "主板分红条件"
        }
      },
      "paginated": true
    },
    "equity": {
      "endpoint": "https://query.sse.com.cn/commonQuery.do",
      "method": "GET",
      "sqlId": "COMMON_SSE_CP_GPJCTPZ_GPLB_GPGK_GBJG_C",
      "params": {
        "COMPANY_CODE": {
          "required": true,
          "example": "600519"
        }
      },
      "paginated": false
    },
    "fundraising": {
      "endpoint": "https://query.sse.com.cn/commonQuery.do",
      "method": "GET",
      "sqlId": "COMMON_SSE_CP_GPJCTPZ_GPLB_CZQK_AGKCBZFSF_S",
      "params": {
        "COMPANY_CODE": {
          "required": true,
          "example": "600519"
        },
        "ISS_FLAG": {
          "value": "1,2"
        }
      },
      "paginated": false
    },
    "margin": {
      "endpoint": "https://query.sse.com.cn/commonSoaQuery.do",
      "method": "GET",
      "sqlId": "RZRQ_MX_INFO",
      "params": {
        "preStockCode": {
          "required": true,
          "example": "600519"
        }
      },
      "paginated": true
    },
    "overview": {
      "endpoint": "https://query.sse.com.cn/commonQuery.do",
      "method": "GET",
      "sqlId": "COMMON_SSE_CP_GPJCTPZ_GPLB_GPGK_GSGK_C",
      "params": {
        "COMPANY_CODE": {
          "required": true,
          "description": "公司代码",
          "example": "600519"
        }
      },
      "paginated": false
    },
    "shareholders": {
      "endpoint": "https://query.sse.com.cn/commonSoaQuery.do",
      "method": "GET",
      "sqlId": "COMMON_SSE_PL_XBRL_TOP10SHAREHOLDERS",
      "params": {
        "stockId": {
          "required": true,
          "description": "证券代码",
          "example": "600519"
        }
      },
      "paginated": false
    },
    "trading": {
      "endpoint": "https://query.sse.com.cn/commonQuery.do",
      "method": "GET",
      "sqlId": "COMMON_SSE_CP_GPJCTPZ_GPLB_CJGK_MRGK_C",
      "params": {
        "SEC_CODE": {
          "required": true,
          "example": "600519"
        },
        "TX_DATE": {
          "required": false
        }
      },
      "paginated": false
    }
  },
  "confidence": 0.85,
  "auto_discovered": true,
  "last_verified": "2026-03-14",
  "caveats": [
    "需要 Referer header",
    "返回 JSONP 格式，需去掉回调函数包装",
    "所有 API 共用 COMPANY_CODE 参数"
  ],
  "action_steps_template": {
    "description": "调用 company.setCompanyParams() 刷新页面数据。",
    "steps": [
      {
        "type": "exec_js",
        "code": "company.setCompanyParams()",
        "wait": 3000
      }
    ],
    "example": [
      {
        "type": "exec_js",
        "code": "company.setCompanyParams()",
        "wait": 3000
      }
    ]
  }
}
