Skip to content

Commit

Permalink
Merge branch 'feat/close-margin-position-endpoint' of https://github.…
Browse files Browse the repository at this point in the history
…com/fatiudeen/spotnet into feat/close-margin-position-endpoint
  • Loading branch information
fatiudeen committed Feb 27, 2025
2 parents e6ecf17 + 31da8bf commit bf4def7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions margin_app/app/api/margin_position.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,12 @@ async def open_margin_position(


@router.post("/close/{position_id}", response_model=CloseMarginPositionResponse)
async def close_margin_position(
position_id: UUID, db: AsyncSession = Depends(get_db)
) -> CloseMarginPositionResponse:
async def close_margin_position(position_id: UUID) -> CloseMarginPositionResponse:
"""
Close a margin position endpoint.
Args:
position_id (UUID): The unique identifier of the margin position to close
db (AsyncSession): Database session dependency injected by FastAPI
Returns:
CloseMarginPositionResponse: Object containing the position ID and its updated status
Expand Down

0 comments on commit bf4def7

Please sign in to comment.