@@ -240,8 +240,8 @@ async def get_spot_orders(self, market_id: str, order_side: str = '', subaccount
240
240
req = spot_exchange_rpc_pb .OrdersRequest (market_id = market_id , order_side = order_side , subaccount_id = subaccount_id )
241
241
return await self .stubSpotExchange .Orders (req )
242
242
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 )
245
245
return await self .stubSpotExchange .Trades (req )
246
246
247
247
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
257
257
req = spot_exchange_rpc_pb .StreamOrdersRequest (market_id = market_id , order_side = order_side , subaccount_id = subaccount_id )
258
258
return self .stubSpotExchange .StreamOrders (req )
259
259
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 )
262
262
return self .stubSpotExchange .StreamTrades (req )
263
263
264
264
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
291
291
req = derivative_exchange_rpc_pb .OrdersRequest (market_id = market_id , order_side = order_side , subaccount_id = subaccount_id )
292
292
return await self .stubDerivativeExchange .Orders (req )
293
293
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 )
296
296
return await self .stubDerivativeExchange .Trades (req )
297
297
298
298
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
307
307
req = derivative_exchange_rpc_pb .StreamOrdersRequest (market_id = market_id , order_side = order_side , subaccount_id = subaccount_id )
308
308
return self .stubDerivativeExchange .StreamOrders (req )
309
309
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 )
312
312
return self .stubDerivativeExchange .StreamTrades (req )
313
313
314
314
async def get_derivative_positions (self , market_id : str , subaccount_id : str = '' ):
0 commit comments