mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
types: remove duplciated klineCallback type
This commit is contained in:
parent
7abc799da4
commit
5148fadf67
|
@ -544,7 +544,7 @@ func (k KLineWindow) SlackAttachment() slack.Attachment {
|
|||
}
|
||||
}
|
||||
|
||||
type KLineCallback func(kline KLine)
|
||||
type KLineCallback func(k KLine)
|
||||
|
||||
type KValueType int
|
||||
|
||||
|
@ -642,9 +642,7 @@ func (k *KLineSeries) Length() int {
|
|||
|
||||
var _ Series = &KLineSeries{}
|
||||
|
||||
type KLineCallBack func(k KLine)
|
||||
|
||||
func KLineWith(symbol string, interval Interval, callback KLineCallBack) KLineCallBack {
|
||||
func KLineWith(symbol string, interval Interval, callback KLineCallback) KLineCallback {
|
||||
return func(k KLine) {
|
||||
if k.Symbol != symbol || (k.Interval != "" && k.Interval != interval) {
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue
Block a user