Module serve
Functions
def format_lim(a: Optional[float]) ‑> str-
Replace a with N/A if a is None. Else, it returns the float with a $ sign.
Args:
a: FloatReturns:
- str
Classes
class EmailRenderer (style: str = 'light')-
It renders only the trading signals in a html file. As opposed to the HTMLRenderer which renders the performances, the portfolio and other useful stats, this renderer is more lightweight and is designed to be sent by email. This being said, it is designed to be viewed on mobile devices. It also looks good on desktop though. The three styles are: - light: A light theme - dark: A dark theme (Darcula style) - rich: Another dark theme with another color palette
Args:
template_path: The path to the template directory. The directory should contain a file named main.htmlIt should also contain a directory named components that contains all the components that will be used in themain template. The css files used as themes should be in the main directory or in a styles subdirectory. Thenames of the files are used as the theme names. Same thing for the scripts.Parent