Package org.archfirst.bfoms.domain.account.brokerage

Examples of org.archfirst.bfoms.domain.account.brokerage.Position$LotCreationTimeComparator


   
    @Test
    public void testSerialization()
        throws JsonGenerationException, JsonMappingException, IOException {
       
        Position cashPosition = new Position();
        cashPosition.setCashPosition(ACCOUNT_ID, ACCOUNT_NAME, CASH_IN_ACCOUNT);

        Position instrumentPosition = new Position();
        instrumentPosition.setInstrumentPosition(
                ACCOUNT_ID, ACCOUNT_NAME, INS_SYMBOL, INS_NAME, INS_LAST_TRADE);
       
        Position lotPosition = new Position();
        lotPosition.setLotPosition(
                ACCOUNT_ID, ACCOUNT_NAME, INS_SYMBOL, INS_NAME, LOT_ID,
                LOT_CREATION_TIME, LOT_QUANTITY, INS_LAST_TRADE, LOT_PRICE_PAID);
       
        instrumentPosition.addChild(lotPosition);
        instrumentPosition.calculateInstrumentPosition();
View Full Code Here

TOP

Related Classes of org.archfirst.bfoms.domain.account.brokerage.Position$LotCreationTimeComparator

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.