At the same time I am doing a jumblr from RUNoTCDeaLohX5eK2bRrCRToZRJG8Fjg5w
So combined it is doing an automatic BTC -> KMD -> jumblr'ed KMD
Once this is done, a reverse automated barterDEX of KMD -> BTC can be done using a similar method.
The command line API was used to get this process started, but before you get all scared that it is really difficult and impossible, let me show you the actual commands:
1:
curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"enable\",\"coin\":\"BTC\"}"
2:
curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"autoprice\",\"base\":\"KMD\",\"rel\":\"BTC\",\"margin\":0.001}"
3:
curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"autoprice\",\"base\":\"BTC\",\"rel\":\"KMD\",\"margin\":0.001}"
4:
curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"goal\",\"coin\":\"KMD\",\"val\":99}"
5:
curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"goal\",\"coin\":\"BTC\",\"val\":1}"
./komodo-cli jumblr_deposit RUNoTCDeaLohX5eK2bRrCRToZRJG8Fjg5w
The enable command enables BTC
The autoprice command automatically does setprice calls for KMD/BTC and BTC/KMD with a 0.001 margin
The goal commands sets the portfolio goal to 99% KMD and 1% BTC
After this, I just sent some BTC to the smartaddress: 1L6cNgLMyX18T5H7ZRSj6u8bo9qfXcvXdu
And the rest is happening automatically. But with BTC blocks being so slow, it is taking quite a while. Once it is done, on a node with the wallet for the jumblr_secret address, I would set the goal to be 99% BTC and 1% KMD and it will do the reverse barterDEX.
That will start a KMD -> BTC from the jumblr_secret address(es) to the corresponding BTC addresses. Since the jumblr_secret addresses have funds that are essentially teleported into them without any linkage to anything else, this property is retained for the barterDEX'ed BTC
Can we discuss this a little more? I added the numbers to make referencing the commands easier.
I believe I can follow this but can we get a more detailed explanation.
1. Why do we need to enable? Is this used in general or just with jumblr
2,3. Where is autoprice coming from and what is rel?
4,5 Explain the portfolio goal please. Is the portfolio the wallet? Does 99% kmd mean that for every 100 coins 99 are kmd and 1 bitcoin or is it value based and for every $100; $99 is kmd and $1 btc