99 Commits

Author SHA1 Message Date
ghubstan
618268805f
Describe btc bots, refer to class javadocs 2022-07-04 15:04:22 -03:00
ghubstan
fd31922e97
Explain runnable jars, create header links 2022-07-03 16:34:48 -03:00
ghubstan
24a7e098aa
Improve logging, fix bad file list (ls) cmd 2022-07-03 14:29:10 -03:00
ghubstan
483b2d8eab
Save README work in progress 2022-07-02 11:59:17 -03:00
ghubstan
4133a4c047
Tidy up and document TakeBestPricedOfferToSellBsq bot 2022-07-01 16:18:23 -03:00
ghubstan
8456fd9fb6
Tweak log statement 2022-07-01 16:10:38 -03:00
ghubstan
9907d8f5f8
Fix javadoc about maximum tx fee rate constraint 2022-07-01 16:00:17 -03:00
ghubstan
3c08b0bf46
Tweak log statement 2022-07-01 15:45:14 -03:00
ghubstan
661ef2fa41
Add link to Config.java in class docs
Hideous, but navigable.
2022-07-01 15:29:02 -03:00
ghubstan
7df2533469
Tidy up and document TakeBestPricedOfferToBuyBsq bot 2022-07-01 12:40:21 -03:00
ghubstan
5384d3ac59
Fix logging in AbstractBot's maybeShutdownAfterSuccessfulSwap() 2022-07-01 12:39:17 -03:00
ghubstan
1f45116849
Tidy up and document TakeBestPricedOfferToSellBtc bot 2022-07-01 11:21:31 -03:00
ghubstan
034172b8f4
Tweak comment about encrypting wallet with CLI 2022-07-01 11:20:43 -03:00
ghubstan
e138d35761
Tidy up and document TakeBestPricedOfferToBuyBtc bot 2022-06-30 18:10:01 -03:00
ghubstan
52a6d29687
Show how to set preferredTradingPeers config 2022-06-30 18:08:55 -03:00
ghubstan
4f3ff57ca9
Log comparison of margin price based offers' prices, not margins 2022-06-30 18:07:20 -03:00
ghubstan
fdc96bc455
Document and tidy up TakeBestPricedOfferToBuyXmr bot 2022-06-30 13:17:46 -03:00
ghubstan
d59dc725ee
Tweak class javadoc, log more bot config details 2022-06-30 13:16:14 -03:00
ghubstan
dee8e5baa8
Add convenience for lgging combination of copy/paste CLI cmds for peer 2022-06-30 13:13:35 -03:00
ghubstan
dd2619bd3b
Tidy up "Here are today's completed trades" logging 2022-06-30 12:55:32 -03:00
ghubstan
44ca04af87
Log a CLI gettrade command for a simulated trading peer 2022-06-30 12:54:46 -03:00
ghubstan
28deeb81e0
[WIP] Save java-examples/README.md 2022-06-29 19:38:59 -03:00
ghubstan
195b62c477
Tidy up and javadoc the TakeBestPricedOfferToSellXmr bot 2022-06-29 19:28:13 -03:00
ghubstan
a355138b47
Remove some verbose log statements, and a sleep. 2022-06-29 19:26:08 -03:00
ghubstan
9cb798f427
Back out log statement 2022-06-29 19:16:29 -03:00
ghubstan
e87d3e3191
Move some log statements to debug level 2022-06-29 19:06:36 -03:00
ghubstan
8ed39eb8bf
Improve some of the progress logging 2022-06-29 18:50:57 -03:00
ghubstan
9307c08d4d
Treat some wallet-is-locked errors as trivial 2022-06-29 18:07:34 -03:00
ghubstan
897401ba0e
Add null checks to print payacct/offer/trade utils 2022-06-29 18:05:37 -03:00
ghubstan
c9443d1472
Fill out TakeBestPricedOfferToSellXmr class level doc 2022-06-29 15:32:38 -03:00
ghubstan
1f09060975
Extend option help col-width (no wrapping) 2022-06-29 15:30:50 -03:00
ghubstan
02000c0b85
Create runnable jars for new XMR bots 2022-06-28 19:53:26 -03:00
ghubstan
49a8c61bd2
Refactor the TakeBestPricedOfferTo*Btc bots
The TakeBestPricedOfferTo*Btc needed to be split up so they are specific
to fiat offers, and this change adds new TakeBestPricedOfferTo*Xmr bots
just for XMR.

