天择加密量化开放框架下载
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

223 lines
6.8 KiB

1 year ago
  1. # coding: utf-8
  2. """
  3. Gate API v4
  4. Welcome to Gate.io API APIv4 provides spot, margin and futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf. # noqa: E501
  5. Contact: support@mail.gate.io
  6. Generated by: https://openapi-generator.tech
  7. """
  8. import pprint
  9. import re # noqa: F401
  10. import six
  11. from gate_api.configuration import Configuration
  12. class OptionsAccountBook(object):
  13. """NOTE: This class is auto generated by OpenAPI Generator.
  14. Ref: https://openapi-generator.tech
  15. Do not edit the class manually.
  16. """
  17. """
  18. Attributes:
  19. openapi_types (dict): The key is attribute name
  20. and the value is attribute type.
  21. attribute_map (dict): The key is attribute name
  22. and the value is json key in definition.
  23. """
  24. openapi_types = {'time': 'float', 'change': 'str', 'balance': 'str', 'type': 'str', 'text': 'str'}
  25. attribute_map = {'time': 'time', 'change': 'change', 'balance': 'balance', 'type': 'type', 'text': 'text'}
  26. def __init__(
  27. self, time=None, change=None, balance=None, type=None, text=None, local_vars_configuration=None
  28. ): # noqa: E501
  29. # type: (float, str, str, str, str, Configuration) -> None
  30. """OptionsAccountBook - a model defined in OpenAPI""" # noqa: E501
  31. if local_vars_configuration is None:
  32. local_vars_configuration = Configuration()
  33. self.local_vars_configuration = local_vars_configuration
  34. self._time = None
  35. self._change = None
  36. self._balance = None
  37. self._type = None
  38. self._text = None
  39. self.discriminator = None
  40. if time is not None:
  41. self.time = time
  42. if change is not None:
  43. self.change = change
  44. if balance is not None:
  45. self.balance = balance
  46. if type is not None:
  47. self.type = type
  48. if text is not None:
  49. self.text = text
  50. @property
  51. def time(self):
  52. """Gets the time of this OptionsAccountBook. # noqa: E501
  53. Change time # noqa: E501
  54. :return: The time of this OptionsAccountBook. # noqa: E501
  55. :rtype: float
  56. """
  57. return self._time
  58. @time.setter
  59. def time(self, time):
  60. """Sets the time of this OptionsAccountBook.
  61. Change time # noqa: E501
  62. :param time: The time of this OptionsAccountBook. # noqa: E501
  63. :type: float
  64. """
  65. self._time = time
  66. @property
  67. def change(self):
  68. """Gets the change of this OptionsAccountBook. # noqa: E501
  69. Amount changed (USDT) # noqa: E501
  70. :return: The change of this OptionsAccountBook. # noqa: E501
  71. :rtype: str
  72. """
  73. return self._change
  74. @change.setter
  75. def change(self, change):
  76. """Sets the change of this OptionsAccountBook.
  77. Amount changed (USDT) # noqa: E501
  78. :param change: The change of this OptionsAccountBook. # noqa: E501
  79. :type: str
  80. """
  81. self._change = change
  82. @property
  83. def balance(self):
  84. """Gets the balance of this OptionsAccountBook. # noqa: E501
  85. Account total balance after change (USDT) # noqa: E501
  86. :return: The balance of this OptionsAccountBook. # noqa: E501
  87. :rtype: str
  88. """
  89. return self._balance
  90. @balance.setter
  91. def balance(self, balance):
  92. """Sets the balance of this OptionsAccountBook.
  93. Account total balance after change (USDT) # noqa: E501
  94. :param balance: The balance of this OptionsAccountBook. # noqa: E501
  95. :type: str
  96. """
  97. self._balance = balance
  98. @property
  99. def type(self):
  100. """Gets the type of this OptionsAccountBook. # noqa: E501
  101. Changing Type: - dnw: Deposit & Withdraw - prem: Trading premium - fee: Trading fee - refr: Referrer rebate - point_dnw: POINT Deposit & Withdraw - point_fee: POINT Trading fee - point_refr: POINT Referrer rebate # noqa: E501
  102. :return: The type of this OptionsAccountBook. # noqa: E501
  103. :rtype: str
  104. """
  105. return self._type
  106. @type.setter
  107. def type(self, type):
  108. """Sets the type of this OptionsAccountBook.
  109. Changing Type: - dnw: Deposit & Withdraw - prem: Trading premium - fee: Trading fee - refr: Referrer rebate - point_dnw: POINT Deposit & Withdraw - point_fee: POINT Trading fee - point_refr: POINT Referrer rebate # noqa: E501
  110. :param type: The type of this OptionsAccountBook. # noqa: E501
  111. :type: str
  112. """
  113. self._type = type
  114. @property
  115. def text(self):
  116. """Gets the text of this OptionsAccountBook. # noqa: E501
  117. custom text # noqa: E501
  118. :return: The text of this OptionsAccountBook. # noqa: E501
  119. :rtype: str
  120. """
  121. return self._text
  122. @text.setter
  123. def text(self, text):
  124. """Sets the text of this OptionsAccountBook.
  125. custom text # noqa: E501
  126. :param text: The text of this OptionsAccountBook. # noqa: E501
  127. :type: str
  128. """
  129. self._text = text
  130. def to_dict(self):
  131. """Returns the model properties as a dict"""
  132. result = {}
  133. for attr, _ in six.iteritems(self.openapi_types):
  134. value = getattr(self, attr)
  135. if isinstance(value, list):
  136. result[attr] = list(map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value))
  137. elif hasattr(value, "to_dict"):
  138. result[attr] = value.to_dict()
  139. elif isinstance(value, dict):
  140. result[attr] = dict(
  141. map(
  142. lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item,
  143. value.items(),
  144. )
  145. )
  146. else:
  147. result[attr] = value
  148. return result
  149. def to_str(self):
  150. """Returns the string representation of the model"""
  151. return pprint.pformat(self.to_dict())
  152. def __repr__(self):
  153. """For `print` and `pprint`"""
  154. return self.to_str()
  155. def __eq__(self, other):
  156. """Returns true if both objects are equal"""
  157. if not isinstance(other, OptionsAccountBook):
  158. return False
  159. return self.to_dict() == other.to_dict()
  160. def __ne__(self, other):
  161. """Returns true if both objects are not equal"""
  162. if not isinstance(other, OptionsAccountBook):
  163. return True
  164. return self.to_dict() != other.to_dict()