mirror of
https://github.com/aljazceru/hummingbot-dashboard.git
synced 2026-01-08 16:04:23 +01:00
(feat) refactor dman maker controller page
This commit is contained in:
@@ -3,6 +3,7 @@ import streamlit as st
|
||||
from CONFIG import BACKEND_API_HOST, BACKEND_API_PORT
|
||||
from backend.services.backend_api_client import BackendAPIClient
|
||||
from frontend.components.backtesting import backtesting_section
|
||||
from frontend.components.config_loader import get_default_config_loader
|
||||
from frontend.components.dca_distribution import get_dca_distribution_inputs
|
||||
from frontend.components.save_config import render_save_config
|
||||
from frontend.pages.config.dman_maker_v2.user_inputs import user_inputs
|
||||
@@ -20,7 +21,7 @@ backend_api_client = BackendAPIClient.get_instance(host=BACKEND_API_HOST, port=B
|
||||
|
||||
# Page content
|
||||
st.text("This tool will let you create a config for D-Man Maker V2 and upload it to the BackendAPI.")
|
||||
st.write("---")
|
||||
get_default_config_loader("dman_maker_v2")
|
||||
|
||||
inputs = user_inputs()
|
||||
with st.expander("Executor Distribution:", expanded=True):
|
||||
@@ -51,6 +52,7 @@ st.plotly_chart(fig, use_container_width=True)
|
||||
|
||||
# Combine inputs and dca_inputs into final config
|
||||
config = {**inputs, **dca_inputs}
|
||||
st.session_state["default_config"] = config
|
||||
bt_results = backtesting_section(config, backend_api_client)
|
||||
if bt_results:
|
||||
fig = create_backtesting_figure(
|
||||
|
||||
Reference in New Issue
Block a user