I am testing automated barterDEX trading of BTC -> KMD. You can see the raw trades at:
http://kmd.explorer.supernet.org/address/RUNoTCDeaLohX5eK2bRrCRToZRJG8Fjg5wAt 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:
curl --url "
http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"enable\",\"coin\":\"BTC\"}"
curl --url "
http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"autoprice\",\"base\":\"KMD\",\"rel\":\"BTC\",\"margin\":0.001}"
curl --url "
http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"autoprice\",\"base\":\"BTC\",\"rel\":\"KMD\",\"margin\":0.001}"
curl --url "
http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"goal\",\"coin\":\"KMD\",\"val\":99}"
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