Don't require RPC for strategy

This commit is contained in:
Matthias
2021-01-02 15:11:40 +01:00
parent e6176d43f3
commit ca0bb7bbb8
3 changed files with 19 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
from datetime import date, datetime
from typing import Any, Dict, List, Optional, Union
from typing import Any, Dict, List, Optional, TypeVar, Union
from pydantic import BaseModel
@@ -180,6 +180,9 @@ class TradeResponse(BaseModel):
trades_count: int
ForceBuyResponse = TypeVar('ForceBuyResponse', TradeSchema, StatusMsg)
class LockModel(BaseModel):
active: bool
lock_end_time: str
@@ -234,11 +237,14 @@ class DeleteTrade(BaseModel):
trade_id: int
class PlotConfig(BaseModel):
class PlotConfig_(BaseModel):
main_plot: Dict[str, Any]
subplots: Optional[Dict[str, Any]]
PlotConfig = TypeVar('PlotConfig', PlotConfig_, Dict)
class StrategyListResponse(BaseModel):
strategies: List[str]