Spaces:
Sleeping
Sleeping
Create fetch_forex_data.py
Browse files
utils/fetch_forex_data.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def fetch_forex_data(pair, timeframe):
|
| 2 |
+
# Dummy data for testing
|
| 3 |
+
import pandas as pd
|
| 4 |
+
import numpy as np
|
| 5 |
+
dates = pd.date_range(start="2025-01-01", periods=100, freq="15T")
|
| 6 |
+
prices = np.random.uniform(1.1, 1.2, len(dates))
|
| 7 |
+
return pd.DataFrame({"Date": dates, "Close": prices})
|