TrueFXTickEvent - tabs to spaces
This commit is contained in:
@ -13,85 +13,85 @@ import org.joda.time.DateTime;
|
||||
*/
|
||||
@JsonPropertyOrder({ "instrument", "time", "bid", "ask" })
|
||||
public class TrueFXTickEvent extends TickEvent {
|
||||
@JsonFormat(pattern="yyyyMMdd HH:mm:ss.SSS")
|
||||
private DateTime time;
|
||||
private String instrument;
|
||||
private BigDecimal bid;
|
||||
private BigDecimal ask;
|
||||
@JsonFormat(pattern="yyyyMMdd HH:mm:ss.SSS")
|
||||
private DateTime time;
|
||||
private String instrument;
|
||||
private BigDecimal bid;
|
||||
private BigDecimal ask;
|
||||
|
||||
|
||||
/**
|
||||
* @return the time
|
||||
*/
|
||||
@Override
|
||||
public DateTime getTime() {
|
||||
return time;
|
||||
}
|
||||
/**
|
||||
* @return the time
|
||||
*/
|
||||
@Override
|
||||
public DateTime getTime() {
|
||||
return time;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param time the time to set
|
||||
*/
|
||||
public void setTime(DateTime time) {
|
||||
this.time = time;
|
||||
}
|
||||
/**
|
||||
* @param time the time to set
|
||||
*/
|
||||
public void setTime(DateTime time) {
|
||||
this.time = time;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the instrument
|
||||
*/
|
||||
@Override
|
||||
public String getInstrument() {
|
||||
return instrument;
|
||||
}
|
||||
/**
|
||||
* @return the instrument
|
||||
*/
|
||||
@Override
|
||||
public String getInstrument() {
|
||||
return instrument;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param instrument the instrument to set
|
||||
*/
|
||||
public void setInstrument(String instrument) {
|
||||
this.instrument = instrument;
|
||||
}
|
||||
/**
|
||||
* @param instrument the instrument to set
|
||||
*/
|
||||
public void setInstrument(String instrument) {
|
||||
this.instrument = instrument;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the bid
|
||||
*/
|
||||
@Override
|
||||
public BigDecimal getBid() {
|
||||
return bid;
|
||||
}
|
||||
/**
|
||||
* @return the bid
|
||||
*/
|
||||
@Override
|
||||
public BigDecimal getBid() {
|
||||
return bid;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bid the bid to set
|
||||
*/
|
||||
public void setBid(BigDecimal bid) {
|
||||
this.bid = bid;
|
||||
}
|
||||
/**
|
||||
* @param bid the bid to set
|
||||
*/
|
||||
public void setBid(BigDecimal bid) {
|
||||
this.bid = bid;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the ask
|
||||
*/
|
||||
@Override
|
||||
public BigDecimal getAsk() {
|
||||
return ask;
|
||||
}
|
||||
/**
|
||||
* @return the ask
|
||||
*/
|
||||
@Override
|
||||
public BigDecimal getAsk() {
|
||||
return ask;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ask the ask to set
|
||||
*/
|
||||
public void setAsk(BigDecimal ask) {
|
||||
this.ask = ask;
|
||||
}
|
||||
/**
|
||||
* @param ask the ask to set
|
||||
*/
|
||||
public void setAsk(BigDecimal ask) {
|
||||
this.ask = ask;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the midprice between bid and ask
|
||||
*/
|
||||
@Override
|
||||
public BigDecimal getMid() {
|
||||
return getMid(ask, bid);
|
||||
}
|
||||
/**
|
||||
* @return the midprice between bid and ask
|
||||
*/
|
||||
@Override
|
||||
public BigDecimal getMid() {
|
||||
return getMid(ask, bid);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a human readable representation of this event.
|
||||
*/
|
||||
public String toString() {
|
||||
return String.format("TrueFXTickEvent[%s, %s, %s]", time, instrument, getMid());
|
||||
}
|
||||
/**
|
||||
* Return a human readable representation of this event.
|
||||
*/
|
||||
public String toString() {
|
||||
return String.format("TrueFXTickEvent[%s, %s, ask: %s, mid: %s]", time, instrument, getAsk(), getMid());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user