Skip to content

Commit

Permalink
feat: add state in OrdersHistory
Browse files Browse the repository at this point in the history
  • Loading branch information
achilleas-kal committed Aug 23, 2022
1 parent 76c6a68 commit 90a01ef
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pyinjective/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,8 @@ async def get_historical_spot_orders(self, market_id: str, **kwargs):
skip=kwargs.get("skip"),
limit=kwargs.get("limit"),
start_time=kwargs.get("start_time"),
end_time=kwargs.get("end_time")
end_time=kwargs.get("end_time"),
state=kwargs.get("state")
)
return await self.stubSpotExchange.OrdersHistory(req)

Expand Down Expand Up @@ -717,7 +718,8 @@ async def get_historical_derivative_orders(self, market_id: str, **kwargs):
skip=kwargs.get("skip"),
limit=kwargs.get("limit"),
start_time=kwargs.get("start_time"),
end_time=kwargs.get("end_time")
end_time=kwargs.get("end_time"),
state=kwargs.get("state")
)
return await self.stubDerivativeExchange.OrdersHistory(req)

Expand Down Expand Up @@ -769,9 +771,9 @@ async def stream_derivative_trades(self, **kwargs):
metadata = await self.load_cookie(type="exchange")
return self.stubDerivativeExchange.StreamTrades.__call__(req, metadata=metadata)

async def get_derivative_positions(self, market_id: str, **kwargs):
async def get_derivative_positions(self, **kwargs):
req = derivative_exchange_rpc_pb.PositionsRequest(
market_id=market_id,
market_id=kwargs.get("market_id"),
subaccount_id=kwargs.get("subaccount_id"),
skip=kwargs.get("skip"),
limit=kwargs.get("limit")
Expand Down

0 comments on commit 90a01ef

Please sign in to comment.