How to exactly estimate result of trade?

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.

Since you’re dealing with market orders it’s harder to estimate an exact result as it depends on the depth of the order book, ie. how much volume is available at each price level. If you want to trade at an exact price then you’re better off using Limit orders.

1 Like

Thanks I understand it. My problem with limit orders is that sometimes it may not be filled and lead to loss. Thanks anyway.

1 Like