get_asset_candle_list
Returns the candles of an asset as a pandas DataFrame.
This function is not compatible with options.
Syntax
Fields
Description
symbol(str)
Symbol of stock or crypto asset. Defaults to first symbol in watchlist
interval(str)
Interval of data. Defaults to the interval of the algorithm
def get_asset_candle_list(self, symbol: str = None, interval=None) -> pd.DataFrame:
Returns
Returns the candles of an asset as a DataFrame with the following columns:
open
high
low
close
volume
datetime
float
float
float
float
int
The index is a datetime object.
Raises
- An
Exception
is raised if the symbol is not in the watchlist.