Implement profit view and fix auto refresh

This commit is contained in:
2022-11-29 07:20:39 +00:00
parent 2b13802009
commit a39a5c3857
10 changed files with 192 additions and 84 deletions

View File

@@ -28,6 +28,7 @@ from core.views import (
hooks,
limits,
positions,
profit,
signals,
strategies,
trades,
@@ -137,6 +138,7 @@ urlpatterns = [
trades.TradeDeleteAll.as_view(),
name="trade_delete_all",
),
path("profit/<str:type>/", profit.Profit.as_view(), name="profit"),
path("positions/<str:type>/", positions.Positions.as_view(), name="positions"),
path(
"positions/<str:type>/<str:account_id>/",