mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-02 07:26:53 +00:00
CI: Bump go version, linters and fix minor issues (#1130)
* CI: Bump go version, linters and fix minor issues * Bump version, fix loop variables * Revert * Rid TODOs now that 1.51 has been released
This commit is contained in:
@@ -96,7 +96,6 @@ func TestCreateKline(t *testing.T) {
|
||||
|
||||
tradeTotal := 24000
|
||||
var trades []order.TradeHistory
|
||||
rand.Seed(time.Now().Unix())
|
||||
execution := time.Now()
|
||||
for i := 0; i < tradeTotal; i++ {
|
||||
price, rndTime := 1000+float64(rand.Intn(1000)), rand.Intn(10) //nolint:gosec // no need to import crypo/rand for testing
|
||||
|
||||
@@ -333,7 +333,7 @@ func (k *Item) GetRelativeStrengthIndexOnClose(period int64) ([]float64, error)
|
||||
return ohlc.GetRelativeStrengthIndex(ohlc.Close, period)
|
||||
}
|
||||
|
||||
// GetRelativeStrengthIndex returns the relative strength index from the the
|
||||
// GetRelativeStrengthIndex returns the relative strength index from the
|
||||
// given price set and period.
|
||||
func (o *OHLC) GetRelativeStrengthIndex(option []float64, period int64) ([]float64, error) {
|
||||
if o == nil {
|
||||
|
||||
Reference in New Issue
Block a user