Skip to main content

redditsent

Find posts related to a specific search term in Reddit.

Source Code: [link]

openbb.stocks.ba.redditsent(symbol: str, limit: int = 100, sortby: str = "relevance", time_frame: str = "week", full_search: bool = True, subreddits: str = "all")

Parameters

NameTypeDescriptionDefaultOptional
symbolstrTicker symbol to search forNoneFalse
limitintNumber of posts to get per subreddit100True
sortbystrSearch type (Possibilities: "relevance", "hot", "top", "new", or "comments")relevanceTrue
time_framestrRelative time of post (Possibilities: "hour", "day", "week", "month", "year", "all")weekTrue
full_searchboolEnable comprehensive search for tickerTrueTrue
subredditsstrComma-separated list of subredditsallTrue

Returns

TypeDescription
Dataframe of submissions related to the search term,
List of polarity scores,
Average polarity score.