Message: MarketStateAttributeMetadata

File: WebAPI/metadata_2.proto

Description

Market State attribute metadata

Note: To apply a metadata update one must follow rules:

1.  If an update contains a MarketStateAttributeMetadata with a combination of “name” and “level” fields values, which does not exist in the local state, then it must be added to it.

2.  If an update contains a MarketStateAttributeMetadata with a combination of “name” and “level” fields values, which already exists in the local state, then:

If the field “deleted” is present and set to true - this Attribute should be deleted from the local state.

Otherwise updates for value_metadata should be applied (see MarketStateValueMetadata comments).

Used in

MarketStateMetadataReport

Fields

name

Type: string

Description: Attribute name

level

Type: uint32

Description: Attribute level in attributes hierarchy

value_metadata

Type: MarketStateValueMetadata

Description: Attribute possible values metadata

deleted

Type: bool

Description: If present and true - attribute should be deleted from metadata