Description
Hello,
For all intents and purposes, since the latest library version upgrades, this causes futureWarnings in fetch_historical_prices_by_epic, fetch_historical_prices_by_epic_and_num_points and fetch_historical_prices_by_epic_and_date_range
functions located in trading_ig\rest.py :
...\trading_ig\rest.py:1801: FutureWarning: Downcasting object dtype arrays on .fillna, .ffill, .bfill is deprecated and will change in a future version. Call result.infer_objects(copy=False) instead. To opt-in to the future behavior, set pd.set_option('future.no_silent_downcasting', True)
data["prices"] = data["prices"].fillna(value=np.nan)
...\trading_ig\rest.py:1823: FutureWarning: Downcasting object dtype arrays on .fillna, .ffill, .bfill is deprecated and will change in a future version. Call result.infer_objects(copy=False) instead. To opt-in to the future behavior, set pd.set_option('future.no_silent_downcasting', True)
data["prices"] = data["prices"].fillna(value=np.nan)
...\trading_ig\rest.py:1887: FutureWarning: Downcasting object dtype arrays on .fillna, .ffill, .bfill is deprecated and will change in a future version. Call result.infer_objects(copy=False) instead. To opt-in to the future behavior, set pd.set_option('future.no_silent_downcasting', True)
data["prices"] = data["prices"].fillna(value=np.nan)
Best regards