Requote Error - 10004


Hi All

When i tried to place a buy order, i get a requote error. However when i check the difference between the ask and my price is only 0.001 which is really small.

Why does it throw the requote error?

OrderSendResult(retcode=10004, deal=0, order=0, volume=0.0, price=0.0, bid=132.663, ask=132.671, comment='Requote', request_id=1912707185, retcode_external=0, request=TradeRequest(action=1, magic=234000, order=0, symbol='USDJPY', volume=0.1, price=132.67, stoplimit=0.0, sl=132.36999999999998, tp=0.0, deviation=20, type=0, type_filling=0, type_time=0, expiration=0, comment='python script open', position=0, position_by=0))

lot = 0.1 point = mt5.symbol_info(currency).point price = mt5.symbol_info_tick(currency).bid SL = price + 0.300 deviation = 20 open_request_sell = { "action": mt5.TRADE_ACTION_DEAL, "symbol": currency, "volume": lot, "type": mt5.ORDER_TYPE_SELL, "price": price, "deviation": deviation, "magic": 234000, 'sl': SL, "comment": "python script open", "type_time": mt5.ORDER_TIME_GTC, "type_filling": mt5.ORDER_FILLING_FOK, } result_sell = mt5.order_send(open_request_sell)


Well try again!

The struct result returns the actual bid and ask, so re-send the request with adjusted prices..