I would like to pull historical data for price, dividend yield, ROIC, short interest, average daily volume, and others using DatastreamPy in Python for all index constituents (RICs: .BVSP, .MLCX, .SMLL) over the last 6 months. Since some stocks were delisted and others were added during this period, the request should include all of them to avoid survivorship bias.
Furthermore, would variables such as average daily volume, short interest, and price come adjusted for corporate actions, such as splits/reverse splits and distributions (dividends/proceeds)?
I tried the code below for prices, but without success.
data = ds.get_data(tickers='.BVSP|L',
fields=['P', 'RI', 'VO', 'SHORT_INTEREST'],
kind=1)
thanks in advance,
Rafael