Spaces:
Sleeping
Sleeping
| from enum import Enum | |
| import threading | |
| stop_event = threading.Event() | |
| css = """ | |
| .positive-pnl { | |
| color: green !important; | |
| font-weight: bold; | |
| } | |
| .positive-bg { | |
| background-color: green !important; | |
| font-weight: bold; | |
| } | |
| .negative-bg { | |
| background-color: red !important; | |
| font-weight: bold; | |
| } | |
| .negative-pnl { | |
| color: red !important; | |
| font-weight: bold; | |
| } | |
| .dataframe-fix-small .table-wrap { | |
| min-height: 150px; | |
| max-height: 150px; | |
| } | |
| .dataframe-fix .table-wrap { | |
| min-height: 200px; | |
| max-height: 200px; | |
| } | |
| footer{display:none !important} | |
| """ | |
| js = """ | |
| function refresh() { | |
| const url = new URL(window.location); | |
| if (url.searchParams.get('__theme') !== 'dark') { | |
| url.searchParams.set('__theme', 'dark'); | |
| window.location.href = url.href; | |
| } | |
| } | |
| """ | |
| class Color(Enum): | |
| RED = "#dd0000" | |
| GREEN = "#00dd00" | |
| YELLOW = "#dddd00" | |
| BLUE = "#0000ee" | |
| MAGENTA = "#aa00dd" | |
| CYAN = "#00dddd" | |
| WHITE = "#87CEEB" | |