Package io.runon.trading
Class Trade
java.lang.Object
io.runon.trading.Trade
거래정보
- Author:
- macle
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPrice()가격얻기longgetTime()거래시간 얻기거래대금 얻기 설정하지 않으면 거래량 * 가격 설정하였으면 설정한 가격getType()거래유형 얻기 BUY, SELL거래량 얻기voidsetTradingPrice(BigDecimal tradingPrice) 거래대금 설정
-
Constructor Details
-
Trade
생성자- Parameters:
type- Typeprice- doublevolume- doubletime- long
-
-
Method Details
-
getType
거래유형 얻기 BUY, SELL- Returns:
- Type 거래유형
-
getVolume
거래량 얻기- Returns:
- double 거래량
-
getPrice
가격얻기- Returns:
- double 가격
-
getTime
public long getTime()거래시간 얻기- Returns:
- long 시간
-
getTradingPrice
거래대금 얻기 설정하지 않으면 거래량 * 가격 설정하였으면 설정한 가격- Returns:
- 거래대금
-
setTradingPrice
거래대금 설정- Parameters:
tradingPrice- 거래대금
-