Spaces:
Sleeping
Sleeping
Denis Mbugua
commited on
Commit
·
efe1cf7
1
Parent(s):
237e306
MCP server up
Browse files- app.py +2 -1
- mcp_params.py +0 -2
app.py
CHANGED
|
@@ -4,7 +4,7 @@ from util import css, js, Color
|
|
| 4 |
import pandas as pd
|
| 5 |
from trading_floor import names, lastnames, short_model_names
|
| 6 |
import plotly.express as px
|
| 7 |
-
from accounts import Account
|
| 8 |
from database import read_log
|
| 9 |
import threading
|
| 10 |
from trading_floor import run_every_n_minutes
|
|
@@ -82,6 +82,7 @@ class Trader:
|
|
| 82 |
|
| 83 |
def get_portfolio_value(self) -> str:
|
| 84 |
"""Calculate total portfolio value based on current prices"""
|
|
|
|
| 85 |
portfolio_value = self.account.calculate_portfolio_value() or 0.0
|
| 86 |
pnl = self.account.calculate_profit_loss(portfolio_value) or 0.0
|
| 87 |
color = "green" if pnl >= 0 else "red"
|
|
|
|
| 4 |
import pandas as pd
|
| 5 |
from trading_floor import names, lastnames, short_model_names
|
| 6 |
import plotly.express as px
|
| 7 |
+
from accounts import Account, INITIAL_BALANCE
|
| 8 |
from database import read_log
|
| 9 |
import threading
|
| 10 |
from trading_floor import run_every_n_minutes
|
|
|
|
| 82 |
|
| 83 |
def get_portfolio_value(self) -> str:
|
| 84 |
"""Calculate total portfolio value based on current prices"""
|
| 85 |
+
initial_value = INITIAL_BALANCE
|
| 86 |
portfolio_value = self.account.calculate_portfolio_value() or 0.0
|
| 87 |
pnl = self.account.calculate_profit_loss(portfolio_value) or 0.0
|
| 88 |
color = "green" if pnl >= 0 else "red"
|
mcp_params.py
CHANGED
|
@@ -28,8 +28,6 @@ trader_mcp_server_params = [
|
|
| 28 |
]
|
| 29 |
|
| 30 |
# The full set of MCP servers for the researcher: Fetch, Brave Search and Memory
|
| 31 |
-
|
| 32 |
-
|
| 33 |
def researcher_mcp_server_params(name: str):
|
| 34 |
return [
|
| 35 |
{"command": "uvx", "args": ["mcp-server-fetch"]},
|
|
|
|
| 28 |
]
|
| 29 |
|
| 30 |
# The full set of MCP servers for the researcher: Fetch, Brave Search and Memory
|
|
|
|
|
|
|
| 31 |
def researcher_mcp_server_params(name: str):
|
| 32 |
return [
|
| 33 |
{"command": "uvx", "args": ["mcp-server-fetch"]},
|