Implement closing positions

This commit is contained in:
2022-12-02 07:20:37 +00:00
parent 5aac60a7ee
commit 1ce6c3fafa
5 changed files with 68 additions and 6 deletions

View File

@@ -143,6 +143,11 @@ urlpatterns = [
positions.Positions.as_view(),
name="positions",
),
path(
"positions/close/<str:account_id>/<str:side>/<str:symbol>/",
positions.PositionAction.as_view(),
name="position_action",
),
path(
"positions/<str:type>/<str:account_id>/<str:symbol>/",
positions.PositionAction.as_view(),