ticks: use mid price in toString()
This commit is contained in:
@ -75,6 +75,6 @@ public class OANDATickEvent extends TickEvent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return String.format("OANDATickEvent[%s,%s,%s]", getTime(), getInstrument(), getBid());
|
return String.format("OANDATickEvent[%s,%s,%s]", getTime(), getInstrument(), getMid());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -92,6 +92,6 @@ public class TrueFXTickEvent extends TickEvent {
|
|||||||
* Return a human readable representation of this event.
|
* Return a human readable representation of this event.
|
||||||
*/
|
*/
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return String.format("TrueFXTickEvent[%s,%s,%s,%s]", time, instrument, bid, ask);
|
return String.format("TrueFXTickEvent[%s,%s,%s]", time, instrument, getMid());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user