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

data_source.proto

path vega/data_source.proto

package vega


Messages

DataSourceDefinition

DataSourceDefinition represents the top level object that deals with data sources. DataSourceDefinition can be external or internal, with whatever number of data sources are defined for each type in the child objects below.

NameTypeDescription
internalDataSourceDefinitionInternal
externalDataSourceDefinitionExternal

DataSourceDefinitionExternal

DataSourceDefinitionExternal is the top level object used for all external data sources. It contains one of any of the defined `SourceType` variants.

NameTypeDescription
oracleDataSourceSpecConfiguration

DataSourceDefinitionInternal

DataSourceDefinitionInternal is the top level object used for all internal data sources. It contains one of any of the defined `SourceType` variants.

NameTypeDescription
timeDataSourceSpecConfigurationTime

DataSourceSpec

Data source spec describes the data source base that a product or a risk model wants to get from the data source engine. This message contains additional information used by the API.

NameTypeDescription
idstringHash generated from the DataSpec data.
created_atint64Creation date and time
updated_atint64Last Updated timestamp
dataDataSourceDefinition
statusDataSourceSpec.StatusStatus describes the status of the data source spec

DataSourceSpecConfiguration

All types of external data sources use the same configuration set for meeting requirements in order for the data to be useful for Vega - valid signatures and matching filters.

NameTypeDescription
signersdata.v1.SignerSigners is the list of authorized signatures that signed the data for this source. All the signatures in the data source data should be contained in this external source. All the signatures in the data should be contained in this list.
filtersdata.v1.FilterFilters describes which source data are considered of interest or not for the product (or the risk model).

DataSourceSpecConfigurationTime

DataSourceSpecConfigurationTime is the internal data source used for emitting timestamps.

NameTypeDescription
conditionsdata.v1.ConditionConditions that the timestamps should meet in order to be considered.

ExternalDataSourceSpec

NameTypeDescription
specDataSourceSpec

Enums

DataSourceSpec.Status

Status describe the status of the data source spec

NameNumberDescription
STATUS_UNSPECIFIED0Default value.
STATUS_ACTIVE1STATUS_ACTIVE describes an active data source spec.
STATUS_DEACTIVATED2STATUS_DEACTIVATED describes an data source spec that is not listening to data anymore.