Skip to content

Commit 635d5c8

Browse files
Merge pull request #59 from InjectiveLabs/update-sdk
Update sdk
2 parents 93796e9 + 6288688 commit 635d5c8

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ python pyinjective/fetch_metadata.py
8888
### Changelogs
8989
0.5.5.9
9090
* add MsgBatchUpdateOrders to the composer
91+
* add skip/limit parameters to funding payments
9192

9293
0.5.5.8
9394
* fix stream_bids in async client

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)