Class MercadoBitcoinTransaction

java.lang.Object
org.knowm.xchange.mercadobitcoin.dto.marketdata.MercadoBitcoinTransaction

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

    • 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 Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getTid

      public long getTid()
    • getPrice

      public BigDecimal getPrice()
    • getAmount

      public BigDecimal getAmount()
    • getDate

      public long getDate()
    • calculateFeeBtc

      public BigDecimal calculateFeeBtc()
    • calculateFeeUsd

      public BigDecimal calculateFeeUsd()
    • getType

      public String getType()