ticks: use mid price in toString()

This commit is contained in:
2018-05-30 16:54:18 -07:00
parent ac06e6a658
commit 2a97579ac0
2 changed files with 2 additions and 2 deletions

View File

@ -75,6 +75,6 @@ public class OANDATickEvent extends TickEvent {
}
public String toString() {
return String.format("OANDATickEvent[%s,%s,%s]", getTime(), getInstrument(), getBid());
return String.format("OANDATickEvent[%s,%s,%s]", getTime(), getInstrument(), getMid());
}
}

View File

@ -92,6 +92,6 @@ public class TrueFXTickEvent extends TickEvent {
* Return a human readable representation of this event.
*/
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());
}
}