diff --git a/MALKHUT/malkhut/venue/bingx/adapter.py b/MALKHUT/malkhut/venue/bingx/adapter.py index cdc1c07..64da81b 100644 --- a/MALKHUT/malkhut/venue/bingx/adapter.py +++ b/MALKHUT/malkhut/venue/bingx/adapter.py @@ -177,12 +177,16 @@ class BingXVenueAdapter: self._order_seq += 1 client_id = f"m_{state.ts_ns}_{self._order_seq}" - # Determine order type - order_type = "LIMIT" - if action.kind.value == "CROSS_SPREAD": + # Determine order type — use standardized OrderType, map to BingX-native + from malkhut.training.order_types import normalize_to_exchange + if action.order_type is not None: + order_type = normalize_to_exchange(action.order_type.value, "bingx") or "LIMIT" + elif action.kind.value == "CROSS_SPREAD": order_type = "MARKET" elif action.post_only: order_type = "POST_ONLY" + else: + order_type = "LIMIT" # Build order order = {