Skip to content

Commit 0a8d214

Browse files
committed
Add skip/limit to funding payments
Add skip/limit to funding payments
1 parent 356de43 commit 0a8d214

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyinjective/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,5 +364,5 @@ async def get_derivative_subaccount_trades(self, subaccount_id: str, **kwargs):
364364
return await self.stubDerivativeExchange.SubaccountTradesList(req)
365365

366366
async def get_funding_payments(self, subaccount_id: str, **kwargs):
367-
req = derivative_exchange_rpc_pb.FundingPaymentsRequest(subaccount_id=subaccount_id, market_id=kwargs.get("market_id"))
367+
req = derivative_exchange_rpc_pb.FundingPaymentsRequest(subaccount_id=subaccount_id, market_id=kwargs.get("market_id"), skip=kwargs.get("skip"), limit=kwargs.get("limit"))
368368
return await self.stubDerivativeExchange.FundingPayments(req)

pyinjective/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,6 @@ def get_derivative_subaccount_trades(
492492

493493
def get_funding_payments(self, subaccount_id: str, **kwargs):
494494
req = derivative_exchange_rpc_pb.FundingPaymentsRequest(
495-
subaccount_id=subaccount_id, market_id=kwargs.get("market_id")
495+
subaccount_id=subaccount_id, market_id=kwargs.get("market_id"), skip=kwargs.get("skip"), limit=kwargs.get("limit")
496496
)
497497
return self.stubDerivativeExchange.FundingPayments(req)

0 commit comments

Comments
 (0)