基本面

机构评级

GEThttps://openapi.longbridge.com/v1/quote/institution-rating-latest

鉴权

签名方式:每个请求用 App Key / Secret 签名。请求头如下:

名称类型必填说明
Authorizationstring · header必填OpenAPI 后台 上的账户 Access Token,作为原始 token 传入(不带 Bearer 前缀),并参与签名计算。
X-Api-Keystring · header必填你的 App Key。
X-Timestampstring · header必填请求时间戳,单位秒(Unix 时间)。
X-Api-Signaturestring · header必填HMAC-SHA256 签名。格式:HMAC-SHA256 SignedHeaders=authorization;x-api-key;x-timestamp, Signature=。

获取分析师机构评级快照(评级分布及平均目标价)。

>_ CLI
longbridge institution-rating TSLA.US
longbridge institution-rating AAPL.US

请求

查询参数

名称类型必填说明
symbolstring必填证券代码,例如 `TSLA.US`

响应

响应字段

名称类型必填说明
evaluateobject可选分析师评级分布。
└ buyinteger可选买入评级数。
└ overinteger可选增持评级数。
└ holdinteger可选持有评级数。
└ underinteger可选减持评级数。
└ sellinteger可选卖出评级数。
└ totalinteger可选评级总数。
└ start_datestring可选统计起始时间(Unix 秒)。
└ end_datestring可选统计结束时间(Unix 秒)。
└ no_opinioninteger可选无观点的分析师数。
targetobject可选目标价一致预期。
└ highest_pricestring可选最高目标价。
└ lowest_pricestring可选最低目标价。
└ prev_closestring可选前收盘价。
└ start_datestring可选统计起始时间(Unix 秒)。
└ end_datestring可选统计结束时间(Unix 秒)。
industry_idinteger可选行业 ID。
industry_namestring可选行业名称。
industry_rankinteger可选标的在行业内的排名。
industry_totalinteger可选行业内标的总数。
industry_meaninteger可选行业平均评级排名。
industry_medianinteger可选行业评级排名中位数。

响应 JSON 示例

{
  "code": 0,
  "message": "success",
  "data": {
    "latest": {
      "evaluate": {
        "buy": 18,
        "hold": 17,
        "sell": 4,
        "no_opinion": 4,
        "over": 5,
        "under": 3,
        "total": 51,
        "start_date": "1778198400",
        "end_date": "0"
      },
      "industry_id": 87676,
      "industry_mean": 10,
      "industry_median": 4,
      "industry_name": "Automobiles",
      "industry_rank": 1,
      "industry_total": 30,
      "target": {
        "highest_price": "600.000",
        "lowest_price": "123.000",
        "prev_close": "428.35",
        "start_date": "1778198400",
        "end_date": "0"
      }
    },
    "summary": {
      "ccy_symbol": "$",
      "change": "0",
      "recommend": "Buy",
      "updated_at": "1778198400",
      "evaluate": {
        "buy": 18,
        "hold": 17,
        "sell": 4
      },
      "target": {
        "average_target": "350.00",
        "highest_price": "600.000",
        "lowest_price": "123.000"
      }
    }
  }
}

错误码

参见错误码文档。