mirror of
https://github.com/bisq-network/bisq-api-reference.git
synced 2026-05-01 09:10:12 +00:00
Log comparison of margin price based offers' prices, not margins
This commit is contained in:
parent
fdc96bc455
commit
4f3ff57ca9
@ -76,7 +76,7 @@ import static protobuf.OfferDirection.SELL;
|
|||||||
* </pre>
|
* </pre>
|
||||||
* If your API daemon is running on a local regtest network (with a trading peer), you can pass the
|
* If your API daemon is running on a local regtest network (with a trading peer), you can pass the
|
||||||
* '--simulate-regtest-payment=true' option to the program to simulate the full trade protocol. The bot will print
|
* '--simulate-regtest-payment=true' option to the program to simulate the full trade protocol. The bot will print
|
||||||
* your regtest trading peer's CLI commands will be printed on the console, for you to copy/paste into another terminal.
|
* your regtest trading peer's CLI commands in the console, for you to copy/paste into another terminal.
|
||||||
* <pre>
|
* <pre>
|
||||||
* TakeBestPricedOfferToBuyXmr --password=api-password --port=api-port [--simulate-regtest-payment=true|false]
|
* TakeBestPricedOfferToBuyXmr --password=api-password --port=api-port [--simulate-regtest-payment=true|false]
|
||||||
* </pre>
|
* </pre>
|
||||||
@ -343,9 +343,9 @@ public class TakeBestPricedOfferToBuyXmr extends AbstractBot {
|
|||||||
: "N/A");
|
: "N/A");
|
||||||
|
|
||||||
if (offer.getUseMarketBasedPrice()) {
|
if (offer.getUseMarketBasedPrice()) {
|
||||||
var marginPriceLabel = format("Is offer's price margin (%s%%) >= bot's min market price margin (%s%%)?",
|
var marginPriceLabel = format("Is offer's margin based price (%s) >= bot's target price (%s)?",
|
||||||
offer.getMarketPriceMarginPct(),
|
offer.getPrice() + " BTC",
|
||||||
minMarketPriceMargin);
|
targetPrice + " BTC");
|
||||||
filterResultsByLabel.put(marginPriceLabel, isMarginGEMinMarketPriceMargin.test(offer, minMarketPriceMargin));
|
filterResultsByLabel.put(marginPriceLabel, isMarginGEMinMarketPriceMargin.test(offer, minMarketPriceMargin));
|
||||||
} else {
|
} else {
|
||||||
var fixedPriceLabel = format("Is offer's fixed-price (%s) >= bot's target price (%s)?",
|
var fixedPriceLabel = format("Is offer's fixed-price (%s) >= bot's target price (%s)?",
|
||||||
|
|||||||
@ -76,7 +76,7 @@ import static protobuf.OfferDirection.BUY;
|
|||||||
* </pre>
|
* </pre>
|
||||||
* If your API daemon is running on a local regtest network (with a trading peer), you can pass the
|
* If your API daemon is running on a local regtest network (with a trading peer), you can pass the
|
||||||
* '--simulate-regtest-payment=true' option to the program to simulate the full trade protocol. The bot will print
|
* '--simulate-regtest-payment=true' option to the program to simulate the full trade protocol. The bot will print
|
||||||
* your regtest trading peer's CLI commands will be printed on the console, for you to copy/paste into another terminal.
|
* your regtest trading peer's CLI commands in the console, for you to copy/paste into another terminal.
|
||||||
* <pre>
|
* <pre>
|
||||||
* TakeBestPricedOfferToSellXmr --password=api-password --port=api-port [--simulate-regtest-payment=true|false]
|
* TakeBestPricedOfferToSellXmr --password=api-password --port=api-port [--simulate-regtest-payment=true|false]
|
||||||
* </pre>
|
* </pre>
|
||||||
@ -343,9 +343,9 @@ public class TakeBestPricedOfferToSellXmr extends AbstractBot {
|
|||||||
: "N/A");
|
: "N/A");
|
||||||
|
|
||||||
if (offer.getUseMarketBasedPrice()) {
|
if (offer.getUseMarketBasedPrice()) {
|
||||||
var marginPriceLabel = format("Is offer's price margin (%s%%) <= bot's max market price margin (%s%%)?",
|
var marginPriceLabel = format("Is offer's margin based price (%s) <= bot's target price (%s)?",
|
||||||
offer.getMarketPriceMarginPct(),
|
offer.getPrice() + " BTC",
|
||||||
maxMarketPriceMargin);
|
targetPrice + " BTC");
|
||||||
filterResultsByLabel.put(marginPriceLabel, isMarginLEMaxMarketPriceMargin.test(offer, maxMarketPriceMargin));
|
filterResultsByLabel.put(marginPriceLabel, isMarginLEMaxMarketPriceMargin.test(offer, maxMarketPriceMargin));
|
||||||
} else {
|
} else {
|
||||||
var fixedPriceLabel = format("Is offer's fixed-price (%s) <= bot's target price (%s)?",
|
var fixedPriceLabel = format("Is offer's fixed-price (%s) <= bot's target price (%s)?",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user