Devendra21 commited on
Commit
4b691a4
·
verified ·
1 Parent(s): c1d8d1c

Update utils/forex_signals.py

Browse files
Files changed (1) hide show
  1. utils/forex_signals.py +1 -1
utils/forex_signals.py CHANGED
@@ -24,7 +24,7 @@ def calculate_bollinger_bands(data, window=20, num_std_dev=2):
24
  return upper_band, lower_band
25
 
26
  # Function to fetch Forex data from Financial Modeling Prep API
27
- def fetch_forex_data(pair, start_date='2020-01-01', end_date='2025-01-01', api_key='your_api_key'):
28
  url = f'https://financialmodelingprep.com/api/v3/historical-price-full/{pair}?from={start_date}&to={end_date}&apikey={api_key}'
29
  response = requests.get(url)
30
  data = response.json()
 
24
  return upper_band, lower_band
25
 
26
  # Function to fetch Forex data from Financial Modeling Prep API
27
+ def fetch_forex_data(pair, start_date='2020-01-01', end_date='2025-01-01', api_key='89SEdLScHxHk6j8J9OoH4sLFS3Mri4oW'):
28
  url = f'https://financialmodelingprep.com/api/v3/historical-price-full/{pair}?from={start_date}&to={end_date}&apikey={api_key}'
29
  response = requests.get(url)
30
  data = response.json()