mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 01:01:56 +00:00
bbgo: move fixedpoint one const to consts.go
This commit is contained in:
parent
62fb09c8d9
commit
c2eec1e72b
5
pkg/bbgo/consts.go
Normal file
5
pkg/bbgo/consts.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
package bbgo
|
||||
|
||||
import "github.com/c9s/bbgo/pkg/fixedpoint"
|
||||
|
||||
var one = fixedpoint.One
|
|
@ -38,8 +38,6 @@ type ProtectiveStopLoss struct {
|
|||
stopLossOrder *types.Order
|
||||
}
|
||||
|
||||
var one = fixedpoint.One
|
||||
|
||||
func (s *ProtectiveStopLoss) Subscribe(session *ExchangeSession) {
|
||||
// use 1m kline to handle roi stop
|
||||
session.Subscribe(types.KLineChannel, s.Symbol, types.SubscribeOptions{Interval: types.Interval1m})
|
||||
|
|
Loading…
Reference in New Issue
Block a user