--- title: wsb description: This page provides documentation for the OpenBB 'wsb' function, which retrieves reddit posts from wsb. The page includes details about parameters and returned data in the form of a pandas Dataframe. keywords: - wsb - OpenBB-finance - reddit_model.py - openbb.stocks.ba.wsb - reddit submissions - Parameters - Limit - New - Returns --- import HeadTitle from '@site/src/components/General/HeadTitle.tsx'; Get wsb posts [Source: reddit]. Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/behavioural_analysis/reddit_model.py#L602)] ```python openbb.stocks.ba.wsb(limit: int = 10, new: bool = False) ``` --- ## Parameters | Name | Type | Description | Default | Optional | | ---- | ---- | ----------- | ------- | -------- | | limit | int | Number of posts to get, by default 10 | 10 | True | | new | bool | Flag to sort by new instead of hot, by default False | False | True | --- ## Returns | Type | Description | | ---- | ----------- | | pd.DataFrame | Dataframe of reddit submissions | ---