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

import betterproto

from settrade.pb.google import type


@dataclass
class CandlestickV1(betterproto.Message):
    """
    Topic: proto/topic/cdl/<symbol>/<interval> Candlestick bar update of
    particular symbol and interval
    """

    # Subscribed symbol
    symbol: str = betterproto.string_field(1)
    # Subscribed interval
    interval: str = betterproto.string_field(2)
    # last sequence
    last_sequence: int = betterproto.int64_field(3)
    # Time
    time: datetime = betterproto.message_field(4)
    # Open
    open: type.Money = betterproto.message_field(5)
    # High
    high: type.Money = betterproto.message_field(6)
    # Low
    low: type.Money = betterproto.message_field(7)
    # Close
    close: type.Money = betterproto.message_field(8)
    # Volume
    volume: int = betterproto.int64_field(9)
    # Value
    value: type.Money = betterproto.message_field(10)
