资讯与社区
鉴权
签名方式:每个请求用 App Key / Secret 签名。请求头如下:
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
Authorization | string · header | 必填 | OpenAPI 后台 上的账户 Access Token,作为原始 token 传入(不带 Bearer 前缀),并参与签名计算。 |
X-Api-Key | string · header | 必填 | 你的 App Key。 |
X-Timestamp | string · header | 必填 | 请求时间戳,单位秒(Unix 时间)。 |
X-Api-Signature | string · header | 必填 | HMAC-SHA256 签名。格式:HMAC-SHA256 SignedHeaders=authorization;x-api-key;x-timestamp, Signature=。 |
获取当前登录用户发布的讨论列表,支持分页与类型过滤。可在 社区 查看。
请求
查询参数
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
page | integer | 可选 | 页码,默认 1 |
size | integer | 可选 | 每页数量,范围 1~500,默认 50 |
topic_type | string | 可选 | 类型过滤,可选 `article`(长文)、`post`(短帖),不传返回全部 |
响应
响应字段
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
items | object[] | 可选 | 讨论列表 |
└ id | string | 可选 | 讨论 ID |
└ description | string | 可选 | 纯文本摘要 |
└ author | object | 可选 | 作者信息 |
└ ∟ member_id | string | 可选 | 作者 member ID |
└ ∟ name | string | 可选 | 作者昵称 |
└ ∟ avatar | string | 可选 | 作者头像 URL |
└ tickers | array | 可选 | 关联标的代码,如 `["AAPL.US", "700.HK"]` |
└ hashtags | array | 可选 | 讨论标签名称列表 |
└ images | array | 可选 | 附图列表 |
└ likes_count | integer | 可选 | 点赞数 |
└ comments_count | integer | 可选 | 评论数 |
└ views_count | integer | 可选 | 浏览数 |
└ shares_count | integer | 可选 | 分享数 |
└ topic_type | string | 可选 | 内容类型,`article`(长文)或 `post`(短帖) |
└ detail_url | string | 可选 | 讨论详情页链接 |
└ created_at | string | 可选 | 创建时间,Unix 时间戳(秒) |
└ updated_at | string | 可选 | 最后更新时间,Unix 时间戳(秒) |
└ title | string | 可选 | 标题(短帖可能为空) |
└ body | string | 可选 | Markdown 格式正文 |
响应 JSON 示例
{
"code": 0,
"message": "success",
"data": {
"items": [
{
"id": "39304657",
"title": "My Analysis on AAPL",
"description": "A brief summary of my article...",
"body": "Full markdown content here...",
"topic_type": "article",
"tickers": [
"AAPL.US"
],
"hashtags": [
"earnings"
],
"images": [],
"likes_count": 12,
"comments_count": 3,
"views_count": 200,
"shares_count": 1,
"license": 1,
"detail_url": "https://longbridge.com/topics/39304657",
"author": {
"member_id": "10086",
"name": "John",
"avatar": "https://example.com/avatar.jpg"
},
"created_at": "1742000000",
"updated_at": "1742000000"
}
]
}
}错误码
参见错误码文档。