From d9bcc5e9328aa3873392e1d3e02cbc3aa715d713 Mon Sep 17 00:00:00 2001 From: soundsonacid Date: Fri, 2 Aug 2024 09:25:30 -0500 Subject: [PATCH] rmv --- src/driftpy/drift_user.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/driftpy/drift_user.py b/src/driftpy/drift_user.py index 24c5da5d..237398c1 100644 --- a/src/driftpy/drift_user.py +++ b/src/driftpy/drift_user.py @@ -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]: