Skip to main content
Version: testnet (v0.74)

spec.proto

path vega/data/v1/spec.proto

package vega.data.v1


Messages

Condition

Condition describes the condition that must be validated by the network

NameTypeDescription
operatorCondition.OperatorType of comparison to make on the value.
valuestringValue to be compared with by the operator.

Filter

Filter describes the conditions under which a data source data is considered of interest or not.

NameTypeDescription
keyPropertyKeyData source's data property key targeted by the filter.
conditionsrepeated ConditionConditions that should be matched by the data to be considered of interest.

InternalTimeTrigger

Trigger for an internal time data source.

NameTypeDescription
initialoptional int64Trigger when the vega time is greater or equal to this time, in Unix seconds.
everyint64Repeat the trigger every n seconds after the initial. If no time for initial was specified, begin repeating immediately.

PropertyKey

PropertyKey describes the property key contained in data source data.

NameTypeDescription
namestringName of the property.
typePropertyKey.TypeData type of the property.
number_decimal_placesoptional uint64Optional decimal place to be be applied on the provided value valid only for PropertyType of type DECIMAL and INTEGER

Enums

Condition.Operator

Operator describes the type of comparison.

NameNumberDescription
OPERATOR_UNSPECIFIED0The default value
OPERATOR_EQUALS1Verify if the property values are strictly equal or not.
OPERATOR_GREATER_THAN2Verify if the data source data value is greater than the Condition value.
OPERATOR_GREATER_THAN_OR_EQUAL3Verify if the data source data value is greater than or equal to the Condition value.
OPERATOR_LESS_THAN4Verify if the data source data value is less than the Condition value.
OPERATOR_LESS_THAN_OR_EQUAL5Verify if the data source data value is less or equal to than the Condition value.

PropertyKey.Type

Type describes the data type of properties that are supported by the data source engine.

NameNumberDescription
TYPE_UNSPECIFIED0The default value.
TYPE_EMPTY1Any type.
TYPE_INTEGER2Integer type.
TYPE_STRING3String type.
TYPE_BOOLEAN4Boolean type.
TYPE_DECIMAL5Any floating point decimal type.
TYPE_TIMESTAMP6Timestamp date type.