lib/ig_markets/cli/main.rb
def print_deal_confirmation(deal_confirmation)
          puts <<~MSG
            Deal ID: #{deal_confirmation.deal_id}
            Status: #{Format.symbol deal_confirmation.deal_status}
            Result: #{Format.symbol deal_confirmation.status}
          MSG

          print_deal_confirmation_profit_loss deal_confirmation

          puts "Reason: #{Format.symbol deal_confirmation.reason}" unless deal_confirmation.deal_status == :accepted
        end
# Prints out details of the passed deal confirmation.
Prints out details of the passed deal confirmation.
Prints out details of the passed deal confirmation .
def print_deal_confirmation(deal_confirmation)
          puts <<~MSG
            Deal ID: #{deal_confirmation.deal_id}
            Status: #{Format.symbol deal_confirmation.deal_status}
            Result: #{Format.symbol deal_confirmation.status}
          MSG
          print_deal_confirmation_profit_loss deal_confirmation
          puts "Reason: #{Format.symbol deal_confirmation.reason}" unless deal_confirmation.deal_status == :accepted
        end
def print_deal_confirmation ( deal_confirmation ) puts <<~MSG 
            Deal ID:  #{ deal_confirmation . deal_id } 
            Status:  #{ Format . symbol deal_confirmation . deal_status } 
            Result:  #{ Format . symbol deal_confirmation . status } MSG print_deal_confirmation_profit_loss deal_confirmation puts "Reason: #{Format.symbol deal_confirmation.reason}" unless deal_confirmation . deal_status == :accepted end
Prints out details of the passed deal confirmation.
Prints out details of the passed deal confirmation .
deal_confirmation