Back to builder reference

Value ref

event_field

Field from latest event payload.

Custom observations can supply event payloads as well as built-in feeds. Inspect the capability catalogue for event-data operations available to this caller, then verify the type's schema and instrument coverage. A strategy that reads this event type's payload cannot also use that type's event_distance with direction='next', anywhere in the strategy.

Authoring flow:

  1. Call list_event_types().
  2. Pick event_type_id from a returned event type.
  3. Pick event_field from payload_schema.fields.

Example: {"kind": "event_field", "event_type_id": "macro.cpi", "event_field": "value"}

To compare a release against a previous one, set occurrences_back on a second ref and subtract: {"kind": "binary_expr", "op": "-", "left": {"kind": "event_field", "event_type_id": "macro.cpi", "event_field": "value"}, "right": {"kind": "event_field", "event_type_id": "macro.cpi", "event_field": "value", "occurrences_back": 1}}

Backing types

EventFieldValueRef

Required fields

event_fieldreqstringPayload field from payload_schema.fields. A field the event type's schema does not declare is refused, naming the declared fields.
event_type_idreqstringEvent type ID from list_event_types().

Optional fields

fillenum: none, previous'previous' carries forward; 'none' resolves only on the event bar.
history_unitanyOf (2 variants)Use 'fact' for distinct retained observation identities, ordered by event time, or 'period' for distinct YYYY-MM-DD data periods. Revisions do not consume steps. Explicit history requires fill='previous' and a single instrument or global series. Omit for existing release history.
kindstring-
max_age_secondsanyOf (2 variants)Staleness limit for carried-forward values, in seconds.
occurrences_backinteger0 = latest observation; N = the Nth previous observation in the chosen history unit. Revisions do not consume steps. When history_unit is omitted, steps count distinct data periods and values greater than zero require a system release series declaring 'period' and fill='previous'; custom feeds retain their existing restriction. Resolves as missing when fewer than occurrences_back+1 eligible observations are known.
period_fieldanyOf (2 variants)Explicit YYYY-MM-DD payload field for period history. Custom feeds must declare this field as a string. Omit for the built-in period field.
resolutionnullUnsupported on this value ref; only null is accepted.
symbolnullUnsupported on this value ref; only null is accepted.

Backing types

The IR ValueRef classes this builder field resolves to.

EventFieldValueRef
Quawd

A subscription SaaS platform for designing, backtesting, and paper-trading algorithmic trading strategies on equities and crypto — described in plain English to an AI agent, no code required.

© 2026 Quawd. All rights reserved.

Quawd is a software tool, not a broker-dealer or investment adviser, and does not provide investment advice. Trading involves substantial risk of loss. Backtested and hypothetical results have inherent limitations and are not indicative of future performance.