@@ -240,8 +240,8 @@ async def get_spot_orders(self, market_id: str, order_side: str = '', subaccount
240240 req = spot_exchange_rpc_pb .OrdersRequest (market_id = market_id , order_side = order_side , subaccount_id = subaccount_id )
241241 return await self .stubSpotExchange .Orders (req )
242242
243- async def get_spot_trades (self , market_id : str , execution_side : str = '' , direction : str = '' , subaccount_id : str = '' ):
244- req = spot_exchange_rpc_pb .TradesRequest (market_id = market_id , execution_side = execution_side , direction = direction , subaccount_id = subaccount_id )
243+ async def get_spot_trades (self , market_id : str , execution_side : str = '' , direction : str = '' , subaccount_id : str = '' , skip : int = 0 , limit : int = 0 ):
244+ req = spot_exchange_rpc_pb .TradesRequest (market_id = market_id , execution_side = execution_side , direction = direction , subaccount_id = subaccount_id , skip = skip , limit = limit )
245245 return await self .stubSpotExchange .Trades (req )
246246
247247 async def stream_spot_orderbook (self , market_id : str ):
@@ -257,8 +257,8 @@ async def stream_spot_orders(self, market_id: str, order_side: str = '', subacco
257257 req = spot_exchange_rpc_pb .StreamOrdersRequest (market_id = market_id , order_side = order_side , subaccount_id = subaccount_id )
258258 return self .stubSpotExchange .StreamOrders (req )
259259
260- async def stream_spot_trades (self , market_id : str , execution_side : str = '' , direction : str = '' , subaccount_id : str = '' ):
261- req = spot_exchange_rpc_pb .StreamTradesRequest (market_id = market_id , execution_side = execution_side , direction = direction , subaccount_id = subaccount_id )
260+ async def stream_spot_trades (self , market_id : str , execution_side : str = '' , direction : str = '' , subaccount_id : str = '' , skip : int = 0 , limit : int = 0 ):
261+ req = spot_exchange_rpc_pb .StreamTradesRequest (market_id = market_id , execution_side = execution_side , direction = direction , subaccount_id = subaccount_id , skip = skip , limit = limit )
262262 return self .stubSpotExchange .StreamTrades (req )
263263
264264 async def get_spot_subaccount_orders (self , subaccount_id : str , market_id : str = '' ):
@@ -291,8 +291,8 @@ async def get_derivative_orders(self, market_id: str, order_side: str = '', suba
291291 req = derivative_exchange_rpc_pb .OrdersRequest (market_id = market_id , order_side = order_side , subaccount_id = subaccount_id )
292292 return await self .stubDerivativeExchange .Orders (req )
293293
294- async def get_derivative_trades (self , market_id : str , subaccount_id : str = '' ):
295- req = derivative_exchange_rpc_pb .TradesRequest (market_id = market_id , subaccount_id = subaccount_id )
294+ async def get_derivative_trades (self , market_id : str , subaccount_id : str = '' , skip : int = 0 , limit : int = 0 ):
295+ req = derivative_exchange_rpc_pb .TradesRequest (market_id = market_id , subaccount_id = subaccount_id , execution_side = execution_side , direction = direction , skip = skip , limit = limit )
296296 return await self .stubDerivativeExchange .Trades (req )
297297
298298 async def stream_derivative_orderbook (self , market_id : str ):
@@ -307,8 +307,8 @@ async def stream_derivative_orders(self, market_id: str, order_side: str = '', s
307307 req = derivative_exchange_rpc_pb .StreamOrdersRequest (market_id = market_id , order_side = order_side , subaccount_id = subaccount_id )
308308 return self .stubDerivativeExchange .StreamOrders (req )
309309
310- async def stream_derivative_trades (self , market_id : str , subaccount_id : str = '' ):
311- req = derivative_exchange_rpc_pb .StreamTradesRequest (market_id = market_id , subaccount_id = subaccount_id )
310+ async def stream_derivative_trades (self , market_id : str , subaccount_id : str = "" , execution_side : str = "" , direction : str = "" , skip : int = 0 , limit : int = 0 ):
311+ req = derivative_exchange_rpc_pb .StreamTradesRequest (market_id = market_id , subaccount_id = subaccount_id , execution_side = execution_side , direction = direction , skip = skip , limit = limit )
312312 return self .stubDerivativeExchange .StreamTrades (req )
313313
314314 async def get_derivative_positions (self , market_id : str , subaccount_id : str = '' ):
0 commit comments