timeframe.in_seconds
Timeframe length in seconds (months count as 30 days).
timeframe.in_seconds(timeframe: simple string) -> int
Parameters
timeframesimple string: "5m", "1h", "4h", "1D", "1W", "1M" (also "D", "60", "240")
Example
mins = timeframe.in_seconds("1h") / 60