DataSource
DataSource
Close
property
The close prices of the data.
High
property
The high prices of the data.
Low
property
The low prices of the data.
Open
property
The open prices of the data.
Timestamp
property
The timestamps of the data.
Volume
property
The volume of the data.
__init__(name, df=None)
DataSource is a class that provides access to data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The name of the data source. |
required |
df
|
DataFrame | None
|
The data frame to use as the data source. If None, an empty data source will be created. |
None
|
YahooDataSource
Bases: DataSource
__init__(ticker, period='1y', start=None, end=None, interval='1d')
YahooDataSource is a class that provides access to Yahoo Finance data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ticker
|
str
|
The ticker symbol of the stock to retrieve data for. |
required |
period
|
str
|
The period of the data to retrieve. Can be "1d", "5d", "1mo", "3mo", "6mo", "1y", "2y", "5y", "10y", "ytd", "max". |
'1y'
|
start
|
str | None
|
The start date of the data to retrieve. If None, the start date will be the first date available. |
None
|
end
|
str | None
|
The end date of the data to retrieve. If None, the end date will be the last date available. |
None
|
interval
|
str
|
The interval of the data to retrieve. Can be "1d", "5d", "1mo", "3mo", "6mo", "1y", "2y", "5y", "10y", "ytd", "max". |
'1d'
|