創建討論回覆
在指定討論下發布回覆,支持嵌套回覆已有回覆。
僅限 Longbridge 開戶且持有資產 的用戶才允許通過 Longbridge Developers 的 API 或 CLI 發布社區討論和回覆。否則返回 403。
正文格式: 僅支持純文本,不支持 HTML 或 Markdown。
正文中提到的標的代碼(如 `700.HK`、`TSLA.US`)會被平台自動識別並關聯為相關標的。
⚠️ 請勿濫用此功能關聯與內容無關的標的,否則後台內容運營可能會限制發布,甚至有可能禁言。
頻率限制: 同一用戶在同一討論下,前 3 條無間隔限制;此後每條須與上一條保持遞增間隔(3 s → 5 s → 8 s → 13 s → 21 s → 34 s → 55 s 封頂),超出限制返回 429。
⚠️ 以上頻率限制規則僅供參考,平台可能隨時進行內部調整。
CLI安裝 CLI
bash
longbridge create-topic-reply 6993508780031016960 --body "分析得好!"SDK Links
Request
| HTTP Method | POST |
| HTTP URL | /v1/content/topics/:topic_id/comments |
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| topic_id | string | YES | 討論 ID,如 6993508780031016960 |
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| body | string | YES | 回覆正文,僅支持純文本。正文中提到的標的代碼會被平台自動識別並關聯。 |
| reply_to_id | string | NO | 被回覆的回覆 ID;不填或填 "0" 表示發頂層回覆,填入有效 ID 則嵌套在該回覆下。 |
Request Example
Response
Response Headers
- Content-Type: application/json
Response Example
json
{
"code": 0,
"message": "success",
"data": {
"item": {
"id": "7001234567890123460",
"topic_id": "6993508780031016960",
"body": "分析得很好!",
"reply_to_id": "0",
"author": {
"member_id": "10086",
"name": "張三",
"avatar": "https://example.com/avatar.jpg"
},
"images": [],
"likes_count": 0,
"comments_count": 0,
"created_at": "1742002000"
}
}
}Response Status
| Status | Description | Schema |
|---|---|---|
| 200 | 返回成功 | create_reply_response |
| 403 | 權限不足 | 用戶未開戶或無資產 |
| 429 | 頻率超限 | 超過同討論下的發帖頻率限制,請等待後重試 |
| 500 | 內部錯誤 | None |
Schemas
create_reply_response
| Name | Type | Required | Description |
|---|---|---|---|
| item | object | true | 新建回覆詳情 |
| ∟ id | string | true | 回覆 ID |
| ∟ topic_id | string | true | 所屬討論 ID |
| ∟ body | string | false | 回覆正文(純文本) |
| ∟ reply_to_id | string | false | 父回覆 ID,"0" 表示頂層回覆 |
| ∟ author | object | false | 作者信息 |
| ∟∟ member_id | string | false | 作者 member ID |
| ∟∟ name | string | false | 作者暱稱 |
| ∟∟ avatar | string | false | 作者頭像 URL |
| ∟ images | object[] | false | 附圖列表 |
| ∟∟ url | string | false | 原始圖片 URL |
| ∟∟ sm | string | false | 小縮略圖 URL |
| ∟∟ lg | string | false | 大縮略圖 URL |
| ∟ likes_count | int32 | false | 點讚數 |
| ∟ comments_count | int32 | false | 嵌套回覆數 |
| ∟ created_at | string | true | 創建時間,Unix 時間戳(秒) |