webworker01 / mmtools

Bash CLI tools for MM2
https://github.com/KomodoPlatform/atomicDEX-API
GNU General Public License v3.0
6 stars 8 forks source link
atomicdex atomicdex-platform cli komodo komodo-platform mm2

mmtools

Bash CLI tools for MM2

Scripts in this repo work together as a whole, please follow the setup steps before usage.

The scripts in this repo are meant to be an educational and functional interaction with the mm2 API. Each script contains in the beginning a link to the specific API call it is making so you can learn more details and create your own application to interact with the DEX.

orderbook.png

Setup

Developed & tested on Ubuntu 18.04

cd ~
git clone https://github.com/webworker01/mmtools.git
cd ~/mmtools

#build atomicDEX-API
./init

Init will help create a config file and ask if you want to generate a random wallet passphrase and userpass. If you do not want to use this, cancel the init script and first set up your own and run init again.

#edit the config file with your wallet passphrase and rpc password
cp config.example config
nano config

After the build is complete start the marketmaker daemon

cd ~/mmtools
./start

In another window run:

cd ~/mmtools
./electrum rick
./electrum morty

Ready to go!

./orderbook rick morty