Skip to content

Commit

Permalink
rmv
Browse files Browse the repository at this point in the history
  • Loading branch information
soundsonacid committed Aug 2, 2024
1 parent 8c656f4 commit d9bcc5e
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/driftpy/drift_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -1386,18 +1386,6 @@ def get_active_spot_positions(self) -> list[SpotPosition]:
user = self.get_user_account()
return self.get_active_spot_positions_for_user_account(user)

def get_active_perp_positions_for_user_account(
self, user: UserAccount
) -> list[PerpPosition]:
return [
pos
for pos in user.perp_positions
if pos.base_asset_amount != 0
or pos.quote_asset_amount != 0
or pos.open_orders != 0
or pos.lp_shares != 0
]

def get_active_spot_positions_for_user_account(
self, user: UserAccount
) -> list[SpotPosition]:
Expand Down

0 comments on commit d9bcc5e

Please sign in to comment.