Skip to content

Commit 1242467

Browse files
Merge pull request #131 from InjectiveLabs/f/release/0.5.7.3
release 0.5.7.3
2 parents ac610b5 + c3a1550 commit 1242467

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ Note that the [sync client](https://github.com/InjectiveLabs/sdk-python/blob/mas
7878

7979

8080
### Changelogs
81+
**0.5.7.3**
82+
* Add multi-subaccount and multi-market support in TradesRequest
83+
8184
**0.5.7.2**
8285
* Fix MsgInstantBinaryOptionsLaunch
8386

pyinjective/async_client.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,10 +588,12 @@ async def get_spot_orders(self, market_id: str, **kwargs):
588588

589589
async def get_spot_trades(self, market_id: str, **kwargs):
590590
req = spot_exchange_rpc_pb.TradesRequest(
591-
market_id=market_id,
591+
market_id=kwargs.get("market_id"),
592+
market_ids=kwargs.get("market_ids"),
592593
execution_side=kwargs.get("execution_side"),
593594
direction=kwargs.get("direction"),
594595
subaccount_id=kwargs.get("subaccount_id"),
596+
subaccount_ids=kwargs.get("subaccount_ids"),
595597
skip=kwargs.get("skip"),
596598
limit=kwargs.get("limit"),
597599
)
@@ -688,8 +690,10 @@ async def get_derivative_orders(self, market_id: str, **kwargs):
688690

689691
async def get_derivative_trades(self, market_id: str, **kwargs):
690692
req = derivative_exchange_rpc_pb.TradesRequest(
691-
market_id=market_id,
693+
market_id=kwargs.get("market_id"),
694+
market_ids=kwargs.get("market_ids"),
692695
subaccount_id=kwargs.get("subaccount_id"),
696+
subaccount_ids=kwargs.get("subaccount_ids"),
693697
execution_side=kwargs.get("execution_side"),
694698
direction=kwargs.get("direction"),
695699
skip=kwargs.get("skip"),

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
EMAIL = "achilleas@injectivelabs.com"
1818
AUTHOR = "Injective Labs"
1919
REQUIRES_PYTHON = ">=3.7.0"
20-
VERSION = "0.5.7.2"
20+
VERSION = "0.5.7.3"
2121

2222
REQUIRED = [
2323
"grpcio",

0 commit comments

Comments
 (0)