2024-10-04 04:39:20 +00:00
|
|
|
from typing import Any
|
2021-06-20 13:18:41 +00:00
|
|
|
|
|
|
|
from freqtrade.enums import RunMode
|
|
|
|
|
|
|
|
|
2024-10-04 04:39:20 +00:00
|
|
|
def start_webserver(args: dict[str, Any]) -> None:
|
2021-06-20 13:18:41 +00:00
|
|
|
"""
|
|
|
|
Main entry point for webserver mode
|
|
|
|
"""
|
2023-08-17 07:15:59 +00:00
|
|
|
from freqtrade.configuration import setup_utils_configuration
|
2021-06-20 13:18:41 +00:00
|
|
|
from freqtrade.rpc.api_server import ApiServer
|
|
|
|
|
|
|
|
# Initialize configuration
|
2023-08-17 07:15:59 +00:00
|
|
|
|
|
|
|
config = setup_utils_configuration(args, RunMode.WEBSERVER)
|
2021-06-20 13:18:41 +00:00
|
|
|
ApiServer(config, standalone=True)
|