mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
add more order info the local order book printing
This commit is contained in:
parent
2f326d0fed
commit
3f8f5616d7
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user