Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,8 +5,8 @@ import os
|
|
| 5 |
|
| 6 |
def create_portfolio_graph(amount):
|
| 7 |
# Calculate positions based on the provided amount
|
| 8 |
-
long_position = float(os.getenv(
|
| 9 |
-
short_position = float(os.getenv(
|
| 10 |
|
| 11 |
# Data for the bars
|
| 12 |
positions = ['Long Position', 'Short Position']
|
|
|
|
| 5 |
|
| 6 |
def create_portfolio_graph(amount):
|
| 7 |
# Calculate positions based on the provided amount
|
| 8 |
+
long_position = float(os.getenv('LONG_PORTION')) * amount
|
| 9 |
+
short_position = float(os.getenv('SHORT_PORTION')) * amount
|
| 10 |
|
| 11 |
# Data for the bars
|
| 12 |
positions = ['Long Position', 'Short Position']
|