timescale: Get the correct timescale factor for periodic data

View source: R/getAssets.R

timescaleR Documentation

Get the correct timescale factor for periodic data

Description

Return the correct timescale for daily,weekly,monthly, etc.

Usage

timescale(period = "daily", interval = NULL, crypto = FALSE)

Arguments

period

period: "intraday", "daily", "weekly", "monthly"

interval

NULL for anything but intraday otherwise "1min", "5min", "15min", "30min", "60min"

crypto

boolean for cryptomarkets (24hrs)

Value

numeric


shill1729/ravapi documentation built on June 1, 2025, 6:05 p.m.