Class Trade

java.lang.Object
io.runon.trading.Trade

public class Trade extends Object
거래정보
Author:
macle
  • Constructor Details

    • Trade

      public Trade(Trade.Type type, BigDecimal price, BigDecimal volume, long time)
      생성자
      Parameters:
      type - Type
      price - double
      volume - double
      time - long
  • Method Details

    • getType

      public Trade.Type getType()
      거래유형 얻기 BUY, SELL
      Returns:
      Type 거래유형
    • getVolume

      public BigDecimal getVolume()
      거래량 얻기
      Returns:
      double 거래량
    • getPrice

      public BigDecimal getPrice()
      가격얻기
      Returns:
      double 가격
    • getTime

      public long getTime()
      거래시간 얻기
      Returns:
      long 시간
    • getTradingPrice

      public BigDecimal getTradingPrice()
      거래대금 얻기 설정하지 않으면 거래량 * 가격 설정하였으면 설정한 가격
      Returns:
      거래대금
    • setTradingPrice

      public void setTradingPrice(BigDecimal tradingPrice)
      거래대금 설정
      Parameters:
      tradingPrice - 거래대금