You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
469 B
18 lines
469 B
package strategy |
|
|
|
import "sig-pub/pkg/types" |
|
|
|
// 多k线周期策略 |
|
type MultiIntervalStrategy interface { |
|
Strategy |
|
DriverInterval() types.Interval // 驱动k线周期, 当驱动周期k线更新时则判断调用Update方法 |
|
SubscribeIntervals() []types.Interval // 订阅k线周期, 当同一时间的订阅周期都更新时调用Update方法 |
|
} |
|
|
|
type MultiExchangeStrategy interface { |
|
Strategy |
|
} |
|
|
|
type MultiIntervalExchangeStrategy interface { |
|
Strategy |
|
}
|
|
|