if(!current.close().isNull()) {
return new LastPriceImpl(Source.LAST_TRADE, current.close());
}
final SessionData previous = sessionSet().session(Type.DEFAULT_PREVIOUS);
if (!previous.isSettled().isNull() && previous.isSettled().value()) {
return new LastPriceImpl(Source.PREV_SETTLE, previous.settle());
}
if(!previous.close().isNull()) {
return new LastPriceImpl(Source.PREV_CLOSE, previous.close());
}
return LastPrice.NULL;
}