diff --git a/frontend/pages/config/dman_maker_v2/app.py b/frontend/pages/config/dman_maker_v2/app.py index 0053c98..65e6546 100644 --- a/frontend/pages/config/dman_maker_v2/app.py +++ b/frontend/pages/config/dman_maker_v2/app.py @@ -24,7 +24,7 @@ st.write("---") inputs = user_inputs() with st.expander("Executor Distribution:", expanded=True): - fig = create_executors_distribution_traces(inputs) + fig = create_executors_distribution_traces(inputs["buy_spreads"], inputs["sell_spreads"], inputs["buy_amounts_pct"], inputs["sell_amounts_pct"], inputs["total_amount_quote"]) st.plotly_chart(fig, use_container_width=True) dca_inputs = get_dca_distribution_inputs() diff --git a/frontend/pages/config/pmm_simple/app.py b/frontend/pages/config/pmm_simple/app.py index 5040909..a20886f 100644 --- a/frontend/pages/config/pmm_simple/app.py +++ b/frontend/pages/config/pmm_simple/app.py @@ -20,8 +20,10 @@ backend_api_client = BackendAPIClient.get_instance(host=BACKEND_API_HOST, port=B st.text("This tool will let you create a config for PMM Simple, backtest and upload it to the Backend API.") # Get user inputs inputs = user_inputs() -fig = create_executors_distribution_traces(inputs) -st.plotly_chart(fig, use_container_width=True) + +with st.expander("Executor Distribution:", expanded=True): + fig = create_executors_distribution_traces(inputs) + st.plotly_chart(fig, use_container_width=True) bt_results = backtesting_section(inputs, backend_api_client) if bt_results: