diff --git a/README.md b/README.md index fed3ab57..68e33e71 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,9 @@ Note that the [sync client](https://github.com/InjectiveLabs/sdk-python/blob/mas ### Changelogs +**0.5.7.3** +* Add multi-subaccount and multi-market support in TradesRequest + **0.5.7.2** * Fix MsgInstantBinaryOptionsLaunch diff --git a/pyinjective/async_client.py b/pyinjective/async_client.py index 54386cf1..d00f9621 100644 --- a/pyinjective/async_client.py +++ b/pyinjective/async_client.py @@ -588,10 +588,12 @@ async def get_spot_orders(self, market_id: str, **kwargs): async def get_spot_trades(self, market_id: str, **kwargs): req = spot_exchange_rpc_pb.TradesRequest( - market_id=market_id, + market_id=kwargs.get("market_id"), + market_ids=kwargs.get("market_ids"), execution_side=kwargs.get("execution_side"), direction=kwargs.get("direction"), subaccount_id=kwargs.get("subaccount_id"), + subaccount_ids=kwargs.get("subaccount_ids"), skip=kwargs.get("skip"), limit=kwargs.get("limit"), ) @@ -688,8 +690,10 @@ async def get_derivative_orders(self, market_id: str, **kwargs): async def get_derivative_trades(self, market_id: str, **kwargs): req = derivative_exchange_rpc_pb.TradesRequest( - market_id=market_id, + market_id=kwargs.get("market_id"), + market_ids=kwargs.get("market_ids"), subaccount_id=kwargs.get("subaccount_id"), + subaccount_ids=kwargs.get("subaccount_ids"), execution_side=kwargs.get("execution_side"), direction=kwargs.get("direction"), skip=kwargs.get("skip"), diff --git a/setup.py b/setup.py index bc0229dc..c99731c5 100755 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ EMAIL = "achilleas@injectivelabs.com" AUTHOR = "Injective Labs" REQUIRES_PYTHON = ">=3.7.0" -VERSION = "0.5.7.2" +VERSION = "0.5.7.3" REQUIRED = [ "grpcio",