Skip to main content

EventTimeSeries

An EventTimeSeries is a timeseries built from the events in an event list, using one property of the events as the value. It is built when it is read, so it always reflects the latest events. See also EventCurve.

Construction​

FunctionDescription
EventTimeSeries(eventlist, property)Creates a new Event TimeSeries using an EventList and the name of the property to use for the TimeSeries values

Properties​

NameDescriptionType
calendarThe calendar that this timeseries usesCalendar
currencyThe ISO currency of this timeseriesString
descriptionThe description of this timeseriesString
eventThe name of the eventlist that this TimeSeries uses (in the form objectId:eventListId)String
filterOptional filter used to filter the events used to build this TimeSeriesString
identityThe configured identitiesObject
indexOptional date field to use for the index used to build this TimeSeries, defaults to startString
nameThe name of the timeseriesString
observedThe observed setting of the timeseries used for aggregatingTimeSeriesObserved
precisionThe precision configuration for this timeseriesPrecision
propertyThe name of the property in the event that this TimeSeries uses as the valueString
sourceThe source of this timeseriesString
startThe starting date/time of the timeseriesDate
tenorThe tenor of this timeseriesString
timezoneThe timezone of this timeseries, defaults to UTCString
unitsThe ISO units of this timeseriesString
valueTypeThe value type of the timeseries (TRACKED or BASIC)TimeValueType

Methods​

NameDescriptionReturn Type
build()Builds this Event TimeSeriesTimeSeries

It also has all the methods of a TimeSeries.

Example​

obj = ${object:"NGE.TRADES"}
obj.FILL_PRICE = EventTimeSeries("NGE.TRADES:FILLS", "price")
save obj