Class CreateTopicOptions


  • public class CreateTopicOptions
    extends Object
    Options for creating a topic
    • Constructor Detail

      • CreateTopicOptions

        public CreateTopicOptions​(String title,
                                  String body)
        Constructs a create-topic request.
        Parameters:
        title - topic title (required)
        body - topic body in Markdown format (required)
    • Method Detail

      • setTopicType

        public CreateTopicOptions setTopicType​(String topicType)
        Sets the content type: "article" (long-form) or "post" (short post, default).
        Parameters:
        topicType - content type
        Returns:
        this instance for chaining
      • setTickers

        public CreateTopicOptions setTickers​(String[] tickers)
        Sets the related stock tickers, format: {symbol}.{market}, max 10.
        Parameters:
        tickers - stock tickers
        Returns:
        this instance for chaining
      • setHashtags

        public CreateTopicOptions setHashtags​(String[] hashtags)
        Sets the hashtag names, max 5.
        Parameters:
        hashtags - hashtag names
        Returns:
        this instance for chaining