Skip to Content

Create Topic

Create a new community topic. Two content types are supported:

Typetitlebody formatNotes
post (default)OptionalPlain text onlyMarkdown syntax (e.g. **bold**, # heading) is NOT rendered — it appears as literal characters, similar to a tweet.
articleRequiredMarkdownThe server converts Markdown to HTML for display. Supports headers, tables, bold, code blocks, etc.

Only users who have opened a Longbridge account and hold assets are allowed to publish community topics and replies via Longbridge Developers API or CLI. Returns 403 otherwise.

Stock symbols mentioned in the body (e.g. `700.HK`, `TSLA.US`) are automatically recognized and linked as related stocks by the platform. Use `tickers` to associate additional symbols not explicitly mentioned in the body.

⚠️ Do not abuse symbol linking to associate unrelated stocks. Content moderation may restrict publishing or mute the account.

Rate limit: Max 3 topics per user per minute and 10 per 24 hours. Exceeding the limit returns 429.

⚠️ Rate limit thresholds are for reference only and may be adjusted by the platform at any time.

CLIInstall CLI

bash
# publish a topic for Tesla
longbridge create-topic TSLA.US "Tesla Q1 earnings analysis"
# publish a topic for Apple
longbridge create-topic AAPL.US "Apple WWDC preview"

Request

HTTP MethodPOST
HTTP URL/v1/content/topics

Request Body

NameTypeRequiredDescription
titlestringYES (for article)Topic title. Required when topic_type is article; optional for post.
bodystringYESTopic body. \n- For post: plain text only — Markdown is not rendered.\n- For article: Markdown is supported.
topic_typestringNOContent type: post (plain text, default) or article (Markdown).
tickersstring[]NORelated security symbols, format {symbol}.{market} (e.g. ["AAPL.US", "700.HK"]). Maximum 10. Note: Symbols mentioned in the body (e.g. 700.HK, TSLA.US) are automatically recognized and linked by the platform. Use tickers to associate additional symbols not explicitly mentioned in the body.
hashtagsstring[]NOHashtag names (e.g. ["earnings", "fed"]). Maximum 5.

Request Example

Response

Response Headers

  • Content-Type: application/json

Response Example

json
{
  "code": 0,
  "message": "success",
  "data": {
    "item": {
      "id": "39304657",
      "title": "My View on AAPL",
      "topic_type": "article",
      "tickers": ["AAPL.US"],
      "hashtags": ["earnings"],
      "created_at": "1742000000"
    }
  }
}

Response Status

StatusDescriptionSchema
200Successcreate_topic_response
403Forbidden — user has not opened a Longbridge account or has no assetsNone
429Too Many Requests — rate limit exceeded (3/min or 10/24h); retry laterNone
500Internal errorNone

Schemas

create_topic_response

NameTypeRequiredDescription
itemobjecttrueNewly created topic details
∟ idstringtrueTopic ID
∟ titlestringfalseTopic title
∟ descriptionstringfalsePlain-text summary (auto-generated from body)
∟ bodystringfalseFull body text (Markdown for article)
∟ topic_typestringfalseTopic type. One of article, post
∟ tickersstring[]falseAssociated security symbols
∟ hashtagsstring[]falseAssociated hashtag names
∟ imagesobject[]falseImage list
∟∟ urlstringfalseOriginal image URL
∟∟ smstringfalseSmall thumbnail URL
∟∟ lgstringfalseLarge thumbnail URL
∟ likes_countint32falseNumber of likes
∟ comments_countint32falseNumber of replies
∟ views_countint32falseNumber of views
∟ shares_countint32falseNumber of shares
∟ detail_urlstringfalseDirect URL to the topic
∟ authorobjectfalseAuthor information
∟∟ member_idstringfalseAuthor member ID
∟∟ namestringfalseAuthor display name
∟∟ avatarstringfalseAuthor avatar URL
∟ created_atstringtrueUnix timestamp (seconds) when the topic was created
∟ updated_atstringfalseUnix timestamp (seconds) of last update