Historical
Get historical data from Investing.com.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
investing_id |
int
|
Investing.com's ID for the asset. |
required |
from_date |
Union[str, None]
|
Initial date to retrieve historical data (formatted as m/d/Y). Defaults to None. |
None
|
to_date |
Union[str, None]
|
Final date to retrieve historical data (formatted as m/d/Y). Defaults to None,
unless |
None
|
interval |
Literal[1, 5, 15, 30, 60, 300, 'D', 'W', 'M']
|
Interval between each historical data point. Defaults to "D". |
'D'
|
Note
If no dates are introduced, the function will retrieve the last 30 days of historical data.
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
A dictionary with the historical data from Investing.com. |
Source code in investiny/historical.py
Last update:
2022-10-18
Created: 2022-10-18
Created: 2022-10-18