private Tick getFullData ( byte [ ] bin , int dec , Tick tick ) { long lastTradedtime = convertToLong ( getBytes ( bin , 44 , 48 ) ) * 1000 ; if ( isValidDate ( lastTradedtime ) ) { tick . setLastTradedTime ( new Date ( lastTradedtime ) ) ; } else { tick . setLastTradedTime ( null ) ; } tick . setOi ( convertToDouble ( getBytes ( bin , 48 , 52 ) ) ) ; tick . setOpenInterestDayHigh ( convertToDouble ( getBytes ( bin , 52 , 56 ) ) ) ; tick . setOpenInterestDayLow ( convertToDouble ( getBytes ( bin , 56 , 60 ) ) ) ; long tickTimeStamp = convertToLong ( getBytes ( bin , 60 , 64 ) ) * 1000 ; if ( isValidDate ( tickTimeStamp ) ) { tick . setTickTimestamp ( new Date ( tickTimeStamp ) ) ; } else { tick . setTickTimestamp ( null ) ; } tick . setMarketDepth ( getDepthData ( bin , dec , 64 , 184 ) ) ; return tick ; }
Parses full mode data .