Spaces:
Paused
Paused
Update trade_analysis/data.py
Browse files- trade_analysis/data.py +2 -2
trade_analysis/data.py
CHANGED
|
@@ -64,10 +64,10 @@ class UnifiedDataProvider:
|
|
| 64 |
|
| 65 |
# Mapping from our names to Finnhub's resolution codes and time periods
|
| 66 |
timeframes = {
|
| 67 |
-
|
| 68 |
# "hourly": ("60", 28), # Hourly data for the last 2 years
|
| 69 |
# "15m": ("15", 7), # 15-minute data for the last 60 days
|
| 70 |
-
"5m": ("5", 2),
|
| 71 |
}
|
| 72 |
|
| 73 |
base_url = "https://finnhub.io/api/v1/stock/candle"
|
|
|
|
| 64 |
|
| 65 |
# Mapping from our names to Finnhub's resolution codes and time periods
|
| 66 |
timeframes = {
|
| 67 |
+
"daily": ("D", 90), # Daily data for the last year
|
| 68 |
# "hourly": ("60", 28), # Hourly data for the last 2 years
|
| 69 |
# "15m": ("15", 7), # 15-minute data for the last 60 days
|
| 70 |
+
# "5m": ("5", 2),
|
| 71 |
}
|
| 72 |
|
| 73 |
base_url = "https://finnhub.io/api/v1/stock/candle"
|