Skip to content

Commit

Permalink
fix funx: bnc.SimpleKline.NotExist
Browse files Browse the repository at this point in the history
  • Loading branch information
dwdwow committed Aug 29, 2024
1 parent acae263 commit 20e175f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion bnc/kline.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func NewSimpleKlineFromStruct(k Kline) (kline SimpleKline) {
}

func (k SimpleKline) NotExist() bool {
return k[1] == 0
return k[0] == 0
}

func (k SimpleKline) OpenTime() int64 {
Expand Down
1 change: 0 additions & 1 deletion bnc/kline_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,4 +409,3 @@ func TestSimpleKlineSetters(t *testing.T) {
})
}
}

0 comments on commit 20e175f

Please sign in to comment.