modernai commited on
Commit
ed69b7c
·
verified ·
1 Parent(s): 2f65dd5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -5,11 +5,11 @@ import os
5
 
6
  def create_portfolio_graph(amount):
7
  # Calculate positions based on the provided amount
8
- long_position = os.environ['LONG_PORTION'] * amount
9
- short_position = os.environ['SHORT_PORTION']* amount
10
 
11
  # Data for the bars
12
- positions = ['This is your Long Position', 'This is your Short Position']
13
  percentages = [long_position, short_position]
14
 
15
  data = pd.DataFrame({'Position': positions, 'Percentage': percentages})
 
5
 
6
  def create_portfolio_graph(amount):
7
  # Calculate positions based on the provided amount
8
+ long_position = os.getenv['LONG_PORTION'] * amount
9
+ short_position = os.getenv['SHORT_PORTION']* amount
10
 
11
  # Data for the bars
12
+ positions = ['Long Position', 'Short Position']
13
  percentages = [long_position, short_position]
14
 
15
  data = pd.DataFrame({'Position': positions, 'Percentage': percentages})