Restore mid and bids

This commit is contained in:
Kevin Cotugno 2020-09-28 20:28:19 -07:00
parent 0f8d3f8f3a
commit 0aa16e41d4

View File

@ -91,8 +91,8 @@ func main() {
midPrice.SetRightAlign(true)
window.AddWidget(topAsks)
// window.AddWidget(midPrice)
// window.AddWidget(topBids)
window.AddWidget(midPrice)
window.AddWidget(topBids)
scene := exhibit.Scene{terminal, window}
@ -177,8 +177,7 @@ func main() {
price, size := flatten(entries)
asks[i] = ListEntry{Value: size.StringFixed(8),
Attrs: exhibit.Attributes{ForegroundColor:
exhibit.FGBlue}}
Attrs: exhibit.Attributes{ForegroundColor: exhibit.FGBlue}}
if i == 0 {
low = price