Buckets:
AnonymousSpottedToad/human_verified_bucket / codebase /python /freqtrade_freqtrade /freqtrade /commands /plot_commands.py
| from typing import Any | |
| from freqtrade.enums import RunMode | |
| from freqtrade.exceptions import ConfigurationError | |
| def validate_plot_args(args: dict[str, Any]) -> None: | |
| if not args.get("datadir") and not args.get("config"): | |
| raise ConfigurationError( | |
| "You need to specify either `--datadir` or `--config` " | |
| "for plot-profit and plot-dataframe." | |
| ) | |
| def start_plot_dataframe(args: dict[str, Any]) -> None: | |
| """ | |
| Entrypoint for dataframe plotting | |
| """ | |
| # Import here to avoid errors if plot-dependencies are not installed. | |
| from freqtrade.configuration import setup_utils_configuration | |
| from freqtrade.plot.plotting import load_and_plot_trades | |
| validate_plot_args(args) | |
| config = setup_utils_configuration(args, RunMode.PLOT) | |
| load_and_plot_trades(config) | |
| def start_plot_profit(args: dict[str, Any]) -> None: | |
| """ | |
| Entrypoint for plot_profit | |
| """ | |
| # Import here to avoid errors if plot-dependencies are not installed. | |
| from freqtrade.configuration import setup_utils_configuration | |
| from freqtrade.plot.plotting import plot_profit | |
| validate_plot_args(args) | |
| config = setup_utils_configuration(args, RunMode.PLOT) | |
| plot_profit(config) | |
Xet Storage Details
- Size:
- 1.23 kB
- Xet hash:
- 254afd19b79e4611007d31ea92c54eb0b3c391338086dd685cc6cbacd59761e2
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.