mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-30 09:03:05 +00:00
Introduce background_job endpoints
This commit is contained in:
@@ -27,6 +27,21 @@ class StatusMsg(BaseModel):
|
||||
status: str
|
||||
|
||||
|
||||
class BgJobStarted(StatusMsg):
|
||||
job_id: str
|
||||
|
||||
|
||||
class BackgroundTaskStatus(BaseModel):
|
||||
status: str
|
||||
running: bool
|
||||
progress: Optional[float]
|
||||
|
||||
|
||||
class BackgroundTaskResult(BaseModel):
|
||||
error: Optional[str]
|
||||
status: str
|
||||
|
||||
|
||||
class ResultMsg(BaseModel):
|
||||
result: str
|
||||
|
||||
@@ -376,10 +391,8 @@ class WhitelistResponse(BaseModel):
|
||||
method: List[str]
|
||||
|
||||
|
||||
class WhitelistEvaluateResponse(BaseModel):
|
||||
class WhitelistEvaluateResponse(BackgroundTaskResult):
|
||||
result: Optional[WhitelistResponse]
|
||||
error: Optional[str]
|
||||
status: str
|
||||
|
||||
|
||||
class DeleteTrade(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user