Package whitewerx.com.trapos.model

Examples of whitewerx.com.trapos.model.TradeType


       
        Matcher m = tradeRegex.matcher(delimitedTrade);
        if( !m.matches() )
            throw new TranslateException("Failed to translate trade.", delimitedTrade);

        TradeType buyOrSell = parseTradeTypeFrom(m.group(TRADE_TYPE));
        Rate tradeRate = parseTradeRateFrom(m.group(RATE));
        TradeMultiplier multiplier = parseTradeMultiplierFrom(m.group(MULTIPLIER));
        Amount tradeAmount = parseTradeAmountFrom(m.group(AMOUNT), multiplier, tradeRate);
       
        Trade trade = new Trade(buyOrSell, tradeAmount, tradeRate);
View Full Code Here

TOP

Related Classes of whitewerx.com.trapos.model.TradeType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.