Skip to main content

historical

View historical price of stocks that meet preset

Source Code: [link]

openbb.stocks.screener.historical(preset_loaded: str = "top_gainers", limit: int = 10, start_date: str = "2022-05-29", type_candle: str = "a", normalize: bool = True)

Parameters

NameTypeDescriptionDefaultOptional
preset_loadedstrPreset loaded to filter for tickerstop_gainersTrue
limitintNumber of stocks to display10True
start_datestrStart date to display historical data, in YYYY-MM-DD format2022-05-29True
type_candlestrType of candle to displayaTrue
normalizeboolBoolean to normalize all stock prices using MinMaxTrueTrue

Returns

TypeDescription
pd.DataFrameDataframe of the screener