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
indicator_value.py•765 B
"""Indicator value entity."""
from dataclasses import dataclass
from datetime import datetime as dt
from ..value_objects import GeographicScope
@dataclass
class IndicatorValue:
"""Represents a single value of an indicator at a point in time.
Attributes:
value: The numeric value
datetime: Timestamp of the value
datetime_utc: UTC timestamp
geo_scope: Geographic scope of this value
"""
value: float
datetime: dt
datetime_utc: dt
geo_scope: GeographicScope
def __str__(self) -> str:
"""String representation."""
return (
f"IndicatorValue(value={self.value}, "
f"datetime={self.datetime.isoformat()}, "
f"geo={self.geo_scope.value})"
)