rosacastillo
commited on
Commit
·
78ecbf5
1
Parent(s):
c61a1f8
layout adjustments
Browse files- app.py +6 -6
- tabs/invalid_markets.py +1 -1
- tabs/trades.py +1 -1
app.py
CHANGED
@@ -197,15 +197,15 @@ with demo:
|
|
197 |
with gr.Row():
|
198 |
gr.Markdown("# Trend of weekly trades")
|
199 |
with gr.Row():
|
200 |
-
with gr.Column(min_width=
|
201 |
qs_trades_by_week = plot_trades_per_market_by_week(
|
202 |
trades_df=trades_by_market, market_type="quickstart"
|
203 |
)
|
204 |
-
with gr.Column(min_width=
|
205 |
pearl_trades_by_week = plot_trades_per_market_by_week(
|
206 |
trades_df=trades_by_market, market_type="pearl"
|
207 |
)
|
208 |
-
with gr.Column(min_width=
|
209 |
all_trades_by_week = plot_trades_per_market_by_week(
|
210 |
trades_df=trades_by_market, market_type="all"
|
211 |
)
|
@@ -213,15 +213,15 @@ with demo:
|
|
213 |
with gr.Row():
|
214 |
gr.Markdown("# Percentage of winning trades per week")
|
215 |
with gr.Row():
|
216 |
-
with gr.Column(min_width=
|
217 |
qs_wtrades_by_week = plot_winning_trades_per_market_by_week(
|
218 |
trades_df=winning_trades_by_market, market_type="quickstart"
|
219 |
)
|
220 |
-
with gr.Column(min_width=
|
221 |
pearl_wtrades_by_week = plot_winning_trades_per_market_by_week(
|
222 |
trades_df=winning_trades_by_market, market_type="pearl"
|
223 |
)
|
224 |
-
with gr.Column(min_width=
|
225 |
all_wtrades_by_week = plot_winning_trades_per_market_by_week(
|
226 |
trades_df=winning_trades_by_market, market_type="all"
|
227 |
)
|
|
|
197 |
with gr.Row():
|
198 |
gr.Markdown("# Trend of weekly trades")
|
199 |
with gr.Row():
|
200 |
+
with gr.Column(min_width=380):
|
201 |
qs_trades_by_week = plot_trades_per_market_by_week(
|
202 |
trades_df=trades_by_market, market_type="quickstart"
|
203 |
)
|
204 |
+
with gr.Column(min_width=380):
|
205 |
pearl_trades_by_week = plot_trades_per_market_by_week(
|
206 |
trades_df=trades_by_market, market_type="pearl"
|
207 |
)
|
208 |
+
with gr.Column(min_width=380):
|
209 |
all_trades_by_week = plot_trades_per_market_by_week(
|
210 |
trades_df=trades_by_market, market_type="all"
|
211 |
)
|
|
|
213 |
with gr.Row():
|
214 |
gr.Markdown("# Percentage of winning trades per week")
|
215 |
with gr.Row():
|
216 |
+
with gr.Column(min_width=380):
|
217 |
qs_wtrades_by_week = plot_winning_trades_per_market_by_week(
|
218 |
trades_df=winning_trades_by_market, market_type="quickstart"
|
219 |
)
|
220 |
+
with gr.Column(min_width=380):
|
221 |
pearl_wtrades_by_week = plot_winning_trades_per_market_by_week(
|
222 |
trades_df=winning_trades_by_market, market_type="pearl"
|
223 |
)
|
224 |
+
with gr.Column(min_width=380):
|
225 |
all_wtrades_by_week = plot_winning_trades_per_market_by_week(
|
226 |
trades_df=winning_trades_by_market, market_type="all"
|
227 |
)
|
tabs/invalid_markets.py
CHANGED
@@ -17,7 +17,7 @@ def plot_daily_invalid_trades_plotly(invalid_trades: pd.DataFrame):
|
|
17 |
|
18 |
def plot_daily_dist_invalid_trades(invalid_trades: pd.DataFrame):
|
19 |
"""Function to paint the distribution of daily invalid trades, no matter which market"""
|
20 |
-
|
21 |
plt.figure(figsize=(25, 10))
|
22 |
plot2 = sns.histplot(data=invalid_trades, x="creation_date", kde=True)
|
23 |
plt.xlabel("Creation date")
|
|
|
17 |
|
18 |
def plot_daily_dist_invalid_trades(invalid_trades: pd.DataFrame):
|
19 |
"""Function to paint the distribution of daily invalid trades, no matter which market"""
|
20 |
+
sns.set_theme(palette="viridis")
|
21 |
plt.figure(figsize=(25, 10))
|
22 |
plot2 = sns.histplot(data=invalid_trades, x="creation_date", kde=True)
|
23 |
plt.xlabel("Creation date")
|
tabs/trades.py
CHANGED
@@ -4,7 +4,7 @@ import plotly.express as px
|
|
4 |
|
5 |
|
6 |
HEIGHT = 400
|
7 |
-
WIDTH =
|
8 |
|
9 |
|
10 |
def prepare_trades(trades_df: pd.DataFrame) -> pd.DataFrame:
|
|
|
4 |
|
5 |
|
6 |
HEIGHT = 400
|
7 |
+
WIDTH = 1100
|
8 |
|
9 |
|
10 |
def prepare_trades(trades_df: pd.DataFrame) -> pd.DataFrame:
|