diff --git a/README.md b/README.md index 42b3e0c4..56e68745 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.7** +* Add start_time and end_time in TradesRequest + **0.5.7.6** * Add OrdersHistory * Add SendToInjective diff --git a/pyinjective/async_client.py b/pyinjective/async_client.py index 19e81499..0c11f6eb 100644 --- a/pyinjective/async_client.py +++ b/pyinjective/async_client.py @@ -614,6 +614,8 @@ async def get_spot_trades(self, **kwargs): subaccount_ids=kwargs.get("subaccount_ids"), skip=kwargs.get("skip"), limit=kwargs.get("limit"), + start_time=kwargs.get("start_time"), + end_time=kwargs.get("end_time") ) return await self.stubSpotExchange.Trades(req) @@ -729,6 +731,8 @@ async def get_derivative_trades(self, **kwargs): direction=kwargs.get("direction"), skip=kwargs.get("skip"), limit=kwargs.get("limit"), + start_time=kwargs.get("start_time"), + end_time=kwargs.get("end_time") ) return await self.stubDerivativeExchange.Trades(req) diff --git a/setup.py b/setup.py index 1f96b2c8..4ac96543 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.6" +VERSION = "0.5.7.7" REQUIRED = [ "grpcio",