(feat) normalize spreads distribution graph

This commit is contained in:
cardosofede
2024-05-21 17:41:56 -05:00
parent c0d5e47ef1
commit 358b69fe41
2 changed files with 5 additions and 3 deletions

View File

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

View File

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