Skip to content

Commit 2e8b105

Browse files
Merge pull request #194 from InjectiveLabs/f/add_orderbook_method
F/add orderbook method
2 parents 9839870 + 0f7f30a commit 2e8b105

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
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.6.1.2**
82+
* Add OrderbookV2 method in async client
83+
8184
**0.6.1.1**
8285
* Add ARB/USDT
8386

pyinjective/async_client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,10 @@ async def get_spot_orderbooks(self, market_ids: List):
640640
req = spot_exchange_rpc_pb.OrderbooksRequest(market_ids=market_ids)
641641
return await self.stubSpotExchange.Orderbooks(req)
642642

643+
async def get_spot_orderbookV2(self, market_id: str):
644+
req = spot_exchange_rpc_pb.OrderbooksV2Request(market_id=market_id)
645+
return await self.stubSpotExchange.OrderbooksV2(req)
646+
643647
async def get_spot_orderbooksV2(self, market_ids: List):
644648
req = spot_exchange_rpc_pb.OrderbooksV2Request(market_ids=market_ids)
645649
return await self.stubSpotExchange.OrderbooksV2(req)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
1818
AUTHOR = "Injective Labs"
1919
REQUIRES_PYTHON = ">=3.7.0"
20-
VERSION = "0.6.1.1"
20+
VERSION = "0.6.1.2"
2121

2222
REQUIRED = [
2323
"protobuf",

0 commit comments

Comments
 (0)