Skip to main content
Version: mainnet (v0.71)

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.
conditionsConditionConditions that should be matched by the data to be considered of interest.

PropertyKey

PropertyKey describes the property key contained in data source data.

NameTypeDescription
namestringName of the property.
typePropertyKey.TypeData type of the property.
number_decimal_placesuint64Optional 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.