Restore mid and bids
This commit is contained in:
parent
0f8d3f8f3a
commit
0aa16e41d4
@ -91,8 +91,8 @@ func main() {
|
|||||||
midPrice.SetRightAlign(true)
|
midPrice.SetRightAlign(true)
|
||||||
|
|
||||||
window.AddWidget(topAsks)
|
window.AddWidget(topAsks)
|
||||||
// window.AddWidget(midPrice)
|
window.AddWidget(midPrice)
|
||||||
// window.AddWidget(topBids)
|
window.AddWidget(topBids)
|
||||||
|
|
||||||
scene := exhibit.Scene{terminal, window}
|
scene := exhibit.Scene{terminal, window}
|
||||||
|
|
||||||
@ -177,8 +177,7 @@ func main() {
|
|||||||
price, size := flatten(entries)
|
price, size := flatten(entries)
|
||||||
|
|
||||||
asks[i] = ListEntry{Value: size.StringFixed(8),
|
asks[i] = ListEntry{Value: size.StringFixed(8),
|
||||||
Attrs: exhibit.Attributes{ForegroundColor:
|
Attrs: exhibit.Attributes{ForegroundColor: exhibit.FGBlue}}
|
||||||
exhibit.FGBlue}}
|
|
||||||
|
|
||||||
if i == 0 {
|
if i == 0 {
|
||||||
low = price
|
low = price
|
||||||
|
Reference in New Issue
Block a user