# coding: utf-8

"""
    OANDA v20 REST API

    The full OANDA v20 REST API Specification. This specification defines how to interact with v20 Accounts, Trades, Orders, Pricing and more. To authenticate use the string 'Bearer ' followed by the token which can be obtained at https://www.oanda.com/demo-account/tpa/personal_token  # noqa: E501

    OpenAPI spec version: 3.0.23
    Contact: <EMAIL>
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six


class CandlestickData(object):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    """

    """
    Attributes:
      swagger_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    swagger_types = {
        'o': 'str',
        'h': 'str',
        'l': 'str',
        'c': 'str'
    }

    attribute_map = {
        'o': 'o',
        'h': 'h',
        'l': 'l',
        'c': 'c'
    }

    def __init__(self, o=None, h=None, l=None, c=None):  # noqa: E501
        """CandlestickData - a model defined in Swagger"""  # noqa: E501

        self._o = None
        self._h = None
        self._l = None
        self._c = None
        self.discriminator = None

        if o is not None:
            self.o = o
        if h is not None:
            self.h = h
        if l is not None:
            self.l = l
        if c is not None:
            self.c = c

    @property
    def o(self):
        """Gets the o of this CandlestickData.  # noqa: E501

        The first (open) price in the time-range represented by the candlestick.  # noqa: E501

        :return: The o of this CandlestickData.  # noqa: E501
        :rtype: str
        """
        return self._o

    @o.setter
    def o(self, o):
        """Sets the o of this CandlestickData.

        The first (open) price in the time-range represented by the candlestick.  # noqa: E501

        :param o: The o of this CandlestickData.  # noqa: E501
        :type: str
        """

        self._o = o

    @property
    def h(self):
        """Gets the h of this CandlestickData.  # noqa: E501

        The highest price in the time-range represented by the candlestick.  # noqa: E501

        :return: The h of this CandlestickData.  # noqa: E501
        :rtype: str
        """
        return self._h

    @h.setter
    def h(self, h):
        """Sets the h of this CandlestickData.

        The highest price in the time-range represented by the candlestick.  # noqa: E501

        :param h: The h of this CandlestickData.  # noqa: E501
        :type: str
        """

        self._h = h

    @property
    def l(self):
        """Gets the l of this CandlestickData.  # noqa: E501

        The lowest price in the time-range represented by the candlestick.  # noqa: E501

        :return: The l of this CandlestickData.  # noqa: E501
        :rtype: str
        """
        return self._l

    @l.setter
    def l(self, l):
        """Sets the l of this CandlestickData.

        The lowest price in the time-range represented by the candlestick.  # noqa: E501

        :param l: The l of this CandlestickData.  # noqa: E501
        :type: str
        """

        self._l = l

    @property
    def c(self):
        """Gets the c of this CandlestickData.  # noqa: E501

        The last (closing) price in the time-range represented by the candlestick.  # noqa: E501

        :return: The c of this CandlestickData.  # noqa: E501
        :rtype: str
        """
        return self._c

    @c.setter
    def c(self, c):
        """Sets the c of this CandlestickData.

        The last (closing) price in the time-range represented by the candlestick.  # noqa: E501

        :param c: The c of this CandlestickData.  # noqa: E501
        :type: str
        """

        self._c = c

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.swagger_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = value

        return result

    def to_str(self):
        """Returns the string representation of the model"""
        return pprint.pformat(self.to_dict())

    def __repr__(self):
        """For `print` and `pprint`"""
        return self.to_str()

    def __eq__(self, other):
        """Returns true if both objects are equal"""
        if not isinstance(other, CandlestickData):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        return not self == other

# coding: utf-8

"""
    OANDA v20 REST API

    The full OANDA v20 REST API Specification. This specification defines how to interact with v20 Accounts, Trades, Orders, Pricing and more. To authenticate use the string 'Bearer ' followed by the token which can be obtained at https://www.oanda.com/demo-account/tpa/personal_token  # noqa: E501

    OpenAPI spec version: 3.0.23
    Contact: <EMAIL>
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six


