QAway-to commited on
Commit
2fcf62a
·
1 Parent(s): 1431d3a

Hz, visualisation +

Browse files
Files changed (1) hide show
  1. core/visualization.py +2 -2
core/visualization.py CHANGED
@@ -9,13 +9,13 @@ Purpose: Contains visualization utilities such as plotting charts for portfolio
9
  import matplotlib.pyplot as plt
10
  import requests
11
  from typing import Optional
12
- from config import TRADELINK_API_URL, DEBUG
13
 
14
 
15
  def build_alpha_chart(portfolio_id: str) -> Optional[plt.Figure]:
16
  """Fetch alphaBTC series and build a matplotlib figure."""
17
  url = (
18
- f"{TRADELINK_API_URL}/portfolio/get?"
19
  f"portfolioId={portfolio_id}&extended=1&declaration=1&step=day&lang=en&incViews=1"
20
  )
21
  headers = {"User-Agent": "Mozilla/5.0", "Accept": "application/json"}
 
9
  import matplotlib.pyplot as plt
10
  import requests
11
  from typing import Optional
12
+ from config import EXTERNAL_API_URL, DEBUG
13
 
14
 
15
  def build_alpha_chart(portfolio_id: str) -> Optional[plt.Figure]:
16
  """Fetch alphaBTC series and build a matplotlib figure."""
17
  url = (
18
+ f"{EXTERNAL_API_URL}/portfolio/get?"
19
  f"portfolioId={portfolio_id}&extended=1&declaration=1&step=day&lang=en&incViews=1"
20
  )
21
  headers = {"User-Agent": "Mozilla/5.0", "Accept": "application/json"}