@@ -618,6 +618,7 @@ async def get_historical_spot_orders(self, market_id: str, **kwargs):
618618 market_id = market_id ,
619619 direction = kwargs .get ("direction" ),
620620 order_types = kwargs .get ("order_types" ),
621+ execution_types = kwargs .get ("execution_types" ),
621622 subaccount_id = kwargs .get ("subaccount_id" ),
622623 skip = kwargs .get ("skip" ),
623624 limit = kwargs .get ("limit" ),
@@ -661,6 +662,30 @@ async def stream_spot_orders(self, market_id: str, **kwargs):
661662 metadata = await self .load_cookie (type = "exchange" )
662663 return self .stubSpotExchange .StreamOrders .__call__ (req , metadata = metadata )
663664
665+ async def stream_historical_spot_orders (self , market_id : str , ** kwargs ):
666+ req = spot_exchange_rpc_pb .StreamOrdersHistoryRequest (
667+ market_id = market_id ,
668+ direction = kwargs .get ("direction" ),
669+ subaccount_id = kwargs .get ("subaccount_id" ),
670+ order_types = kwargs .get ("order_types" ),
671+ state = kwargs .get ("state" ),
672+ execution_types = kwargs .get ("execution_types" )
673+ )
674+ metadata = await self .load_cookie (type = "exchange" )
675+ return self .stubSpotExchange .StreamOrdersHistory .__call__ (req , metadata = metadata )
676+
677+ async def stream_historical_derivative_orders (self , market_id : str , ** kwargs ):
678+ req = derivative_exchange_rpc_pb .StreamOrdersHistoryRequest (
679+ market_id = market_id ,
680+ direction = kwargs .get ("direction" ),
681+ subaccount_id = kwargs .get ("subaccount_id" ),
682+ order_types = kwargs .get ("order_types" ),
683+ state = kwargs .get ("state" ),
684+ execution_types = kwargs .get ("execution_types" )
685+ )
686+ metadata = await self .load_cookie (type = "exchange" )
687+ return self .stubDerivativeExchange .StreamOrdersHistory .__call__ (req , metadata = metadata )
688+
664689 async def stream_spot_trades (self , ** kwargs ):
665690 req = spot_exchange_rpc_pb .StreamTradesRequest (
666691 market_id = kwargs .get ("market_id" ),
@@ -738,7 +763,9 @@ async def get_historical_derivative_orders(self, market_id: str, **kwargs):
738763 market_id = market_id ,
739764 direction = kwargs .get ("direction" ),
740765 order_types = kwargs .get ("order_types" ),
766+ execution_types = kwargs .get ("execution_types" ),
741767 subaccount_id = kwargs .get ("subaccount_id" ),
768+ is_conditional = kwargs .get ("is_conditional" ),
742769 skip = kwargs .get ("skip" ),
743770 limit = kwargs .get ("limit" ),
744771 start_time = kwargs .get ("start_time" ),
0 commit comments