mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
strategy: remove HasTradableBase()
This commit is contained in:
parent
cd96c01131
commit
205921ea42
|
@ -289,13 +289,6 @@ func (s *Strategy) calculateQuantity(currentPrice fixedpoint.Value) fixedpoint.V
|
|||
return quantity
|
||||
}
|
||||
|
||||
func (s *Strategy) HasTradableBase(currentPrice fixedpoint.Value) bool {
|
||||
if s.Market.IsDustQuantity(s.Position.GetBase().Abs(), currentPrice) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, session *bbgo.ExchangeSession) error {
|
||||
s.session = session
|
||||
s.Market, _ = session.Market(s.Symbol)
|
||||
|
|
Loading…
Reference in New Issue
Block a user