Hello. To estimate result of trade, I use websocket trade
. I update pair ratio from this websocket (attribute “p”). Then I account for fee (0.1% or 0.075%) and calculate estimate of trade.
However, when I perform real SPOT MARKET trade, the result is around 0.05-0.1% less than calculated estimate. I would say it is due to slippage and spread, but seems quite high to me. For example, for pair BTCUSDT the spread and slippage is 2-5 USDT, while the trade loss is around 10-20 USDT (per 1 BTC).
Is there any better way to estimate result of trade?
EDIT: I have checked differences in ws provided by “trade” and “ticker” and it is mostly the same, sometimes with difference on average 0.005% (which is probably due to “trade” price arriving earlier in second than “ticker” price). So I would say that ticker and trade provide same prices.