Spaces:
Sleeping
Sleeping
QAway-to
commited on
Commit
·
40d1d72
1
Parent(s):
9adb795
fast api APP
Browse files- rest_api.py +1 -1
rest_api.py
CHANGED
|
@@ -17,4 +17,4 @@ async def get_pnl(portfolio_id: str):
|
|
| 17 |
pnl_data = await fetch_absolute_pnl_async(portfolio_id)
|
| 18 |
if pnl_data:
|
| 19 |
return {"status": "ok", "pnl": pnl_data}
|
| 20 |
-
return {"status": "error", "message": "Не удалось получить PnL"}
|
|
|
|
| 17 |
pnl_data = await fetch_absolute_pnl_async(portfolio_id)
|
| 18 |
if pnl_data:
|
| 19 |
return {"status": "ok", "pnl": pnl_data}
|
| 20 |
+
return {"status": "error", "message": " Не удалось получить PnL"}
|