Files
hummingbot-dashboard/main.py
2023-07-22 16:42:10 -04:00

44 lines
1.4 KiB
Python

import streamlit as st
from pathlib import Path
from st_pages import Page, show_pages
title = "Hummingbot Dashboard"
icon = "📊"
st.set_page_config(
page_title=title,
page_icon=icon,
layout="wide",
)
st.title(f"{icon} {title}")
current_directory = Path(__file__).parent
readme_path = current_directory / "README.md"
with st.expander("About This Page"):
st.write(readme_path.read_text())
show_pages(
[
Page("main.py", "Hummingbot Dashboard", "📊"),
Page("pages/strategy_performance/app.py", "Strategy Performance", "🚀"),
# # The pages appear in the order you pass them
# Page("example_app/example_four.py", "Example Four", "📖"),
# Page("example_app/example_two.py", "Example Two", "✏️"),
# # Will use the default icon and name based on the filename if you don't
# # pass them
# Page("example_app/example_three.py"),
# Page("example_app/example_five.py", "Example Five", "🧰"),
]
)
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:
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("---")