Skip to main content
Glama
time_granularity.py694 B
"""Time granularity value object.""" from enum import Enum class TimeGranularity(str, Enum): """Time granularity for data aggregation. Attributes: RAW: Raw data (5-minute intervals for most indicators) FIFTEEN_MINUTES: 15-minute aggregates HOUR: Hourly aggregates DAY: Daily aggregates """ RAW = "raw" FIFTEEN_MINUTES = "fifteen_minutes" HOUR = "hour" DAY = "day" def to_api_param(self) -> str | None: """Convert to API parameter value. Returns: API parameter value or None for raw data. """ if self == TimeGranularity.RAW: return None return str(self.value)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ESJavadex/ree-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server