天择加密量化开放框架下载
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.

415 lines
13 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 WithdrawStatus(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 = {
  25. 'currency': 'str',
  26. 'name': 'str',
  27. 'name_cn': 'str',
  28. 'deposit': 'str',
  29. 'withdraw_percent': 'str',
  30. 'withdraw_fix': 'str',
  31. 'withdraw_day_limit': 'str',
  32. 'withdraw_amount_mini': 'str',
  33. 'withdraw_day_limit_remain': 'str',
  34. 'withdraw_eachtime_limit': 'str',
  35. 'withdraw_fix_on_chains': 'dict(str, str)',
  36. }
  37. attribute_map = {
  38. 'currency': 'currency',
  39. 'name': 'name',
  40. 'name_cn': 'name_cn',
  41. 'deposit': 'deposit',
  42. 'withdraw_percent': 'withdraw_percent',
  43. 'withdraw_fix': 'withdraw_fix',
  44. 'withdraw_day_limit': 'withdraw_day_limit',
  45. 'withdraw_amount_mini': 'withdraw_amount_mini',
  46. 'withdraw_day_limit_remain': 'withdraw_day_limit_remain',
  47. 'withdraw_eachtime_limit': 'withdraw_eachtime_limit',
  48. 'withdraw_fix_on_chains': 'withdraw_fix_on_chains',
  49. }
  50. def __init__(
  51. self,
  52. currency=None,
  53. name=None,
  54. name_cn=None,
  55. deposit=None,
  56. withdraw_percent=None,
  57. withdraw_fix=None,
  58. withdraw_day_limit=None,
  59. withdraw_amount_mini=None,
  60. withdraw_day_limit_remain=None,
  61. withdraw_eachtime_limit=None,
  62. withdraw_fix_on_chains=None,
  63. local_vars_configuration=None,
  64. ): # noqa: E501
  65. # type: (str, str, str, str, str, str, str, str, str, str, dict(str, str), Configuration) -> None
  66. """WithdrawStatus - a model defined in OpenAPI""" # noqa: E501
  67. if local_vars_configuration is None:
  68. local_vars_configuration = Configuration()
  69. self.local_vars_configuration = local_vars_configuration
  70. self._currency = None
  71. self._name = None
  72. self._name_cn = None
  73. self._deposit = None
  74. self._withdraw_percent = None
  75. self._withdraw_fix = None
  76. self._withdraw_day_limit = None
  77. self._withdraw_amount_mini = None
  78. self._withdraw_day_limit_remain = None
  79. self._withdraw_eachtime_limit = None
  80. self._withdraw_fix_on_chains = None
  81. self.discriminator = None
  82. if currency is not None:
  83. self.currency = currency
  84. if name is not None:
  85. self.name = name
  86. if name_cn is not None:
  87. self.name_cn = name_cn
  88. if deposit is not None:
  89. self.deposit = deposit
  90. if withdraw_percent is not None:
  91. self.withdraw_percent = withdraw_percent
  92. if withdraw_fix is not None:
  93. self.withdraw_fix = withdraw_fix
  94. if withdraw_day_limit is not None:
  95. self.withdraw_day_limit = withdraw_day_limit
  96. if withdraw_amount_mini is not None:
  97. self.withdraw_amount_mini = withdraw_amount_mini
  98. if withdraw_day_limit_remain is not None:
  99. self.withdraw_day_limit_remain = withdraw_day_limit_remain
  100. if withdraw_eachtime_limit is not None:
  101. self.withdraw_eachtime_limit = withdraw_eachtime_limit
  102. if withdraw_fix_on_chains is not None:
  103. self.withdraw_fix_on_chains = withdraw_fix_on_chains
  104. @property
  105. def currency(self):
  106. """Gets the currency of this WithdrawStatus. # noqa: E501
  107. Currency # noqa: E501
  108. :return: The currency of this WithdrawStatus. # noqa: E501
  109. :rtype: str
  110. """
  111. return self._currency
  112. @currency.setter
  113. def currency(self, currency):
  114. """Sets the currency of this WithdrawStatus.
  115. Currency # noqa: E501
  116. :param currency: The currency of this WithdrawStatus. # noqa: E501
  117. :type: str
  118. """
  119. self._currency = currency
  120. @property
  121. def name(self):
  122. """Gets the name of this WithdrawStatus. # noqa: E501
  123. Currency name # noqa: E501
  124. :return: The name of this WithdrawStatus. # noqa: E501
  125. :rtype: str
  126. """
  127. return self._name
  128. @name.setter
  129. def name(self, name):
  130. """Sets the name of this WithdrawStatus.
  131. Currency name # noqa: E501
  132. :param name: The name of this WithdrawStatus. # noqa: E501
  133. :type: str
  134. """
  135. self._name = name
  136. @property
  137. def name_cn(self):
  138. """Gets the name_cn of this WithdrawStatus. # noqa: E501
  139. Currency Chinese name # noqa: E501
  140. :return: The name_cn of this WithdrawStatus. # noqa: E501
  141. :rtype: str
  142. """
  143. return self._name_cn
  144. @name_cn.setter
  145. def name_cn(self, name_cn):
  146. """Sets the name_cn of this WithdrawStatus.
  147. Currency Chinese name # noqa: E501
  148. :param name_cn: The name_cn of this WithdrawStatus. # noqa: E501
  149. :type: str
  150. """
  151. self._name_cn = name_cn
  152. @property
  153. def deposit(self):
  154. """Gets the deposit of this WithdrawStatus. # noqa: E501
  155. Deposits fee # noqa: E501
  156. :return: The deposit of this WithdrawStatus. # noqa: E501
  157. :rtype: str
  158. """
  159. return self._deposit
  160. @deposit.setter
  161. def deposit(self, deposit):
  162. """Sets the deposit of this WithdrawStatus.
  163. Deposits fee # noqa: E501
  164. :param deposit: The deposit of this WithdrawStatus. # noqa: E501
  165. :type: str
  166. """
  167. self._deposit = deposit
  168. @property
  169. def withdraw_percent(self):
  170. """Gets the withdraw_percent of this WithdrawStatus. # noqa: E501
  171. Withdrawal fee rate percentage # noqa: E501
  172. :return: The withdraw_percent of this WithdrawStatus. # noqa: E501
  173. :rtype: str
  174. """
  175. return self._withdraw_percent
  176. @withdraw_percent.setter
  177. def withdraw_percent(self, withdraw_percent):
  178. """Sets the withdraw_percent of this WithdrawStatus.
  179. Withdrawal fee rate percentage # noqa: E501
  180. :param withdraw_percent: The withdraw_percent of this WithdrawStatus. # noqa: E501
  181. :type: str
  182. """
  183. self._withdraw_percent = withdraw_percent
  184. @property
  185. def withdraw_fix(self):
  186. """Gets the withdraw_fix of this WithdrawStatus. # noqa: E501
  187. Fixed withdrawal fee # noqa: E501
  188. :return: The withdraw_fix of this WithdrawStatus. # noqa: E501
  189. :rtype: str
  190. """
  191. return self._withdraw_fix
  192. @withdraw_fix.setter
  193. def withdraw_fix(self, withdraw_fix):
  194. """Sets the withdraw_fix of this WithdrawStatus.
  195. Fixed withdrawal fee # noqa: E501
  196. :param withdraw_fix: The withdraw_fix of this WithdrawStatus. # noqa: E501
  197. :type: str
  198. """
  199. self._withdraw_fix = withdraw_fix
  200. @property
  201. def withdraw_day_limit(self):
  202. """Gets the withdraw_day_limit of this WithdrawStatus. # noqa: E501
  203. Daily allowed withdrawal amount # noqa: E501
  204. :return: The withdraw_day_limit of this WithdrawStatus. # noqa: E501
  205. :rtype: str
  206. """
  207. return self._withdraw_day_limit
  208. @withdraw_day_limit.setter
  209. def withdraw_day_limit(self, withdraw_day_limit):
  210. """Sets the withdraw_day_limit of this WithdrawStatus.
  211. Daily allowed withdrawal amount # noqa: E501
  212. :param withdraw_day_limit: The withdraw_day_limit of this WithdrawStatus. # noqa: E501
  213. :type: str
  214. """
  215. self._withdraw_day_limit = withdraw_day_limit
  216. @property
  217. def withdraw_amount_mini(self):
  218. """Gets the withdraw_amount_mini of this WithdrawStatus. # noqa: E501
  219. Minimum withdrawal amount # noqa: E501
  220. :return: The withdraw_amount_mini of this WithdrawStatus. # noqa: E501
  221. :rtype: str
  222. """
  223. return self._withdraw_amount_mini
  224. @withdraw_amount_mini.setter
  225. def withdraw_amount_mini(self, withdraw_amount_mini):
  226. """Sets the withdraw_amount_mini of this WithdrawStatus.
  227. Minimum withdrawal amount # noqa: E501
  228. :param withdraw_amount_mini: The withdraw_amount_mini of this WithdrawStatus. # noqa: E501
  229. :type: str
  230. """
  231. self._withdraw_amount_mini = withdraw_amount_mini
  232. @property
  233. def withdraw_day_limit_remain(self):
  234. """Gets the withdraw_day_limit_remain of this WithdrawStatus. # noqa: E501
  235. Daily withdrawal amount left # noqa: E501
  236. :return: The withdraw_day_limit_remain of this WithdrawStatus. # noqa: E501
  237. :rtype: str
  238. """
  239. return self._withdraw_day_limit_remain
  240. @withdraw_day_limit_remain.setter
  241. def withdraw_day_limit_remain(self, withdraw_day_limit_remain):
  242. """Sets the withdraw_day_limit_remain of this WithdrawStatus.
  243. Daily withdrawal amount left # noqa: E501
  244. :param withdraw_day_limit_remain: The withdraw_day_limit_remain of this WithdrawStatus. # noqa: E501
  245. :type: str
  246. """
  247. self._withdraw_day_limit_remain = withdraw_day_limit_remain
  248. @property
  249. def withdraw_eachtime_limit(self):
  250. """Gets the withdraw_eachtime_limit of this WithdrawStatus. # noqa: E501
  251. Maximum amount for each withdrawal # noqa: E501
  252. :return: The withdraw_eachtime_limit of this WithdrawStatus. # noqa: E501
  253. :rtype: str
  254. """
  255. return self._withdraw_eachtime_limit
  256. @withdraw_eachtime_limit.setter
  257. def withdraw_eachtime_limit(self, withdraw_eachtime_limit):
  258. """Sets the withdraw_eachtime_limit of this WithdrawStatus.
  259. Maximum amount for each withdrawal # noqa: E501
  260. :param withdraw_eachtime_limit: The withdraw_eachtime_limit of this WithdrawStatus. # noqa: E501
  261. :type: str
  262. """
  263. self._withdraw_eachtime_limit = withdraw_eachtime_limit
  264. @property
  265. def withdraw_fix_on_chains(self):
  266. """Gets the withdraw_fix_on_chains of this WithdrawStatus. # noqa: E501
  267. Fixed withdrawal fee on multiple chains # noqa: E501
  268. :return: The withdraw_fix_on_chains of this WithdrawStatus. # noqa: E501
  269. :rtype: dict(str, str)
  270. """
  271. return self._withdraw_fix_on_chains
  272. @withdraw_fix_on_chains.setter
  273. def withdraw_fix_on_chains(self, withdraw_fix_on_chains):
  274. """Sets the withdraw_fix_on_chains of this WithdrawStatus.
  275. Fixed withdrawal fee on multiple chains # noqa: E501
  276. :param withdraw_fix_on_chains: The withdraw_fix_on_chains of this WithdrawStatus. # noqa: E501
  277. :type: dict(str, str)
  278. """
  279. self._withdraw_fix_on_chains = withdraw_fix_on_chains
  280. def to_dict(self):
  281. """Returns the model properties as a dict"""
  282. result = {}
  283. for attr, _ in six.iteritems(self.openapi_types):
  284. value = getattr(self, attr)
  285. if isinstance(value, list):
  286. result[attr] = list(map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value))
  287. elif hasattr(value, "to_dict"):
  288. result[attr] = value.to_dict()
  289. elif isinstance(value, dict):
  290. result[attr] = dict(
  291. map(
  292. lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item,
  293. value.items(),
  294. )
  295. )
  296. else:
  297. result[attr] = value
  298. return result
  299. def to_str(self):
  300. """Returns the string representation of the model"""
  301. return pprint.pformat(self.to_dict())
  302. def __repr__(self):
  303. """For `print` and `pprint`"""
  304. return self.to_str()
  305. def __eq__(self, other):
  306. """Returns true if both objects are equal"""
  307. if not isinstance(other, WithdrawStatus):
  308. return False
  309. return self.to_dict() == other.to_dict()
  310. def __ne__(self, other):
  311. """Returns true if both objects are not equal"""
  312. if not isinstance(other, WithdrawStatus):
  313. return True
  314. return self.to_dict() != other.to_dict()