Tweak class javadoc, log more bot config details

This commit is contained in:
ghubstan 2022-06-30 13:16:14 -03:00
parent dee8e5baa8
commit d59dc725ee
No known key found for this signature in database
GPG Key ID: E35592D6800A861E

View File

@ -32,10 +32,11 @@ import static java.math.RoundingMode.HALF_UP;
import static protobuf.OfferDirection.BUY; import static protobuf.OfferDirection.BUY;
/** /**
* This bot's general use case is to buy XMR with BTC at a low BTC price. It periodically checks the Sell XMR (Buy BTC) * This bot's general use case is to buy XMR with your BTC at a low BTC price. It periodically checks the
* market, and takes a configured maximum number of offers to sell you XMR according to criteria you define in the bot's * Sell XMR (Buy BTC) market, and takes a configured maximum number of offers to sell you XMR according to criteria you
* configuration file: TakeBestPricedOfferToSellXmr.properties (located in project's src/main/resources directory). * define in the bot's configuration file: <b>TakeBestPricedOfferToSellXmr.properties</b> (located in project's
* You will need to replace the default values in the configuration file for your use cases. * src/main/resources directory). You will need to replace the default values in the configuration file for your
* use cases.
* <p><br/> * <p><br/>
* After the maximum number of offers have been taken (good to start with 1), the bot will shut down the API daemon, * After the maximum number of offers have been taken (good to start with 1), the bot will shut down the API daemon,
* then itself. You have to confirm the offer maker's XMR payment(s) outside Bisq, then complete the trade(s) in * then itself. You have to confirm the offer maker's XMR payment(s) outside Bisq, then complete the trade(s) in
@ -220,8 +221,8 @@ public class TakeBestPricedOfferToSellXmr extends AbstractBot {
} catch (StatusRuntimeException fatalException) { } catch (StatusRuntimeException fatalException) {
shutdownAfterTakeOfferFailure(fatalException); shutdownAfterTakeOfferFailure(fatalException);
} }
maybeShutdownAfterSuccessfulTradeCreation(numOffersTaken, maxTakeOffers);
} }
maybeShutdownAfterSuccessfulTradeCreation(numOffersTaken, maxTakeOffers);
} }
/** /**
@ -239,6 +240,8 @@ public class TakeBestPricedOfferToSellXmr extends AbstractBot {
configsByLabel.put("Bot OS:", getOSName() + " " + getOSVersion()); configsByLabel.put("Bot OS:", getOSName() + " " + getOSVersion());
var network = getNetwork(); var network = getNetwork();
configsByLabel.put("BTC Network:", network); configsByLabel.put("BTC Network:", network);
configsByLabel.put("Dry Run?", isDryRun ? "YES" : "NO");
configsByLabel.put("Simulate Regtest Trade?", canSimulatePaymentSteps ? "YES" : "NO");
configsByLabel.put("My Payment Account:", ""); configsByLabel.put("My Payment Account:", "");
configsByLabel.put("\tPayment Account Id:", paymentAccount.getId()); configsByLabel.put("\tPayment Account Id:", paymentAccount.getId());
configsByLabel.put("\tAccount Name:", paymentAccount.getAccountName()); configsByLabel.put("\tAccount Name:", paymentAccount.getAccountName());