(feat) minor changes

This commit is contained in:
cardosofede
2024-05-23 09:56:29 -05:00
parent ca110ae86d
commit 779cfc9e5d
2 changed files with 1 additions and 24 deletions

View File

@@ -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)

View File

@@ -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)