Skip to content

Commit 382dc25

Browse files
committed
chore: add get_spot_orderbookV2
1 parent 9839870 commit 382dc25

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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)

0 commit comments

Comments
 (0)