2021-01-02 11:54:40 +00:00
|
|
|
from typing import Any, Dict
|
|
|
|
|
|
|
|
from freqtrade.rpc.rpc import RPC
|
|
|
|
|
2020-12-25 12:08:25 +00:00
|
|
|
from .webserver import ApiServer
|
|
|
|
|
|
|
|
|
2021-01-02 11:54:40 +00:00
|
|
|
def get_rpc() -> RPC:
|
2020-12-25 12:08:25 +00:00
|
|
|
return ApiServer._rpc
|
|
|
|
|
|
|
|
|
2021-01-02 11:54:40 +00:00
|
|
|
def get_config() -> Dict[str, Any]:
|
2020-12-25 12:08:25 +00:00
|
|
|
return ApiServer._config
|
2020-12-27 14:24:49 +00:00
|
|
|
|
|
|
|
|
2021-01-02 11:54:40 +00:00
|
|
|
def get_api_config() -> Dict[str, Any]:
|
2020-12-27 14:24:49 +00:00
|
|
|
return ApiServer._config['api_server']
|