From 779cfc9e5d9ce7f50ba2ef5eaabcaf14c76904eb Mon Sep 17 00:00:00 2001 From: cardosofede Date: Thu, 23 May 2024 09:56:29 -0500 Subject: [PATCH] (feat) minor changes --- frontend/pages/config/pmm_dynamic/app.py | 2 +- .../visualization/executors_distribution.py | 23 ------------------- 2 files changed, 1 insertion(+), 24 deletions(-) diff --git a/frontend/pages/config/pmm_dynamic/app.py b/frontend/pages/config/pmm_dynamic/app.py index 1fd4ead..d7cb95a 100644 --- a/frontend/pages/config/pmm_dynamic/app.py +++ b/frontend/pages/config/pmm_dynamic/app.py @@ -81,4 +81,4 @@ if bt_results: st.write("---") render_close_types(bt_results["results"]) st.write("---") -render_save_config("pmm_simple", inputs) +render_save_config("pmm_dynamic", inputs) diff --git a/frontend/visualization/executors_distribution.py b/frontend/visualization/executors_distribution.py index 5f2220c..d5d9f81 100644 --- a/frontend/visualization/executors_distribution.py +++ b/frontend/visualization/executors_distribution.py @@ -78,29 +78,6 @@ def create_executors_distribution_traces(buy_spreads, sell_spreads, buy_amounts_ align='center' ) - # Draw circles around the total volume annotations - fig.add_shape( - type='circle', - xref='x', - yref='y', - x0=-np.mean(buy_spread_distributions) - 0.4, - y0=max_y - 0.05 * max_y, - x1=-np.mean(buy_spread_distributions) + 0.4, - y1=max_y + 0.05 * max_y, - line=dict(color=colors['buy']) - ) - - fig.add_shape( - type='circle', - xref='x', - yref='y', - x0=np.mean(sell_spread_distributions) - 0.4, - y0=max_y - 0.05 * max_y, - x1=np.mean(sell_spread_distributions) + 0.4, - y1=max_y + 0.05 * max_y, - line=dict(color=colors['sell']) - ) - # Apply the theme layout layout_settings = theme.get_default_layout("Market Maker Order Distribution") fig.update_layout(**layout_settings)