Commit
·
e20d107
1
Parent(s):
974fb3c
cleaning metrics file
Browse files- tabs/metrics.py +0 -14
tabs/metrics.py
CHANGED
@@ -225,20 +225,6 @@ def plot_average_roi_per_market_by_week(trades_df: pd.DataFrame) -> gr.LinePlot:
|
|
225 |
)
|
226 |
|
227 |
|
228 |
-
def plot_tool_metrics(wins_df: pd.DataFrame, winning_selector: str) -> gr.Plot:
|
229 |
-
print("under construction")
|
230 |
-
if winning_selector == "losses":
|
231 |
-
yaxis_title = "Nr of mech calls per trade"
|
232 |
-
elif winning_selector == "win_perc":
|
233 |
-
column_name = "roi"
|
234 |
-
yaxis_title = "ROI (net profit/cost)"
|
235 |
-
elif winning_selector == "wins":
|
236 |
-
yaxis_title = "Collateral amount per trade (xDAI)"
|
237 |
-
else: # "total_request"
|
238 |
-
column_name = metric_name
|
239 |
-
yaxis_title = "Gross profit per trade (xDAI)"
|
240 |
-
|
241 |
-
|
242 |
def get_trade_metrics_text() -> gr.Markdown:
|
243 |
metric_text = """
|
244 |
## Description of the graph
|
|
|
225 |
)
|
226 |
|
227 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
228 |
def get_trade_metrics_text() -> gr.Markdown:
|
229 |
metric_text = """
|
230 |
## Description of the graph
|