mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Show trade.price in margin based altcoin 'gettrade' console output
Fixes problem simlar to other CLI output changes in this PR. CLI's 'gettrade' output should show contracted trade.price instead of moving offer.price value for price margin based altcoin offers. This fixed bug did not affect any fiat or BSQ trades, only price margin based XMR trades, and API support for XMR trading has not yet been released.
This commit is contained in:
parent
542aa774b0
commit
55cb126e4f
@ -159,7 +159,7 @@ public class TradeFormat {
|
||||
private static final Function<TradeInfo, String> priceFormat = (t) ->
|
||||
t.getOffer().getBaseCurrencyCode().equals("BTC")
|
||||
? formatPrice(t.getTradePrice())
|
||||
: formatCryptoCurrencyPrice(t.getOffer().getPrice());
|
||||
: formatCryptoCurrencyPrice(t.getTradePrice());
|
||||
|
||||
private static final Function<TradeInfo, String> amountFormat = (t) ->
|
||||
t.getOffer().getBaseCurrencyCode().equals("BTC")
|
||||
|
Loading…
Reference in New Issue
Block a user