QuantumLearner commited on
Commit
3d982de
·
verified ·
1 Parent(s): b1f2349

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -5,12 +5,14 @@ import requests
5
  import pandas as pd
6
  import plotly.graph_objects as go
7
  import plotly.express as px
 
 
8
 
9
  # ----------------------------
10
  # Configuration
11
  # ----------------------------
12
 
13
- API_KEY = "b431ec171262073909ebf8c0c4afba71" # Hardcoded API Key
14
  API_ENDPOINT_INSIDER_TRADING = "https://financialmodelingprep.com/api/v4/insider-trading"
15
  API_ENDPOINT_TRADE_STATISTICS = "https://financialmodelingprep.com/api/v4/insider-roster-statistic" # Corrected endpoint
16
 
 
5
  import pandas as pd
6
  import plotly.graph_objects as go
7
  import plotly.express as px
8
+ import os
9
+
10
 
11
  # ----------------------------
12
  # Configuration
13
  # ----------------------------
14
 
15
+ API_KEY = os.getenv("FMP_API_KEY")
16
  API_ENDPOINT_INSIDER_TRADING = "https://financialmodelingprep.com/api/v4/insider-trading"
17
  API_ENDPOINT_TRADE_STATISTICS = "https://financialmodelingprep.com/api/v4/insider-roster-statistic" # Corrected endpoint
18