Class MercadoBitcoinTransaction


  • public class MercadoBitcoinTransaction
    extends Object
    Author:
    Matija Mazi, Felipe Micaroni Lalli
    • Constructor Detail

      • MercadoBitcoinTransaction

        public MercadoBitcoinTransaction​(long date,
                                         long tid,
                                         BigDecimal price,
                                         BigDecimal amount,
                                         String type)
        Constructor
        Parameters:
        date - Unix timestamp date and time
        tid - Transaction id
        price - BTC price in BRL
        amount - BTC amount
        type - buy or sell
    • Method Detail

      • getTid

        public long getTid()
      • getDate

        public long getDate()
      • calculateFeeBtc

        public BigDecimal calculateFeeBtc()
      • calculateFeeUsd

        public BigDecimal calculateFeeUsd()
      • getType

        public String getType()