You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
}
// Calculate a price modifier based on the Gap between current price and Highest price in a given timefunc (k*Kraken) priceModifierBasedOnGapFromHighPrice(c*cli.Context) (float64, error) {
varOHLCIntervalstringswitchc.Int64("high-price-days-modifier") {
// TODO Add support for more OHLC Intervalscase7:
// 15 interval will give a week worth of dataOHLCInterval="15"default:
// 15 interval will give a week worth of dataOHLCInterval="15"
}
ohlcs, err:=k.Api.OHLCWithInterval(k.Pair, OHLCInterval)
iferr!=nil {
return0.0, fmt.Errorf("Failed to get OHLC Data for pair %s: %s", k.Pair, err)
}
a0ef830e8417a5f4b4eb9f394c698f76d101704a
The text was updated successfully, but these errors were encountered:
Add support for more OHLC Intervals
sats-stacker/exchange/kraken.go
Line 92 in 7ab02f2
a0ef830e8417a5f4b4eb9f394c698f76d101704a
The text was updated successfully, but these errors were encountered: