stable/freqtrade/rpc/api_server/deps.py

18 lines
300 B
Python
Raw Normal View History

2021-01-02 11:54:40 +00:00
from typing import Any, Dict
from freqtrade.rpc.rpc import RPC
from .webserver import ApiServer
2021-01-02 11:54:40 +00:00
def get_rpc() -> RPC:
return ApiServer._rpc
2021-01-02 11:54:40 +00:00
def get_config() -> Dict[str, Any]:
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']