Skip to content

Instantly share code, notes, and snippets.

@GLitchfield
Created January 8, 2014 20:52
Show Gist options
  • Save GLitchfield/8324435 to your computer and use it in GitHub Desktop.
Save GLitchfield/8324435 to your computer and use it in GitHub Desktop.
interface LastPrice {
/**
* In order of lowest to highest priority
*/
enum Source {
NULL, PREV_SETTLE, LAST_TRADE, CLOSE, SETTLE
}
Source source();
Price price();
LastPrice NULL = new LastPrice() {
@Override
public Source source() {return Source.NULL;}
@Override
public Price price() {return Price.NULL;}
};
}
LastPrice lastPrice();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment