mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
16 lines
416 B
Python
16 lines
416 B
Python
|
from typing import Any, Dict
|
||
|
|
||
|
from freqtrade.enums import RunMode
|
||
|
|
||
|
|
||
|
def start_webserver(args: Dict[str, Any]) -> None:
|
||
|
"""
|
||
|
Main entry point for webserver mode
|
||
|
"""
|
||
|
from freqtrade.configuration import Configuration
|
||
|
from freqtrade.rpc.api_server import ApiServer
|
||
|
|
||
|
# Initialize configuration
|
||
|
config = Configuration(args, RunMode.WEBSERVER).get_config()
|
||
|
ApiServer(config, standalone=True)
|