Files
hummingbot-dashboard/frontend/data_viz/theme.py
2024-05-16 13:21:29 -04:00

32 lines
1.1 KiB
Python

def get_default_layout(title, height=600, width=800):
return {
"template": "plotly_dark",
"title": title,
"plot_bgcolor": 'rgba(0, 0, 0, 0)', # Transparent background
"paper_bgcolor": 'rgba(0, 0, 0, 0.1)', # Lighter shade for the paper
"font": {"color": 'white', "size": 12}, # Consistent font color and size
"height": height,
"width": width,
"margin": {"l": 20, "r": 20, "t": 50, "b": 20},
"xaxis": {"title": "Spread (%)"},
"yaxis": {"title": "Amount (Quote)"}
}
def get_color_scheme():
return {
'upper_band': '#4682B4',
'middle_band': '#FFD700',
'lower_band': '#32CD32',
'buy_signal': '#1E90FF',
'sell_signal': '#FF0000',
'buy': '#32CD32', # Green for buy orders
'sell': '#FF6347', # Tomato red for sell orders
'candlestick_increasing': '#2ECC71',
'candlestick_decreasing': '#E74C3C',
'macd_line': '#FFA500', # Orange
'macd_signal': '#800080', # Purple
'macd_histogram_positive': '#32CD32', # Green
'macd_histogram_negative': '#FF6347' # Red
}