How does the bot count spreads?
Last updated
Last updated
How does the bot count spreads?
Using the signal as an example:
The bot requests a price on DEX (in this case Jupiter) for a certain volume. It then checks the stacks on CEX and counts all profitable orders for this volume.
The bot found a bet on Mxc with profitable orders for ~1445 USDT Vol - Prof = 1445- 36 = 1409 USDT Buying on DEX at 1409 USDT and selling on Mxc we get 1445 USDT - that's 3% or 36$ profit.
The bot found on Lbank a stack with profitable orders for ~135 USDT Vol - Prof = 135- 2 = 133 USDT Buy on DEX for 133 USDT and sell on Lbank to get 135 USDT - that's 2% or 2$ profit
It makes no sense to calculate the optimal volume every time, we look at the spread (Dif) and the available volume in the stack (Vol) and buy for a comfortable amount, the percentage of profit will be approximately the same.
In the case of CEX -> DEX, you will have to pay attention to the CEX withdrawal fee and the network's swap/transfer fee when changing the purchase amount
What is taken into account by the bot when calculating the spread:
1.For DEX -> CEX:
On the TRON network, the network's swap fee is taken into account. In the ETH network the network commission for swap and transfer is taken into account. In other networks, the commission is not taken into account.
Buy and Transfer Tax (burn-in), if any. Additional burning for deposit by CEX is not taken into account!
Taker Commission on CEX
For CEX -> DEX:
On the TRON network, the network's swap fee is taken into account. On the ETH network, the network's swap fee is taken into account. In other networks, no commission is taken into account.
Sell and Transfer Tax (burn-in), if any. Additional burning for withdrawal by CEX is not taken into account!
Taker Commission on CEX
Commission for token withdrawal from CEX