Skip to content

Commit e97df96

Browse files
committed
chore: re-gen
1 parent 050ca8d commit e97df96

File tree

3 files changed

+17
-23
lines changed

3 files changed

+17
-23
lines changed

examples/exchange_client/spot_exchange_rpc/14_HistoricalOrders.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ async def main() -> None:
2626
subaccount_id = "0xed8c4C43E03E24b7F12975472da771Ce2f8b857c000000000000000000000000"
2727
skip = 10
2828
limit = 10
29+
order_types = ["buy_po"]
2930
orders = await client.get_historical_spot_orders(
3031
market_id=market_id,
3132
subaccount_id=subaccount_id,

pyinjective/async_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ async def get_historical_spot_orders(self, market_id: str, **kwargs):
617617
req = spot_exchange_rpc_pb.OrdersHistoryRequest(
618618
market_id=market_id,
619619
direction=kwargs.get("direction"),
620-
order_type=kwargs.get("order_type"),
620+
order_types=kwargs.get("order_types"),
621621
subaccount_id=kwargs.get("subaccount_id"),
622622
skip=kwargs.get("skip"),
623623
limit=kwargs.get("limit"),
@@ -737,7 +737,7 @@ async def get_historical_derivative_orders(self, market_id: str, **kwargs):
737737
req = derivative_exchange_rpc_pb.OrdersHistoryRequest(
738738
market_id=market_id,
739739
direction=kwargs.get("direction"),
740-
order_type=kwargs.get("order_type"),
740+
order_types=kwargs.get("order_types"),
741741
subaccount_id=kwargs.get("subaccount_id"),
742742
skip=kwargs.get("skip"),
743743
limit=kwargs.get("limit"),

0 commit comments

Comments
 (0)