chore: fix unused imports
This commit is contained in:
@@ -161,7 +161,7 @@ def get_strategy(
|
|||||||
strategy_obj.ft_load_hyper_params()
|
strategy_obj.ft_load_hyper_params()
|
||||||
except OperationalException:
|
except OperationalException:
|
||||||
raise HTTPException(status_code=404, detail="Strategy not found")
|
raise HTTPException(status_code=404, detail="Strategy not found")
|
||||||
except Exception as e:
|
except Exception:
|
||||||
logger.exception("Unexpected error while loading strategy '%s'.", strategy)
|
logger.exception("Unexpected error while loading strategy '%s'.", strategy)
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
status_code=502,
|
status_code=502,
|
||||||
|
|||||||
@@ -1,19 +1,15 @@
|
|||||||
import logging
|
import logging
|
||||||
from copy import deepcopy
|
|
||||||
|
|
||||||
from fastapi import APIRouter, Depends
|
from fastapi import APIRouter, Depends
|
||||||
from fastapi.exceptions import HTTPException
|
|
||||||
|
|
||||||
from freqtrade.data.history.datahandlers import get_datahandler
|
from freqtrade.data.history.datahandlers import get_datahandler
|
||||||
from freqtrade.enums import CandleType, TradingMode
|
from freqtrade.enums import CandleType, TradingMode
|
||||||
from freqtrade.exceptions import OperationalException
|
|
||||||
from freqtrade.rpc.api_server.api_schemas import (
|
from freqtrade.rpc.api_server.api_schemas import (
|
||||||
AvailablePairs,
|
AvailablePairs,
|
||||||
ExchangeListResponse,
|
ExchangeListResponse,
|
||||||
FreqAIModelListResponse,
|
FreqAIModelListResponse,
|
||||||
HyperoptLossListResponse,
|
HyperoptLossListResponse,
|
||||||
StrategyListResponse,
|
StrategyListResponse,
|
||||||
StrategyResponse,
|
|
||||||
)
|
)
|
||||||
from freqtrade.rpc.api_server.deps import get_config
|
from freqtrade.rpc.api_server.deps import get_config
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user