mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-17 05:11:15 +00:00
chore: simplify import and docstring
This commit is contained in:
@@ -1125,7 +1125,7 @@ class RPC:
|
|||||||
Returns an array of dictionaries, each containing:
|
Returns an array of dictionaries, each containing:
|
||||||
- "trade_id": the ID of the trade (int)
|
- "trade_id": the ID of the trade (int)
|
||||||
- "custom_data": a list of custom data dicts, each with the fields:
|
- "custom_data": a list of custom data dicts, each with the fields:
|
||||||
"id", "ft_trade_id", "cd_key", "cd_type", "cd_value", "created_at", "updated_at"
|
"id", "key", "type", "value", "created_at", "updated_at"
|
||||||
"""
|
"""
|
||||||
trades: Sequence[Trade]
|
trades: Sequence[Trade]
|
||||||
if trade_id is None:
|
if trade_id is None:
|
||||||
|
|||||||
@@ -24,8 +24,7 @@ from freqtrade.enums import CandleType, RunMode, State, TradingMode
|
|||||||
from freqtrade.exceptions import DependencyException, ExchangeError, OperationalException
|
from freqtrade.exceptions import DependencyException, ExchangeError, OperationalException
|
||||||
from freqtrade.loggers import setup_logging, setup_logging_pre
|
from freqtrade.loggers import setup_logging, setup_logging_pre
|
||||||
from freqtrade.optimize.backtesting import Backtesting
|
from freqtrade.optimize.backtesting import Backtesting
|
||||||
from freqtrade.persistence import Trade
|
from freqtrade.persistence import CustomDataWrapper, Trade
|
||||||
from freqtrade.persistence.custom_data import CustomDataWrapper
|
|
||||||
from freqtrade.rpc import RPC
|
from freqtrade.rpc import RPC
|
||||||
from freqtrade.rpc.api_server import ApiServer
|
from freqtrade.rpc.api_server import ApiServer
|
||||||
from freqtrade.rpc.api_server.api_auth import create_token, get_user_from_token
|
from freqtrade.rpc.api_server.api_auth import create_token, get_user_from_token
|
||||||
|
|||||||
Reference in New Issue
Block a user