This simplifies the the non-bsq-swap bots;  documenting, coding,
configuring, and logging the taking of both fiat and xmr (altcoin)
offers in the same bots was getting confusing, and that's going to
turn away potential users.

This refactoring means there are six bots now, and it forced considerable
refactoring in all of them.

This commit is the bulk of the work for the PR, but there will be more
changes after everything is tested again, and comments are adjusted.
2022-06-28 19:52:05 -03:00
Christoph Atteneder
0148f2ab66
Merge pull request #10 from ghubstan/parse-validate-args-before-password-prompt
Read wallet password in bot instance, not main()
2022-06-26 21:31:29 +02:00
Christoph Atteneder
7ad5565545
Merge pull request #9 from ghubstan/filter-gettrades-on-date
Show closed trades since midnight today
2022-06-26 21:31:07 +02:00
Christoph Atteneder
4a6b1a57ef
Merge pull request #8 from ghubstan/close-payment-simulator-bot-grpc-channel
Make GrpcStubs channel closeable from calling bot
2022-06-26 21:30:58 +02:00
Christoph Atteneder
b0e36c3359
Merge pull request #7 from ghubstan/fix-bugs-related-to-margin-config
Fix bugs related to margin config
2022-06-26 21:30:49 +02:00
Christoph Atteneder
b9e472f7ea
Merge pull request #6 from ghubstan/enable-walletpwd-prompt
Uncomment wallet password prompt, and validate input during startup
2022-06-26 21:30:37 +02:00
ghubstan
c5d0259833
Print the day's BSQ swaps after each completed swap 2022-06-26 12:24:23 -03:00
ghubstan
03102125b5
Read wallet password in bot instance, not main()
- Remove some duplicated code in the bots' main() methods.
- Validate wallet password first.
- Fix a bot config text alignment problem.
2022-06-26 11:52:46 -03:00
ghubstan
ee90359ebb
Delete bad log statement 2022-06-25 15:51:47 -03:00
ghubstan
0b245b9998
Show closed trades since midnight today
Don't show entire trade history at end of bot run.

Tweak some log statements.
2022-06-25 15:46:47 -03:00
ghubstan
aee939a887
Make GrpcStubs channel closeable by calling bot
Each bot has its own gRPC channel and set of service stubs,
and a single bot's channel & stubs last the bot's lifetime.
However, RegtestTradePaymentSimulator instance is a bot too, with it's
own channel & stubs, which should be closed at the end of each run().
2022-06-25 14:11:06 -03:00
ghubstan
bf876a9771
Fix 'is margin price >= target price' filter, and some typos 2022-06-25 12:25:50 -03:00
ghubstan
25f12c8232
Improve take offer criteria summary text 2022-06-25 11:45:35 -03:00
ghubstan
b8bec32574
Fix typo 2022-06-25 11:04:14 -03:00
ghubstan
b0b6c9c771
Uncomment wallet password prompt, and validate input during startup
- When bot is run from a *nix terminal, password input will not be echoed.
- When bot is run from an IDE, it's virtual terminal will echo the input
  (cannot be avoided).

Validate the input during startup, to fail early instead of waiting for
the right offer to take, then failing to unlock the wallet with an
incorrect password.
2022-06-25 11:00:28 -03:00
ghubstan
d08dc57ab8
Add newline to end of file 2022-06-25 10:25:57 -03:00
ghubstan
329e39c3c4
Ignore generated dist folders and conf files 2022-06-24 14:50:24 -03:00
ghubstan
14d35527d9
Make java-examples a dist build, add script to build runnable bot jars 2022-06-24 14:48:27 -03:00