mirror of
https://github.com/aljazceru/hummingbot-dashboard.git
synced 2025-12-24 00:34:23 +01:00
(feat) initial base page
This commit is contained in:
@@ -19,6 +19,7 @@ dependencies:
|
||||
- jupyter
|
||||
- optuna
|
||||
- optuna-dashboard
|
||||
- pathlib
|
||||
- streamlit-ace
|
||||
- git+https://github.com/hummingbot/hbot-remote-client-py.git
|
||||
- git+https://github.com/hummingbot/docker-manager.git
|
||||
|
||||
30
main.py
30
main.py
@@ -1,19 +1,21 @@
|
||||
import streamlit as st
|
||||
from pathlib import Path
|
||||
from page import Page
|
||||
|
||||
apptitle = "High Frequency Trading"
|
||||
st.set_page_config(page_title=apptitle, page_icon="🦅", layout="wide")
|
||||
class HummingbotDashboardPage(Page):
|
||||
def __init__(self):
|
||||
super().__init__("Hummingbot Dashboard", Path("README.md").read_text())
|
||||
|
||||
st.title("Welcome!")
|
||||
st.write("---")
|
||||
st.code("💡 The purpose of this dashboard is to provide useful information for high frequency trading traders")
|
||||
st.write("")
|
||||
st.write("Watch this video to understand how the dashboard works! 🦅")
|
||||
c1, c2, c3 = st.columns([1, 6, 1])
|
||||
with c2:
|
||||
def write_page(self):
|
||||
super().write_page()
|
||||
st.code("💡 The purpose of this dashboard is to provide useful information for high frequency trading traders")
|
||||
st.write("")
|
||||
st.write("Watch this video to understand how the dashboard works! 🦅")
|
||||
c1, c2, c3 = st.columns([1, 6, 1])
|
||||
with c2:
|
||||
st.video("https://youtu.be/l6PWbN2pDK8")
|
||||
st.write("If you want to contribute, post your idea in #dev-channel of [hummingbot discord](https://discord.gg/CjxZtkrH)")
|
||||
st.write("---")
|
||||
|
||||
|
||||
|
||||
st.write("If you want to contribute, post your idea in #dev-channel of [hummingbot discord](https://discord.gg/CjxZtkrH)")
|
||||
|
||||
if __name__ == "__main__":
|
||||
page = HummingbotDashboardPage()
|
||||
page.write_page()
|
||||
16
page.py
Normal file
16
page.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import streamlit as st
|
||||
|
||||
class Page:
|
||||
def __init__(self, title, description, icon="🦅", layout="wide"):
|
||||
self.title = title
|
||||
self.description = description
|
||||
self.icon = icon
|
||||
self.layout = layout
|
||||
|
||||
def write_page(self):
|
||||
st.set_page_config(page_title=self.title, page_icon=self.icon, layout=self.layout)
|
||||
st.title(self.title)
|
||||
st.write("---")
|
||||
with st.expander("About This Page"):
|
||||
st.write(self.description)
|
||||
st.write("---")
|
||||
Reference in New Issue
Block a user