Skip to content

Commit

Permalink
chore: add start_time and end_time
Browse files Browse the repository at this point in the history
  • Loading branch information
achilleas-kal committed Aug 18, 2022
1 parent 1f1b58d commit 5c0ce47
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions pyinjective/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
EMAIL = "[email protected]"
AUTHOR = "Injective Labs"
REQUIRES_PYTHON = ">=3.7.0"
VERSION = "0.5.7.6"
VERSION = "0.5.7.7"

REQUIRED = [
"grpcio",
Expand Down

0 comments on commit 5c0ce47

Please sign in to comment.