// Timeframe is an argument of a request. Its the lapse between two candles.
//
// Accepts: 1, 5, 15, 60, 240, 1440 or 10080 as strings.
Timeframe is an argument of a request. Its the lapse between two candles.


// Timeframe is an argument of a request . Its the lapse between two candles . // // Accepts : 1 5 15 60 240 1440 or 10080 as strings .
func Timeframe(val string) Argument {
	return func(request *requests.Request) error {
		if !(val == "1" || val == "5" || val == "15" || val == "60" || val == "240" || val == "1440" || val == "10080") {
			return errors.New("timeframe must be one of the following numbers as string: 1, 5, 15, 60, 240, 1440 or 10080")
		}
		request.AddArgument("timeframe", val)
		return nil
	}
}
func Timeframe ( val string ) Argument { return func ( request * requests . Request ) error { if ! ( val == " " || val == " " || val == " " || val == " " || val == " " || val == " " || val == " " ) { return errors . New ( " " ) } request . AddArgument ( " " , val ) return nil } }
Timeframe is an argument of a request.
Timeframe is an argument of a request .