diff --git a/freqtrade/main.py b/freqtrade/main.py index 34d4cdbc7..46634a423 100755 --- a/freqtrade/main.py +++ b/freqtrade/main.py @@ -93,7 +93,7 @@ def execute_sell(trade: Trade, limit: float) -> None: trade.close_date = datetime.utcnow() fmt_exp_profit = round(trade.calc_profit(limit) * 100, 2) - message = '*{}:* Selling [{}]({}) with limit `{:f} (profit: ~{}%)`'.format( + message = '*{}:* Selling [{}]({}) with limit `{:.8f} (profit: ~{:.2f}%)`'.format( trade.exchange, trade.pair.replace('_', '/'), exchange.get_pair_detail_url(trade.pair), @@ -189,7 +189,7 @@ def create_trade(stake_amount: float) -> Optional[Trade]: order_id = exchange.buy(pair, buy_limit, amount) # Create trade entity and return - message = '*{}:* Buying [{}]({}) with limit `{:f}`'.format( + message = '*{}:* Buying [{}]({}) with limit `{:.8f}`'.format( exchange.get_name().upper(), pair.replace('_', '/'), exchange.get_pair_detail_url(pair), diff --git a/freqtrade/rpc/telegram.py b/freqtrade/rpc/telegram.py index 1dcf10fa9..1759d6277 100644 --- a/freqtrade/rpc/telegram.py +++ b/freqtrade/rpc/telegram.py @@ -129,9 +129,9 @@ def _status(bot: Bot, update: Update) -> None: *Current Pair:* [{pair}]({market_url}) *Open Since:* `{date}` *Amount:* `{amount}` -*Open Rate:* `{open_rate}` +*Open Rate:* `{open_rate:.8f}` *Close Rate:* `{close_rate}` -*Current Rate:* `{current_rate}` +*Current Rate:* `{current_rate:.8f}` *Close Profit:* `{close_profit}` *Current Profit:* `{current_profit:.2f}%` *Open Order:* `{open_order}` @@ -194,7 +194,7 @@ def _profit(bot: Bot, update: Update) -> None: bp_pair, bp_rate = best_pair markdown_msg = """ -*ROI:* `{profit_btc:.6f} ({profit:.2f}%)` +*ROI:* `{profit_btc:.8f} ({profit:.2f}%)` *Trade Count:* `{trade_count}` *First Trade opened:* `{first_trade_date}` *Latest Trade opened:* `{latest_trade_date}`