diff --git a/src/driftpy/clearing_house.py b/src/driftpy/clearing_house.py index d07f1712..521eadd1 100644 --- a/src/driftpy/clearing_house.py +++ b/src/driftpy/clearing_house.py @@ -513,12 +513,19 @@ async def open_position( direction: PositionDirection, amount: int, market_index: int, + user_id: int = 0, limit_price: int = 0, ioc: bool = False, - user_id: int = 0, ): return await self.send_ixs( - await self.get_open_position_ix(direction, amount, market_index, limit_price, ioc, user_id=user_id), + await self.get_open_position_ix( + direction, + amount, + market_index, + user_id, + limit_price, + ioc, + ), ) async def get_open_position_ix( diff --git a/tests/test.py b/tests/test.py index 65e49b80..bf5b7470 100644 --- a/tests/test.py +++ b/tests/test.py @@ -191,7 +191,7 @@ async def test_init_user( user: User = await get_user_account( clearing_house.program, clearing_house.authority, - user_id=0 + subaccount_id=0 ) assert user.authority == clearing_house.authority