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

993 lines
30 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 BatchOrder(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. 'text': 'str',
  26. 'succeeded': 'bool',
  27. 'label': 'str',
  28. 'message': 'str',
  29. 'id': 'str',
  30. 'create_time': 'str',
  31. 'update_time': 'str',
  32. 'create_time_ms': 'int',
  33. 'update_time_ms': 'int',
  34. 'status': 'str',
  35. 'currency_pair': 'str',
  36. 'type': 'str',
  37. 'account': 'str',
  38. 'side': 'str',
  39. 'amount': 'str',
  40. 'price': 'str',
  41. 'time_in_force': 'str',
  42. 'iceberg': 'str',
  43. 'auto_borrow': 'bool',
  44. 'auto_repay': 'bool',
  45. 'left': 'str',
  46. 'fill_price': 'str',
  47. 'filled_total': 'str',
  48. 'fee': 'str',
  49. 'fee_currency': 'str',
  50. 'point_fee': 'str',
  51. 'gt_fee': 'str',
  52. 'gt_discount': 'bool',
  53. 'rebated_fee': 'str',
  54. 'rebated_fee_currency': 'str',
  55. }
  56. attribute_map = {
  57. 'text': 'text',
  58. 'succeeded': 'succeeded',
  59. 'label': 'label',
  60. 'message': 'message',
  61. 'id': 'id',
  62. 'create_time': 'create_time',
  63. 'update_time': 'update_time',
  64. 'create_time_ms': 'create_time_ms',
  65. 'update_time_ms': 'update_time_ms',
  66. 'status': 'status',
  67. 'currency_pair': 'currency_pair',
  68. 'type': 'type',
  69. 'account': 'account',
  70. 'side': 'side',
  71. 'amount': 'amount',
  72. 'price': 'price',
  73. 'time_in_force': 'time_in_force',
  74. 'iceberg': 'iceberg',
  75. 'auto_borrow': 'auto_borrow',
  76. 'auto_repay': 'auto_repay',
  77. 'left': 'left',
  78. 'fill_price': 'fill_price',
  79. 'filled_total': 'filled_total',
  80. 'fee': 'fee',
  81. 'fee_currency': 'fee_currency',
  82. 'point_fee': 'point_fee',
  83. 'gt_fee': 'gt_fee',
  84. 'gt_discount': 'gt_discount',
  85. 'rebated_fee': 'rebated_fee',
  86. 'rebated_fee_currency': 'rebated_fee_currency',
  87. }
  88. def __init__(
  89. self,
  90. text=None,
  91. succeeded=None,
  92. label=None,
  93. message=None,
  94. id=None,
  95. create_time=None,
  96. update_time=None,
  97. create_time_ms=None,
  98. update_time_ms=None,
  99. status=None,
  100. currency_pair=None,
  101. type='limit',
  102. account='spot',
  103. side=None,
  104. amount=None,
  105. price=None,
  106. time_in_force='gtc',
  107. iceberg=None,
  108. auto_borrow=None,
  109. auto_repay=None,
  110. left=None,
  111. fill_price=None,
  112. filled_total=None,
  113. fee=None,
  114. fee_currency=None,
  115. point_fee=None,
  116. gt_fee=None,
  117. gt_discount=None,
  118. rebated_fee=None,
  119. rebated_fee_currency=None,
  120. local_vars_configuration=None,
  121. ): # noqa: E501
  122. # type: (str, bool, str, str, str, str, str, int, int, str, str, str, str, str, str, str, str, str, bool, bool, str, str, str, str, str, str, str, bool, str, str, Configuration) -> None
  123. """BatchOrder - a model defined in OpenAPI""" # noqa: E501
  124. if local_vars_configuration is None:
  125. local_vars_configuration = Configuration()
  126. self.local_vars_configuration = local_vars_configuration
  127. self._text = None
  128. self._succeeded = None
  129. self._label = None
  130. self._message = None
  131. self._id = None
  132. self._create_time = None
  133. self._update_time = None
  134. self._create_time_ms = None
  135. self._update_time_ms = None
  136. self._status = None
  137. self._currency_pair = None
  138. self._type = None
  139. self._account = None
  140. self._side = None
  141. self._amount = None
  142. self._price = None
  143. self._time_in_force = None
  144. self._iceberg = None
  145. self._auto_borrow = None
  146. self._auto_repay = None
  147. self._left = None
  148. self._fill_price = None
  149. self._filled_total = None
  150. self._fee = None
  151. self._fee_currency = None
  152. self._point_fee = None
  153. self._gt_fee = None
  154. self._gt_discount = None
  155. self._rebated_fee = None
  156. self._rebated_fee_currency = None
  157. self.discriminator = None
  158. if text is not None:
  159. self.text = text
  160. if succeeded is not None:
  161. self.succeeded = succeeded
  162. if label is not None:
  163. self.label = label
  164. if message is not None:
  165. self.message = message
  166. if id is not None:
  167. self.id = id
  168. if create_time is not None:
  169. self.create_time = create_time
  170. if update_time is not None:
  171. self.update_time = update_time
  172. if create_time_ms is not None:
  173. self.create_time_ms = create_time_ms
  174. if update_time_ms is not None:
  175. self.update_time_ms = update_time_ms
  176. if status is not None:
  177. self.status = status
  178. if currency_pair is not None:
  179. self.currency_pair = currency_pair
  180. if type is not None:
  181. self.type = type
  182. if account is not None:
  183. self.account = account
  184. if side is not None:
  185. self.side = side
  186. if amount is not None:
  187. self.amount = amount
  188. if price is not None:
  189. self.price = price
  190. if time_in_force is not None:
  191. self.time_in_force = time_in_force
  192. if iceberg is not None:
  193. self.iceberg = iceberg
  194. if auto_borrow is not None:
  195. self.auto_borrow = auto_borrow
  196. if auto_repay is not None:
  197. self.auto_repay = auto_repay
  198. if left is not None:
  199. self.left = left
  200. if fill_price is not None:
  201. self.fill_price = fill_price
  202. if filled_total is not None:
  203. self.filled_total = filled_total
  204. if fee is not None:
  205. self.fee = fee
  206. if fee_currency is not None:
  207. self.fee_currency = fee_currency
  208. if point_fee is not None:
  209. self.point_fee = point_fee
  210. if gt_fee is not None:
  211. self.gt_fee = gt_fee
  212. if gt_discount is not None:
  213. self.gt_discount = gt_discount
  214. if rebated_fee is not None:
  215. self.rebated_fee = rebated_fee
  216. if rebated_fee_currency is not None:
  217. self.rebated_fee_currency = rebated_fee_currency
  218. @property
  219. def text(self):
  220. """Gets the text of this BatchOrder. # noqa: E501
  221. User defined information. If not empty, must follow the rules below: 1. prefixed with `t-` 2. no longer than 28 bytes without `t-` prefix 3. can only include 0-9, A-Z, a-z, underscore(_), hyphen(-) or dot(.) # noqa: E501
  222. :return: The text of this BatchOrder. # noqa: E501
  223. :rtype: str
  224. """
  225. return self._text
  226. @text.setter
  227. def text(self, text):
  228. """Sets the text of this BatchOrder.
  229. User defined information. If not empty, must follow the rules below: 1. prefixed with `t-` 2. no longer than 28 bytes without `t-` prefix 3. can only include 0-9, A-Z, a-z, underscore(_), hyphen(-) or dot(.) # noqa: E501
  230. :param text: The text of this BatchOrder. # noqa: E501
  231. :type: str
  232. """
  233. self._text = text
  234. @property
  235. def succeeded(self):
  236. """Gets the succeeded of this BatchOrder. # noqa: E501
  237. Whether the batch of orders succeeded # noqa: E501
  238. :return: The succeeded of this BatchOrder. # noqa: E501
  239. :rtype: bool
  240. """
  241. return self._succeeded
  242. @succeeded.setter
  243. def succeeded(self, succeeded):
  244. """Sets the succeeded of this BatchOrder.
  245. Whether the batch of orders succeeded # noqa: E501
  246. :param succeeded: The succeeded of this BatchOrder. # noqa: E501
  247. :type: bool
  248. """
  249. self._succeeded = succeeded
  250. @property
  251. def label(self):
  252. """Gets the label of this BatchOrder. # noqa: E501
  253. Error label, if any, otherwise an empty string # noqa: E501
  254. :return: The label of this BatchOrder. # noqa: E501
  255. :rtype: str
  256. """
  257. return self._label
  258. @label.setter
  259. def label(self, label):
  260. """Sets the label of this BatchOrder.
  261. Error label, if any, otherwise an empty string # noqa: E501
  262. :param label: The label of this BatchOrder. # noqa: E501
  263. :type: str
  264. """
  265. self._label = label
  266. @property
  267. def message(self):
  268. """Gets the message of this BatchOrder. # noqa: E501
  269. Detailed error message, if any, otherwise an empty string # noqa: E501
  270. :return: The message of this BatchOrder. # noqa: E501
  271. :rtype: str
  272. """
  273. return self._message
  274. @message.setter
  275. def message(self, message):
  276. """Sets the message of this BatchOrder.
  277. Detailed error message, if any, otherwise an empty string # noqa: E501
  278. :param message: The message of this BatchOrder. # noqa: E501
  279. :type: str
  280. """
  281. self._message = message
  282. @property
  283. def id(self):
  284. """Gets the id of this BatchOrder. # noqa: E501
  285. Order ID # noqa: E501
  286. :return: The id of this BatchOrder. # noqa: E501
  287. :rtype: str
  288. """
  289. return self._id
  290. @id.setter
  291. def id(self, id):
  292. """Sets the id of this BatchOrder.
  293. Order ID # noqa: E501
  294. :param id: The id of this BatchOrder. # noqa: E501
  295. :type: str
  296. """
  297. self._id = id
  298. @property
  299. def create_time(self):
  300. """Gets the create_time of this BatchOrder. # noqa: E501
  301. Creation time of order # noqa: E501
  302. :return: The create_time of this BatchOrder. # noqa: E501
  303. :rtype: str
  304. """
  305. return self._create_time
  306. @create_time.setter
  307. def create_time(self, create_time):
  308. """Sets the create_time of this BatchOrder.
  309. Creation time of order # noqa: E501
  310. :param create_time: The create_time of this BatchOrder. # noqa: E501
  311. :type: str
  312. """
  313. self._create_time = create_time
  314. @property
  315. def update_time(self):
  316. """Gets the update_time of this BatchOrder. # noqa: E501
  317. Last modification time of order # noqa: E501
  318. :return: The update_time of this BatchOrder. # noqa: E501
  319. :rtype: str
  320. """
  321. return self._update_time
  322. @update_time.setter
  323. def update_time(self, update_time):
  324. """Sets the update_time of this BatchOrder.
  325. Last modification time of order # noqa: E501
  326. :param update_time: The update_time of this BatchOrder. # noqa: E501
  327. :type: str
  328. """
  329. self._update_time = update_time
  330. @property
  331. def create_time_ms(self):
  332. """Gets the create_time_ms of this BatchOrder. # noqa: E501
  333. Creation time of order (in milliseconds) # noqa: E501
  334. :return: The create_time_ms of this BatchOrder. # noqa: E501
  335. :rtype: int
  336. """
  337. return self._create_time_ms
  338. @create_time_ms.setter
  339. def create_time_ms(self, create_time_ms):
  340. """Sets the create_time_ms of this BatchOrder.
  341. Creation time of order (in milliseconds) # noqa: E501
  342. :param create_time_ms: The create_time_ms of this BatchOrder. # noqa: E501
  343. :type: int
  344. """
  345. self._create_time_ms = create_time_ms
  346. @property
  347. def update_time_ms(self):
  348. """Gets the update_time_ms of this BatchOrder. # noqa: E501
  349. Last modification time of order (in milliseconds) # noqa: E501
  350. :return: The update_time_ms of this BatchOrder. # noqa: E501
  351. :rtype: int
  352. """
  353. return self._update_time_ms
  354. @update_time_ms.setter
  355. def update_time_ms(self, update_time_ms):
  356. """Sets the update_time_ms of this BatchOrder.
  357. Last modification time of order (in milliseconds) # noqa: E501
  358. :param update_time_ms: The update_time_ms of this BatchOrder. # noqa: E501
  359. :type: int
  360. """
  361. self._update_time_ms = update_time_ms
  362. @property
  363. def status(self):
  364. """Gets the status of this BatchOrder. # noqa: E501
  365. Order status - `open`: to be filled - `closed`: filled - `cancelled`: cancelled # noqa: E501
  366. :return: The status of this BatchOrder. # noqa: E501
  367. :rtype: str
  368. """
  369. return self._status
  370. @status.setter
  371. def status(self, status):
  372. """Sets the status of this BatchOrder.
  373. Order status - `open`: to be filled - `closed`: filled - `cancelled`: cancelled # noqa: E501
  374. :param status: The status of this BatchOrder. # noqa: E501
  375. :type: str
  376. """
  377. allowed_values = ["open", "closed", "cancelled"] # noqa: E501
  378. if self.local_vars_configuration.client_side_validation and status not in allowed_values: # noqa: E501
  379. raise ValueError(
  380. "Invalid value for `status` ({0}), must be one of {1}".format(status, allowed_values) # noqa: E501
  381. )
  382. self._status = status
  383. @property
  384. def currency_pair(self):
  385. """Gets the currency_pair of this BatchOrder. # noqa: E501
  386. Currency pair # noqa: E501
  387. :return: The currency_pair of this BatchOrder. # noqa: E501
  388. :rtype: str
  389. """
  390. return self._currency_pair
  391. @currency_pair.setter
  392. def currency_pair(self, currency_pair):
  393. """Sets the currency_pair of this BatchOrder.
  394. Currency pair # noqa: E501
  395. :param currency_pair: The currency_pair of this BatchOrder. # noqa: E501
  396. :type: str
  397. """
  398. self._currency_pair = currency_pair
  399. @property
  400. def type(self):
  401. """Gets the type of this BatchOrder. # noqa: E501
  402. Order Type - limit : Limit Order - market : Market Order # noqa: E501
  403. :return: The type of this BatchOrder. # noqa: E501
  404. :rtype: str
  405. """
  406. return self._type
  407. @type.setter
  408. def type(self, type):
  409. """Sets the type of this BatchOrder.
  410. Order Type - limit : Limit Order - market : Market Order # noqa: E501
  411. :param type: The type of this BatchOrder. # noqa: E501
  412. :type: str
  413. """
  414. allowed_values = ["limit", "market"] # noqa: E501
  415. if self.local_vars_configuration.client_side_validation and type not in allowed_values: # noqa: E501
  416. raise ValueError(
  417. "Invalid value for `type` ({0}), must be one of {1}".format(type, allowed_values) # noqa: E501
  418. )
  419. self._type = type
  420. @property
  421. def account(self):
  422. """Gets the account of this BatchOrder. # noqa: E501
  423. Account type. spot - use spot account; margin - use margin account; cross_margin - use cross margin account # noqa: E501
  424. :return: The account of this BatchOrder. # noqa: E501
  425. :rtype: str
  426. """
  427. return self._account
  428. @account.setter
  429. def account(self, account):
  430. """Sets the account of this BatchOrder.
  431. Account type. spot - use spot account; margin - use margin account; cross_margin - use cross margin account # noqa: E501
  432. :param account: The account of this BatchOrder. # noqa: E501
  433. :type: str
  434. """
  435. allowed_values = ["spot", "margin", "cross_margin"] # noqa: E501
  436. if self.local_vars_configuration.client_side_validation and account not in allowed_values: # noqa: E501
  437. raise ValueError(
  438. "Invalid value for `account` ({0}), must be one of {1}".format(account, allowed_values) # noqa: E501
  439. )
  440. self._account = account
  441. @property
  442. def side(self):
  443. """Gets the side of this BatchOrder. # noqa: E501
  444. Order side # noqa: E501
  445. :return: The side of this BatchOrder. # noqa: E501
  446. :rtype: str
  447. """
  448. return self._side
  449. @side.setter
  450. def side(self, side):
  451. """Sets the side of this BatchOrder.
  452. Order side # noqa: E501
  453. :param side: The side of this BatchOrder. # noqa: E501
  454. :type: str
  455. """
  456. allowed_values = ["buy", "sell"] # noqa: E501
  457. if self.local_vars_configuration.client_side_validation and side not in allowed_values: # noqa: E501
  458. raise ValueError(
  459. "Invalid value for `side` ({0}), must be one of {1}".format(side, allowed_values) # noqa: E501
  460. )
  461. self._side = side
  462. @property
  463. def amount(self):
  464. """Gets the amount of this BatchOrder. # noqa: E501
  465. Trade amount # noqa: E501
  466. :return: The amount of this BatchOrder. # noqa: E501
  467. :rtype: str
  468. """
  469. return self._amount
  470. @amount.setter
  471. def amount(self, amount):
  472. """Sets the amount of this BatchOrder.
  473. Trade amount # noqa: E501
  474. :param amount: The amount of this BatchOrder. # noqa: E501
  475. :type: str
  476. """
  477. self._amount = amount
  478. @property
  479. def price(self):
  480. """Gets the price of this BatchOrder. # noqa: E501
  481. Order price # noqa: E501
  482. :return: The price of this BatchOrder. # noqa: E501
  483. :rtype: str
  484. """
  485. return self._price
  486. @price.setter
  487. def price(self, price):
  488. """Sets the price of this BatchOrder.
  489. Order price # noqa: E501
  490. :param price: The price of this BatchOrder. # noqa: E501
  491. :type: str
  492. """
  493. self._price = price
  494. @property
  495. def time_in_force(self):
  496. """Gets the time_in_force of this BatchOrder. # noqa: E501
  497. Time in force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only - poc: PendingOrCancelled, makes a post-only order that always enjoys a maker fee - fok: FillOrKill, fill either completely or none # noqa: E501
  498. :return: The time_in_force of this BatchOrder. # noqa: E501
  499. :rtype: str
  500. """
  501. return self._time_in_force
  502. @time_in_force.setter
  503. def time_in_force(self, time_in_force):
  504. """Sets the time_in_force of this BatchOrder.
  505. Time in force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only - poc: PendingOrCancelled, makes a post-only order that always enjoys a maker fee - fok: FillOrKill, fill either completely or none # noqa: E501
  506. :param time_in_force: The time_in_force of this BatchOrder. # noqa: E501
  507. :type: str
  508. """
  509. allowed_values = ["gtc", "ioc", "poc", "fok"] # noqa: E501
  510. if self.local_vars_configuration.client_side_validation and time_in_force not in allowed_values: # noqa: E501
  511. raise ValueError(
  512. "Invalid value for `time_in_force` ({0}), must be one of {1}".format( # noqa: E501
  513. time_in_force, allowed_values
  514. )
  515. )
  516. self._time_in_force = time_in_force
  517. @property
  518. def iceberg(self):
  519. """Gets the iceberg of this BatchOrder. # noqa: E501
  520. Amount to display for the iceberg order. Null or 0 for normal orders. Hiding all amount is not supported. # noqa: E501
  521. :return: The iceberg of this BatchOrder. # noqa: E501
  522. :rtype: str
  523. """
  524. return self._iceberg
  525. @iceberg.setter
  526. def iceberg(self, iceberg):
  527. """Sets the iceberg of this BatchOrder.
  528. Amount to display for the iceberg order. Null or 0 for normal orders. Hiding all amount is not supported. # noqa: E501
  529. :param iceberg: The iceberg of this BatchOrder. # noqa: E501
  530. :type: str
  531. """
  532. self._iceberg = iceberg
  533. @property
  534. def auto_borrow(self):
  535. """Gets the auto_borrow of this BatchOrder. # noqa: E501
  536. Used in margin or cross margin trading to allow automatic loan of insufficient amount if balance is not enough. # noqa: E501
  537. :return: The auto_borrow of this BatchOrder. # noqa: E501
  538. :rtype: bool
  539. """
  540. return self._auto_borrow
  541. @auto_borrow.setter
  542. def auto_borrow(self, auto_borrow):
  543. """Sets the auto_borrow of this BatchOrder.
  544. Used in margin or cross margin trading to allow automatic loan of insufficient amount if balance is not enough. # noqa: E501
  545. :param auto_borrow: The auto_borrow of this BatchOrder. # noqa: E501
  546. :type: bool
  547. """
  548. self._auto_borrow = auto_borrow
  549. @property
  550. def auto_repay(self):
  551. """Gets the auto_repay of this BatchOrder. # noqa: E501
  552. Enable or disable automatic repayment for automatic borrow loan generated by cross margin order. Default is disabled. Note that: 1. This field is only effective for cross margin orders. Margin account does not support setting auto repayment for orders. 2. `auto_borrow` and `auto_repay` cannot be both set to true in one order. # noqa: E501
  553. :return: The auto_repay of this BatchOrder. # noqa: E501
  554. :rtype: bool
  555. """
  556. return self._auto_repay
  557. @auto_repay.setter
  558. def auto_repay(self, auto_repay):
  559. """Sets the auto_repay of this BatchOrder.
  560. Enable or disable automatic repayment for automatic borrow loan generated by cross margin order. Default is disabled. Note that: 1. This field is only effective for cross margin orders. Margin account does not support setting auto repayment for orders. 2. `auto_borrow` and `auto_repay` cannot be both set to true in one order. # noqa: E501
  561. :param auto_repay: The auto_repay of this BatchOrder. # noqa: E501
  562. :type: bool
  563. """
  564. self._auto_repay = auto_repay
  565. @property
  566. def left(self):
  567. """Gets the left of this BatchOrder. # noqa: E501
  568. Amount left to fill # noqa: E501
  569. :return: The left of this BatchOrder. # noqa: E501
  570. :rtype: str
  571. """
  572. return self._left
  573. @left.setter
  574. def left(self, left):
  575. """Sets the left of this BatchOrder.
  576. Amount left to fill # noqa: E501
  577. :param left: The left of this BatchOrder. # noqa: E501
  578. :type: str
  579. """
  580. self._left = left
  581. @property
  582. def fill_price(self):
  583. """Gets the fill_price of this BatchOrder. # noqa: E501
  584. Total filled in quote currency. Deprecated in favor of `filled_total` # noqa: E501
  585. :return: The fill_price of this BatchOrder. # noqa: E501
  586. :rtype: str
  587. """
  588. return self._fill_price
  589. @fill_price.setter
  590. def fill_price(self, fill_price):
  591. """Sets the fill_price of this BatchOrder.
  592. Total filled in quote currency. Deprecated in favor of `filled_total` # noqa: E501
  593. :param fill_price: The fill_price of this BatchOrder. # noqa: E501
  594. :type: str
  595. """
  596. self._fill_price = fill_price
  597. @property
  598. def filled_total(self):
  599. """Gets the filled_total of this BatchOrder. # noqa: E501
  600. Total filled in quote currency # noqa: E501
  601. :return: The filled_total of this BatchOrder. # noqa: E501
  602. :rtype: str
  603. """
  604. return self._filled_total
  605. @filled_total.setter
  606. def filled_total(self, filled_total):
  607. """Sets the filled_total of this BatchOrder.
  608. Total filled in quote currency # noqa: E501
  609. :param filled_total: The filled_total of this BatchOrder. # noqa: E501
  610. :type: str
  611. """
  612. self._filled_total = filled_total
  613. @property
  614. def fee(self):
  615. """Gets the fee of this BatchOrder. # noqa: E501
  616. Fee deducted # noqa: E501
  617. :return: The fee of this BatchOrder. # noqa: E501
  618. :rtype: str
  619. """
  620. return self._fee
  621. @fee.setter
  622. def fee(self, fee):
  623. """Sets the fee of this BatchOrder.
  624. Fee deducted # noqa: E501
  625. :param fee: The fee of this BatchOrder. # noqa: E501
  626. :type: str
  627. """
  628. self._fee = fee
  629. @property
  630. def fee_currency(self):
  631. """Gets the fee_currency of this BatchOrder. # noqa: E501
  632. Fee currency unit # noqa: E501
  633. :return: The fee_currency of this BatchOrder. # noqa: E501
  634. :rtype: str
  635. """
  636. return self._fee_currency
  637. @fee_currency.setter
  638. def fee_currency(self, fee_currency):
  639. """Sets the fee_currency of this BatchOrder.
  640. Fee currency unit # noqa: E501
  641. :param fee_currency: The fee_currency of this BatchOrder. # noqa: E501
  642. :type: str
  643. """
  644. self._fee_currency = fee_currency
  645. @property
  646. def point_fee(self):
  647. """Gets the point_fee of this BatchOrder. # noqa: E501
  648. Points used to deduct fee # noqa: E501
  649. :return: The point_fee of this BatchOrder. # noqa: E501
  650. :rtype: str
  651. """
  652. return self._point_fee
  653. @point_fee.setter
  654. def point_fee(self, point_fee):
  655. """Sets the point_fee of this BatchOrder.
  656. Points used to deduct fee # noqa: E501
  657. :param point_fee: The point_fee of this BatchOrder. # noqa: E501
  658. :type: str
  659. """
  660. self._point_fee = point_fee
  661. @property
  662. def gt_fee(self):
  663. """Gets the gt_fee of this BatchOrder. # noqa: E501
  664. GT used to deduct fee # noqa: E501
  665. :return: The gt_fee of this BatchOrder. # noqa: E501
  666. :rtype: str
  667. """
  668. return self._gt_fee
  669. @gt_fee.setter
  670. def gt_fee(self, gt_fee):
  671. """Sets the gt_fee of this BatchOrder.
  672. GT used to deduct fee # noqa: E501
  673. :param gt_fee: The gt_fee of this BatchOrder. # noqa: E501
  674. :type: str
  675. """
  676. self._gt_fee = gt_fee
  677. @property
  678. def gt_discount(self):
  679. """Gets the gt_discount of this BatchOrder. # noqa: E501
  680. Whether GT fee discount is used # noqa: E501
  681. :return: The gt_discount of this BatchOrder. # noqa: E501
  682. :rtype: bool
  683. """
  684. return self._gt_discount
  685. @gt_discount.setter
  686. def gt_discount(self, gt_discount):
  687. """Sets the gt_discount of this BatchOrder.
  688. Whether GT fee discount is used # noqa: E501
  689. :param gt_discount: The gt_discount of this BatchOrder. # noqa: E501
  690. :type: bool
  691. """
  692. self._gt_discount = gt_discount
  693. @property
  694. def rebated_fee(self):
  695. """Gets the rebated_fee of this BatchOrder. # noqa: E501
  696. Rebated fee # noqa: E501
  697. :return: The rebated_fee of this BatchOrder. # noqa: E501
  698. :rtype: str
  699. """
  700. return self._rebated_fee
  701. @rebated_fee.setter
  702. def rebated_fee(self, rebated_fee):
  703. """Sets the rebated_fee of this BatchOrder.
  704. Rebated fee # noqa: E501
  705. :param rebated_fee: The rebated_fee of this BatchOrder. # noqa: E501
  706. :type: str
  707. """
  708. self._rebated_fee = rebated_fee
  709. @property
  710. def rebated_fee_currency(self):
  711. """Gets the rebated_fee_currency of this BatchOrder. # noqa: E501
  712. Rebated fee currency unit # noqa: E501
  713. :return: The rebated_fee_currency of this BatchOrder. # noqa: E501
  714. :rtype: str
  715. """
  716. return self._rebated_fee_currency
  717. @rebated_fee_currency.setter
  718. def rebated_fee_currency(self, rebated_fee_currency):
  719. """Sets the rebated_fee_currency of this BatchOrder.
  720. Rebated fee currency unit # noqa: E501
  721. :param rebated_fee_currency: The rebated_fee_currency of this BatchOrder. # noqa: E501
  722. :type: str
  723. """
  724. self._rebated_fee_currency = rebated_fee_currency
  725. def to_dict(self):
  726. """Returns the model properties as a dict"""
  727. result = {}
  728. for attr, _ in six.iteritems(self.openapi_types):
  729. value = getattr(self, attr)
  730. if isinstance(value, list):
  731. result[attr] = list(map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value))
  732. elif hasattr(value, "to_dict"):
  733. result[attr] = value.to_dict()
  734. elif isinstance(value, dict):
  735. result[attr] = dict(
  736. map(
  737. lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item,
  738. value.items(),
  739. )
  740. )
  741. else:
  742. result[attr] = value
  743. return result
  744. def to_str(self):
  745. """Returns the string representation of the model"""
  746. return pprint.pformat(self.to_dict())
  747. def __repr__(self):
  748. """For `print` and `pprint`"""
  749. return self.to_str()
  750. def __eq__(self, other):
  751. """Returns true if both objects are equal"""
  752. if not isinstance(other, BatchOrder):
  753. return False
  754. return self.to_dict() == other.to_dict()
  755. def __ne__(self, other):
  756. """Returns true if both objects are not equal"""
  757. if not isinstance(other, BatchOrder):
  758. return True
  759. return self.to_dict() != other.to_dict()