Huge delay in deal close

Bug info: my deal closed after three minutes and it has caused 6% difference in loss , why was it? please explain

Capture

orderId: x-zy1FRpEGD-TP-DHghSlENxY5JggbrucJs, symbol: MATICUSDT,

We checked the reason. The problem is that the exchange didn’t update the last candle value through the price stream. After a timeout the bot requested the info directly to the exchange, but is a much slower process as this is subject to exchange rate limitations. We are performing some core optimizations that will reduce exchange lag, as well as shortening the timeout.

2 Likes