-
-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from hummingbot/feat/master_bot_conf
Feat/master bot conf
- Loading branch information
Showing
60 changed files
with
410 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
### Description | ||
|
||
This page helps you deploy and manage Hummingbot instances: | ||
|
||
- Starting and stopping Hummingbot Broker | ||
- Creating, starting and stopping bot instances | ||
- Managing strategy and script files that instances run | ||
- Fetching status of running instances | ||
|
||
### Maintainers | ||
|
||
This page is maintained by Hummingbot Foundation as a template other pages: | ||
|
||
* [cardosfede](https://github.com/cardosfede) | ||
* [fengtality](https://github.com/fengtality) | ||
|
||
### Wiki | ||
|
||
See the [wiki](https://github.com/hummingbot/dashboard/wiki/%F0%9F%90%99-Bot-Orchestration) for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import glob | ||
import os | ||
from types import SimpleNamespace | ||
import streamlit as st | ||
from streamlit_elements import elements, mui | ||
|
||
import constants | ||
from ui_components.dashboard import Dashboard | ||
from ui_components.editor import Editor | ||
from ui_components.launch_master_bot_card import LaunchMasterBotCard | ||
from ui_components.master_conf_file_explorer import MasterConfFileExplorer | ||
from utils.st_utils import initialize_st_page | ||
|
||
|
||
initialize_st_page(title="Credentials", icon="🗝️", initial_sidebar_state="collapsed") | ||
|
||
|
||
if "mc_board" not in st.session_state: | ||
board = Dashboard() | ||
mc_board = SimpleNamespace( | ||
dashboard=board, | ||
launch_master_bot=LaunchMasterBotCard(board, 0, 0, 12, 2), | ||
file_explorer=MasterConfFileExplorer(board, 0, 4, 3, 7), | ||
editor=Editor(board, 4, 4, 9, 7), | ||
) | ||
st.session_state.mc_board = mc_board | ||
|
||
else: | ||
mc_board = st.session_state.mc_board | ||
|
||
# Add new tabs | ||
for tab_name, content in mc_board.file_explorer.tabs.items(): | ||
if tab_name not in mc_board.editor.tabs: | ||
mc_board.editor.add_tab(tab_name, content["content"], content["language"]) | ||
|
||
# Remove deleted tabs | ||
for tab_name in list(mc_board.editor.tabs.keys()): | ||
if tab_name not in mc_board.file_explorer.tabs: | ||
mc_board.editor.remove_tab(tab_name) | ||
|
||
|
||
|
||
with elements("file_manager"): | ||
with mui.Paper(elevation=3, style={"padding": "2rem"}, spacing=[2, 2], container=True): | ||
with mc_board.dashboard(): | ||
mc_board.launch_master_bot() | ||
mc_board.file_explorer() | ||
mc_board.editor() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.