Does this bot buy BTC with least sell price and sell BTC for highest buy price in a given time-frame ?
Hi,
this BOT tries to keep the value of the FIAT and the value of BTC the same.
Let's give an example:
- at beginning you have 100USD and 0BTC. 1BTC is 1$
- first operation is to balance the wallet: the BOT will buy 50BTC at 1$ so you will have 50$ in FIAT and 50$ in BTC values
- now 50$ is the new center
- let's assume in the balancer.properties you have left percentualDistance=5
- the BOT will place 2 orders
- an order at 50$+5%=52.5$ to sell some bitcoins (as the value per bitcoin is increased you have to sell some of them to keep your wallet balanced)
- an order at 50$-5%=47.5$ to buy some bitcoins (as the value per bitcoin is decreased you have to buy some of them to keep your wallet balanced)
- the BOT will poll the exchange and when an order is executed it will delete the other one and places 2 new orders following the same logic and using a new center (47.5$ or 52.5$ depending on which order got executed).
I hope this will clear your doubts.
Bye