Class CexioClosePosition
java.lang.Object
org.knowm.xchange.cexio.dto.trade.CexioClosePosition
Author: brox Since: 2/5/14
-
Constructor Summary
ConstructorDescriptionCexioClosePosition
(String id, Long ctime, CexioPositionType ptype, String msymbol, BigDecimal price, CexioPositionPair pair, BigDecimal profit) -
Method Summary
-
Constructor Details
-
CexioClosePosition
public CexioClosePosition(String id, Long ctime, CexioPositionType ptype, String msymbol, BigDecimal price, CexioPositionPair pair, BigDecimal profit) - Parameters:
id
- the position idctime
- timestamp the position was closed atptype
- position type. long - buying product, profitable if product price grows; short - selling product, profitable if product price falls;msymbol
- currency, in which user gained or lostprice
- price the position was closed at, calculated as average of underlying executed orderspair
- trading pair as a list of two symbols, presents the pair according to requested URLprofit
- positive if user gained, negative - if lost, presented in currency msymbol
-
-
Method Details
-
getId
-
getCtime
-
getPtype
-
getMsymbol
-
getPrice
-
getPair
-
getProfit
-