Order filling :Order Failed! Reason: Unsupported filling mode

 
Hi All

Some assistance, has anyone seem this error before on Mt5. "  Order Failed! Reason: Unsupported filling mode"

🚀 Placing Immediate BUY Order: XAUUSD
📌 Supported Filling Modes for XAUUSD: 1
📌 Sending BUY Order: XAUUSD @ 2936.88 (TP: 2966.88, SL: 2916.88)
📝 Order Request Details: {'action': 1, 'symbol': 'XAUUSD', 'volume': 0.1, 'type': 0, 'price': 2936.88, 'sl': 2916.88, 'tp': 2966.88, 'deviation': 10, 'magic': 123456, 'comment': 'AutoTrade', 'type_time': 0, 'type_filling': 1}
🔍 MT5 Order Response: OrderSendResult(retcode=10030, deal=0, order=0, volume=0.0, price=0.0, bid=0.0, ask=0.0, comment='Unsupported filling mode', request_id=0, retcode_external=0, request=TradeRequest(action=1, magic=123456, order=0, symbol='XAUUSD', volume=0.1, price=2936.88, stoplimit=0.0, sl=2916.88, tp=2966.88, deviation=10, type=0, type_filling=1, type_time=0, expiration=0, comment='AutoTrade', position=0, position_by=0))
❌ Order Failed! Reason: Unsupported filling mode


The code that i created is py, and broker is Deriv
 
Rikhiphitheni:
Hi All

Some assistance, has anyone seem this error before on Mt5. "  Order Failed! Reason: Unsupported filling mode"

🚀 Placing Immediate BUY Order: XAUUSD
📌 Supported Filling Modes for XAUUSD: 1
📌 Sending BUY Order: XAUUSD @ 2936.88 (TP: 2966.88, SL: 2916.88)
📝 Order Request Details: {'action': 1, 'symbol': 'XAUUSD', 'volume': 0.1, 'type': 0, 'price': 2936.88, 'sl': 2916.88, 'tp': 2966.88, 'deviation': 10, 'magic': 123456, 'comment': 'AutoTrade', 'type_time': 0, 'type_filling': 1}
🔍 MT5 Order Response: OrderSendResult(retcode=10030, deal=0, order=0, volume=0.0, price=0.0, bid=0.0, ask=0.0, comment='Unsupported filling mode', request_id=0, retcode_external=0, request=TradeRequest(action=1, magic=123456, order=0, symbol='XAUUSD', volume=0.1, price=2936.88, stoplimit=0.0, sl=2916.88, tp=2966.88, deviation=10, type=0, type_filling=1, type_time=0, expiration=0, comment='AutoTrade', position=0, position_by=0))
❌ Order Failed! Reason: Unsupported filling mode


The code that i created is py, and broker is Deriv

This seems to be common. Coders do not add filling type OR add the wrong type. Do a search of this site. There is full description and example in both the help pages and forum threads.

 

Faced the same problem change your order filling as shown here solves it, attached some code also for reference hope it helps.

https://www.mql5.com/en/forum/368425#comment_56374529

Python / MT5 - no order possible - error message 'Unsupported filling mode'
Python / MT5 - no order possible - error message 'Unsupported filling mode'
  • 2021.05.02
  • PeterXY
  • www.mql5.com
I have a Python program that accesses a CFD platform via the Python / MT5 interface. Everything actually works as it should (e.g...