File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
nautilus_trader/adapters/binance/futures Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 21
21
from nautilus_trader .accounting .accounts .margin import MarginAccount
22
22
from nautilus_trader .adapters .binance .common .enums import BinanceAccountType
23
23
from nautilus_trader .adapters .binance .common .enums import BinanceErrorCode
24
+ from nautilus_trader .adapters .binance .common .enums import BinanceExecutionType
24
25
from nautilus_trader .adapters .binance .config import BinanceExecClientConfig
25
26
from nautilus_trader .adapters .binance .execution import BinanceCommonExecutionClient
26
27
from nautilus_trader .adapters .binance .futures .enums import BinanceFuturesEnumParser
@@ -294,7 +295,8 @@ def _handle_account_update(self, raw: bytes) -> None:
294
295
295
296
def _handle_order_trade_update (self , raw : bytes ) -> None :
296
297
order_update = self ._decoder_futures_order_update_wrapper .decode (raw )
297
- order_update .data .o .handle_order_trade_update (self )
298
+ if not (self ._use_trade_lite and order_update .data .o .x == BinanceExecutionType .TRADE ):
299
+ order_update .data .o .handle_order_trade_update (self )
298
300
299
301
def _handle_margin_call (self , raw : bytes ) -> None :
300
302
self ._log .warning ("MARGIN CALL received" ) # Implement
You can’t perform that action at this time.
0 commit comments