public static TradeType inverseTradeType(this TradeType tradeType) { return(tradeType.isBuy() ? TradeType.Sell : TradeType.Buy); }
public static int factor(this TradeType tradeType) { return((tradeType.isBuy()).factor()); }