Spaces:
Running
Running
Update Interface_Graphique/services/market_service.py
Browse files
Interface_Graphique/services/market_service.py
CHANGED
|
@@ -34,6 +34,9 @@ def fetch_candles_yf(symbol: str, period: str = '1d', interval: str = '1m') -> p
|
|
| 34 |
df = df.sort_index()
|
| 35 |
return df[['Open', 'High', 'Low', 'Close']]
|
| 36 |
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
def _map_interval_to_alpha_vantage(interval: str) -> Optional[str]:
|
| 39 |
mapping = {
|
|
|
|
| 34 |
df = df.sort_index()
|
| 35 |
return df[['Open', 'High', 'Low', 'Close']]
|
| 36 |
|
| 37 |
+
def get_returns(symbol):
|
| 38 |
+
return [0.01] * 60
|
| 39 |
+
|
| 40 |
|
| 41 |
def _map_interval_to_alpha_vantage(interval: str) -> Optional[str]:
|
| 42 |
mapping = {
|