mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
print side
This commit is contained in:
parent
2453e2db73
commit
30e8cad7c8
|
@ -58,7 +58,12 @@ func (trader *KLineRegressionTrader) RunStrategy(ctx context.Context, strategy S
|
|||
select {
|
||||
|
||||
case order := <-trader.orderC:
|
||||
fmt.Print("o")
|
||||
switch order.Side {
|
||||
case types.SideTypeBuy:
|
||||
fmt.Print("B")
|
||||
case types.SideTypeSell:
|
||||
fmt.Print("S")
|
||||
}
|
||||
|
||||
var price float64
|
||||
if order.Type == types.OrderTypeLimit {
|
||||
|
|
Loading…
Reference in New Issue
Block a user