add more order info the local order book printing

This commit is contained in:
c9s 2021-05-09 20:03:16 +08:00
parent 2f326d0fed
commit 3f8f5616d7

View File

@ -61,11 +61,11 @@ func (b *LocalActiveOrderBook) orderUpdateHandler(order types.Order) {
func (b *LocalActiveOrderBook) Print() {
for _, o := range b.Bids.Orders() {
log.Infof("bid order: %d -> %s", o.OrderID, o.Status)
log.Infof("%s bid order: %d @ %f -> %s", o.Symbol, o.OrderID, o.Price, o.Status)
}
for _, o := range b.Asks.Orders() {
log.Infof("ask order: %d -> %s", o.OrderID, o.Status)
log.Infof("%s ask order: %d @ %f -> %s", o.Symbol, o.OrderID, o.Price, o.Status)
}
}