Harmonia is a Java console application to allow participants in the USD Swap offer market to automatically submit swap offers at competitive rates. Harmonia also estimates and displays accrued interest throughout the bot's execution.
Harmonia requires a JDK, Apache Maven, and XChange 1.2.0-SNAPSHOT. You will, at the moment, need to clone https://github.com/timmolter/XChange, build, and install it. This will not be necessary when version 1.2.0 is published.
After cloning the repository, execute the following commands in the Harmonia base directory:
mvn compile
mvn exec:java -Dexec.mainClass="name.evdubs.harmonia.Harmonia"
This process should build, download dependencies, and run Harmonia
When Harmonia starts, you are prompted to enter your API Key and Secret Key. There are perhaps other, better methods of acquiring and using these details. Please note that anyone with access to the system you execute Harmonia on can dump the heap and find your keys.
Harmonia is a simple swap offer bot. It will attempt to offer swaps using the following logic:
- If a flash return rate is bid, hit that bid
- If a flash return rate is the best offer (lowest percentage), join the other offers
- If a fixed rate is the best offer, join the best fixed rate that is higher than the best fixed bid
Public domain
If you like this bot and would like for development to continue, please consider sending a donation to 1JSvYwhAWMCKB4zgvMFLDzhRp8u9Hv5Fat