I'm working on strategy that trades lilmit orders only
I trade on Binance with NinjaTools connector.
Sometimes order placement action returns rejections. It is normal.
I have to say that rejections are not because of wrong price or wrong order generally.
Error code shows that rejection is usually because of high load on exchange.
I've realized code within OnOrderUpdate section that should check if order rejected.
If so it should resubmit it.
But actually it seems not.
Here my code in OnOrderUpdate section that should resubmit order if rejected:
if (order.Name == "long limit entry") { if (order.OrderState == OrderState.Rejected) { longentryOrder_0 = EnterLongLimit(0, true, lotage, limitprice, "long limit entry"); } }
That I do in wrong way?
Please assist
Best Regards,
Makhmut
P.S.
RealtimeErrorHandling = RealtimeErrorHandling.StopCancelCloseIgnoreRejects;
Comment