# Generated by the protocol buffer compiler.  DO NOT EDIT!
# sources: exchinfodvv3.proto
# plugin: python-betterproto
from dataclasses import dataclass

import betterproto


class DerivMarketInfoV3DerivMarketStatus(betterproto.Enum):
    UNDEFINED_MARKET_STATUS = 0
    PRE_OPEN0 = 1
    PRE_OPEN1 = 2
    PRE_OPEN2 = 3
    OPEN0 = 4
    OPEN1 = 5
    OPEN2 = 6
    DAY = 14
    INTERMISSION1 = 7
    INTERMISSION2 = 8
    INTERMISSION3 = 9
    PRE_SETTLEMENT = 15
    SETTLEMENT = 10
    CLOSE = 11


@dataclass
class DerivExchangeInfoV3(betterproto.Message):
    """Topic: proto/topic/exchinfodvv3/<market> Deriv Exchange Info"""

    # Deriv Market info
    market_info: "DerivMarketInfoV3" = betterproto.message_field(1)


@dataclass
class DerivMarketInfoV3(betterproto.Message):
    # Market name
    name: str = betterproto.string_field(1)
    # Market status
    market_status: "DerivMarketInfoV3DerivMarketStatus" = betterproto.enum_field(2)
    # total volume
    total_volume: int = betterproto.int64_field(3)
    # total deal
    total_deal: int = betterproto.int64_field(4)
    # open interest
    open_interest: int = betterproto.int32_field(5)
