Skip to content

Commit

Permalink
Merge pull request #131 from InjectiveLabs/f/release/0.5.7.3
Browse files Browse the repository at this point in the history
release 0.5.7.3
  • Loading branch information
achilleas-kal committed Jul 27, 2022
2 parents ac610b5 + c3a1550 commit 1242467
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
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.3**
* Add multi-subaccount and multi-market support in TradesRequest

**0.5.7.2**
* Fix MsgInstantBinaryOptionsLaunch

Expand Down
8 changes: 6 additions & 2 deletions pyinjective/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
)
Expand Down Expand Up @@ -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"),
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.2"
VERSION = "0.5.7.3"

REQUIRED = [
"grpcio",
Expand Down

0 comments on commit 1242467

Please sign in to comment.