class CandlestickData(object):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    """

    """
    Attributes:
      swagger_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    swagger_types = {
        'o': 'str',
        'h': 'str',
        'l': 'str',
        'c': 'str'
    }

    attribute_map = {
        'o': 'o',
        'h': 'h',
        'l': 'l',
        'c': 'c'
    }

    def __init__(self, o=None, h=None, l=None, c=None):  # noqa: E501
        """CandlestickData - a model defined in Swagger"""  # noqa: E501

        self._o = None
        self._h = None
        self._l = None
        self._c = None
        self.discriminator = None

        if o is not None:
            self.o = o
        if h is not None:
            self.h = h
        if l is not None:
            self.l = l
        if c is not None:
            self.c = c

    @property
    def o(self):
        """Gets the o of this CandlestickData.  # noqa: E501

        The first (open) price in the time-range represented by the candlestick.  # noqa: E501

        :return: The o of this CandlestickData.  # noqa: E501
        :rtype: str
        """
        return self._o

    @o.setter
    def o(self, o):
        """Sets the o of this CandlestickData.

        The first (open) price in the time-range represented by the candlestick.  # noqa: E501

        :param o: The o of this CandlestickData.  # noqa: E501
        :type: str
        """

        self._o = o

    @property
    def h(self):
        """Gets the h of this CandlestickData.  # noqa: E501

        The highest price in the time-range represented by the candlestick.  # noqa: E501

        :return: The h of this CandlestickData.  # noqa: E501
        :rtype: str
        """
        return self._h

    @h.setter
    def h(self, h):
        """Sets the h of this CandlestickData.

        The highest price in the time-range represented by the candlestick.  # noqa: E501

        :param h: The h of this CandlestickData.  # noqa: E501
        :type: str
        """

        self._h = h

    @property
    def l(self):
        """Gets the l of this CandlestickData.  # noqa: E501

        The lowest price in the time-range represented by the candlestick.  # noqa: E501

        :return: The l of this CandlestickData.  # noqa: E501
        :rtype: str
        """
        return self._l

    @l.setter
    def l(self, l):
        """Sets the l of this CandlestickData.

        The lowest price in the time-range represented by the candlestick.  # noqa: E501

        :param l: The l of this CandlestickData.  # noqa: E501
        :type: str
        """

        self._l = l

    @property
    def c(self):
        """Gets the c of this CandlestickData.  # noqa: E501

        The last (closing) price in the time-range represented by the candlestick.  # noqa: E501

        :return: The c of this CandlestickData.  # noqa: E501
        :rtype: str
        """
        return self._c

    @c.setter
    def c(self, c):
        """Sets the c of this CandlestickData.

        The last (closing) price in the time-range represented by the candlestick.  # noqa: E501

        :param c: The c of this CandlestickData.  # noqa: E501
        :type: str
        """

        self._c = c

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.swagger_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = value

        return result

    def to_str(self):
        """Returns the string representation of the model"""
        return pprint.pformat(self.to_dict())

    def __repr__(self):
        """For `print` and `pprint`"""
        return self.to_str()

    def __eq__(self, other):
        """Returns true if both objects are equal"""
        if not isinstance(other, CandlestickData):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        return not self == other

# coding: utf-8 OANDA v20 REST API      The full OANDA v20 REST API Specification. This specification defines how to interact with v20 Accounts, Trades, Orders, Pricing and more. To authenticate use the string 'Bearer ' followed by the token which can be obtained at https://www.oanda.com/demo-account/tpa/personal_token  # noqa: E501      OpenAPI spec version: 3.0.23     Contact: <EMAIL>     Generated by: https://github.com/swagger-api/swagger-codegen.git # noqa: F401 NOTE: This class is auto generated by the swagger code generator program.      Do not edit the class manually. Attributes:       swagger_types (dict): The key is attribute name                             and the value is attribute type.       attribute_map (dict): The key is attribute name                             and the value is json key in definition. # noqa: E501 CandlestickData - a model defined in Swagger # noqa: E501 Gets the o of this CandlestickData.  # noqa: E501          The first (open) price in the time-range represented by the candlestick.  # noqa: E501          :return: The o of this CandlestickData.  # noqa: E501         :rtype: str Sets the o of this CandlestickData.          The first (open) price in the time-range represented by the candlestick.  # noqa: E501          :param o: The o of this CandlestickData.  # noqa: E501         :type: str Gets the h of this CandlestickData.  # noqa: E501          The highest price in the time-range represented by the candlestick.  # noqa: E501          :return: The h of this CandlestickData.  # noqa: E501         :rtype: str Sets the h of this CandlestickData.          The highest price in the time-range represented by the candlestick.  # noqa: E501          :param h: The h of this CandlestickData.  # noqa: E501         :type: str Gets the l of this CandlestickData.  # noqa: E501          The lowest price in the time-range represented by the candlestick.  # noqa: E501          :return: The l of this CandlestickData.  # noqa: E501         :rtype: str Sets the l of this CandlestickData.          The lowest price in the time-range represented by the candlestick.  # noqa: E501          :param l: The l of this CandlestickData.  # noqa: E501         :type: str Gets the c of this CandlestickData.  # noqa: E501          The last (closing) price in the time-range represented by the candlestick.  # noqa: E501          :return: The c of this CandlestickData.  # noqa: E501         :rtype: str Sets the c of this CandlestickData.          The last (closing) price in the time-range represented by the candlestick.  # noqa: E501          :param c: The c of this CandlestickData.  # noqa: E501         :type: str Returns the model properties as a dict Returns the string representation of the model For `print` and `pprint` Returns true if both objects are equal Returns true if both objects are not equal