gate-io-api 0.0.22__tar.gz → 0.0.24__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of gate-io-api might be problematic. Click here for more details.

Files changed (289) hide show
  1. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/PKG-INFO +15 -7
  2. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/README.md +14 -6
  3. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/pyproject.toml +1 -1
  4. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/__init__.py +2 -3
  5. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/async_support/__init__.py +2 -3
  6. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/async_support/base/exchange.py +1 -1
  7. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/async_support/gate.py +11 -7
  8. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/base/exchange.py +34 -21
  9. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/gate.py +11 -7
  10. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/pro/__init__.py +2 -3
  11. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/.gitignore +0 -0
  12. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/__init__.py +0 -0
  13. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/abstract/gate.py +0 -0
  14. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/async_support/base/__init__.py +0 -0
  15. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/async_support/base/throttler.py +0 -0
  16. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/async_support/base/ws/__init__.py +0 -0
  17. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/async_support/base/ws/aiohttp_client.py +0 -0
  18. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/async_support/base/ws/cache.py +0 -0
  19. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/async_support/base/ws/client.py +0 -0
  20. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/async_support/base/ws/fast_client.py +0 -0
  21. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/async_support/base/ws/functions.py +0 -0
  22. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/async_support/base/ws/future.py +0 -0
  23. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/async_support/base/ws/order_book.py +0 -0
  24. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/async_support/base/ws/order_book_side.py +0 -0
  25. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/base/__init__.py +0 -0
  26. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/base/decimal_to_precision.py +0 -0
  27. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/base/errors.py +0 -0
  28. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/base/precise.py +0 -0
  29. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/base/types.py +0 -0
  30. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/pro/gate.py +0 -0
  31. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/README.md +0 -0
  32. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/__init__.py +0 -0
  33. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ecdsa/__init__.py +0 -0
  34. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ecdsa/_version.py +0 -0
  35. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ecdsa/curves.py +0 -0
  36. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ecdsa/der.py +0 -0
  37. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ecdsa/ecdsa.py +0 -0
  38. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ecdsa/ellipticcurve.py +0 -0
  39. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ecdsa/keys.py +0 -0
  40. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ecdsa/numbertheory.py +0 -0
  41. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ecdsa/rfc6979.py +0 -0
  42. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ecdsa/util.py +0 -0
  43. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/__init__.py +0 -0
  44. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/abi/__init__.py +0 -0
  45. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/abi/abi.py +0 -0
  46. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/abi/base.py +0 -0
  47. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/abi/codec.py +0 -0
  48. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/abi/constants.py +0 -0
  49. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/abi/decoding.py +0 -0
  50. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/abi/encoding.py +0 -0
  51. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/abi/exceptions.py +0 -0
  52. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/abi/grammar.py +0 -0
  53. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/abi/packed.py +0 -0
  54. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/abi/py.typed +0 -0
  55. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/abi/registry.py +0 -0
  56. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/abi/tools/__init__.py +0 -0
  57. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/abi/tools/_strategies.py +0 -0
  58. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/abi/utils/__init__.py +0 -0
  59. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/abi/utils/numeric.py +0 -0
  60. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/abi/utils/padding.py +0 -0
  61. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/abi/utils/string.py +0 -0
  62. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/account/__init__.py +0 -0
  63. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/account/encode_typed_data/__init__.py +0 -0
  64. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/account/encode_typed_data/encoding_and_hashing.py +0 -0
  65. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/account/encode_typed_data/helpers.py +0 -0
  66. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/account/messages.py +0 -0
  67. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/account/py.typed +0 -0
  68. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/hexbytes/__init__.py +0 -0
  69. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/hexbytes/_utils.py +0 -0
  70. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/hexbytes/main.py +0 -0
  71. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/hexbytes/py.typed +0 -0
  72. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/typing/__init__.py +0 -0
  73. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/typing/abi.py +0 -0
  74. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/typing/bls.py +0 -0
  75. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/typing/discovery.py +0 -0
  76. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/typing/encoding.py +0 -0
  77. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/typing/enums.py +0 -0
  78. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/typing/ethpm.py +0 -0
  79. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/typing/evm.py +0 -0
  80. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/typing/networks.py +0 -0
  81. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/typing/py.typed +0 -0
  82. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/utils/__init__.py +0 -0
  83. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/utils/abi.py +0 -0
  84. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/utils/address.py +0 -0
  85. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/utils/applicators.py +0 -0
  86. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/utils/conversions.py +0 -0
  87. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/utils/currency.py +0 -0
  88. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/utils/curried/__init__.py +0 -0
  89. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/utils/debug.py +0 -0
  90. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/utils/decorators.py +0 -0
  91. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/utils/encoding.py +0 -0
  92. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/utils/exceptions.py +0 -0
  93. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/utils/functional.py +0 -0
  94. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/utils/hexadecimal.py +0 -0
  95. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/utils/humanize.py +0 -0
  96. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/utils/logging.py +0 -0
  97. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/utils/module_loading.py +0 -0
  98. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/utils/numeric.py +0 -0
  99. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/utils/py.typed +0 -0
  100. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/utils/toolz.py +0 -0
  101. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/utils/types.py +0 -0
  102. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/utils/typing/__init__.py +0 -0
  103. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/utils/typing/misc.py +0 -0
  104. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/ethereum/utils/units.py +0 -0
  105. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/keccak/__init__.py +0 -0
  106. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/keccak/keccak.py +0 -0
  107. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/__init__.py +0 -0
  108. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/__pyinstaller/__init__.py +0 -0
  109. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/__pyinstaller/hook-lark.py +0 -0
  110. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/ast_utils.py +0 -0
  111. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/common.py +0 -0
  112. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/exceptions.py +0 -0
  113. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/grammar.py +0 -0
  114. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/grammars/__init__.py +0 -0
  115. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/grammars/common.lark +0 -0
  116. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/grammars/lark.lark +0 -0
  117. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/grammars/python.lark +0 -0
  118. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/grammars/unicode.lark +0 -0
  119. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/indenter.py +0 -0
  120. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/lark.py +0 -0
  121. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/lexer.py +0 -0
  122. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/load_grammar.py +0 -0
  123. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/parse_tree_builder.py +0 -0
  124. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/parser_frontends.py +0 -0
  125. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/parsers/__init__.py +0 -0
  126. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/parsers/cyk.py +0 -0
  127. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/parsers/earley.py +0 -0
  128. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/parsers/earley_common.py +0 -0
  129. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/parsers/earley_forest.py +0 -0
  130. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/parsers/grammar_analysis.py +0 -0
  131. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/parsers/lalr_analysis.py +0 -0
  132. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/parsers/lalr_interactive_parser.py +0 -0
  133. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/parsers/lalr_parser.py +0 -0
  134. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/parsers/lalr_parser_state.py +0 -0
  135. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/parsers/xearley.py +0 -0
  136. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/py.typed +0 -0
  137. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/reconstruct.py +0 -0
  138. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/tools/__init__.py +0 -0
  139. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/tools/nearley.py +0 -0
  140. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/tools/serialize.py +0 -0
  141. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/tools/standalone.py +0 -0
  142. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/tree.py +0 -0
  143. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/tree_matcher.py +0 -0
  144. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/tree_templates.py +0 -0
  145. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/utils.py +0 -0
  146. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/lark/visitors.py +0 -0
  147. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/marshmallow/__init__.py +0 -0
  148. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/marshmallow/base.py +0 -0
  149. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/marshmallow/class_registry.py +0 -0
  150. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/marshmallow/decorators.py +0 -0
  151. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/marshmallow/error_store.py +0 -0
  152. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/marshmallow/exceptions.py +0 -0
  153. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/marshmallow/fields.py +0 -0
  154. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/marshmallow/orderedset.py +0 -0
  155. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/marshmallow/py.typed +0 -0
  156. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/marshmallow/schema.py +0 -0
  157. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/marshmallow/types.py +0 -0
  158. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/marshmallow/utils.py +0 -0
  159. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/marshmallow/validate.py +0 -0
  160. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/marshmallow/warnings.py +0 -0
  161. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/marshmallow_dataclass/__init__.py +0 -0
  162. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/marshmallow_dataclass/collection_field.py +0 -0
  163. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/marshmallow_dataclass/lazy_class_attribute.py +0 -0
  164. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/marshmallow_dataclass/mypy.py +0 -0
  165. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/marshmallow_dataclass/py.typed +0 -0
  166. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/marshmallow_dataclass/typing.py +0 -0
  167. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/marshmallow_dataclass/union_field.py +0 -0
  168. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/marshmallow_oneofschema/__init__.py +0 -0
  169. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/marshmallow_oneofschema/one_of_schema.py +0 -0
  170. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/marshmallow_oneofschema/py.typed +0 -0
  171. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/msgpack/__init__.py +0 -0
  172. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/msgpack/_cmsgpack.pyx +0 -0
  173. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/msgpack/_packer.pyx +0 -0
  174. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/msgpack/_unpacker.pyx +0 -0
  175. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/msgpack/buff_converter.h +0 -0
  176. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/msgpack/exceptions.py +0 -0
  177. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/msgpack/ext.py +0 -0
  178. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/msgpack/fallback.py +0 -0
  179. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/msgpack/pack.h +0 -0
  180. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/msgpack/pack_template.h +0 -0
  181. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/msgpack/sysdep.h +0 -0
  182. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/msgpack/unpack.h +0 -0
  183. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/msgpack/unpack_define.h +0 -0
  184. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/msgpack/unpack_template.h +0 -0
  185. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/parsimonious/__init__.py +0 -0
  186. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/parsimonious/exceptions.py +0 -0
  187. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/parsimonious/expressions.py +0 -0
  188. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/parsimonious/grammar.py +0 -0
  189. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/parsimonious/nodes.py +0 -0
  190. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/parsimonious/utils.py +0 -0
  191. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/__init__.py +0 -0
  192. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/abi/v0/__init__.py +0 -0
  193. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/abi/v0/model.py +0 -0
  194. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/abi/v0/parser.py +0 -0
  195. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/abi/v0/schemas.py +0 -0
  196. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/abi/v0/shape.py +0 -0
  197. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/abi/v1/__init__.py +0 -0
  198. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/abi/v1/core_structures.json +0 -0
  199. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/abi/v1/model.py +0 -0
  200. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/abi/v1/parser.py +0 -0
  201. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/abi/v1/parser_transformer.py +0 -0
  202. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/abi/v1/schemas.py +0 -0
  203. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/abi/v1/shape.py +0 -0
  204. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/abi/v2/__init__.py +0 -0
  205. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/abi/v2/model.py +0 -0
  206. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/abi/v2/parser.py +0 -0
  207. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/abi/v2/parser_transformer.py +0 -0
  208. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/abi/v2/schemas.py +0 -0
  209. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/abi/v2/shape.py +0 -0
  210. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/cairo/__init__.py +0 -0
  211. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/cairo/data_types.py +0 -0
  212. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/cairo/deprecated_parse/__init__.py +0 -0
  213. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/cairo/deprecated_parse/cairo_types.py +0 -0
  214. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/cairo/deprecated_parse/parser.py +0 -0
  215. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/cairo/deprecated_parse/parser_transformer.py +0 -0
  216. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/cairo/felt.py +0 -0
  217. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/cairo/type_parser.py +0 -0
  218. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/cairo/v1/__init__.py +0 -0
  219. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/cairo/v1/type_parser.py +0 -0
  220. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/cairo/v2/__init__.py +0 -0
  221. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/cairo/v2/type_parser.py +0 -0
  222. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/ccxt_utils.py +0 -0
  223. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/common.py +0 -0
  224. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/constants.py +0 -0
  225. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/hash/__init__.py +0 -0
  226. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/hash/address.py +0 -0
  227. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/hash/compiled_class_hash_objects.py +0 -0
  228. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/hash/selector.py +0 -0
  229. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/hash/storage.py +0 -0
  230. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/hash/utils.py +0 -0
  231. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/models/__init__.py +0 -0
  232. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/models/typed_data.py +0 -0
  233. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/serialization/__init__.py +0 -0
  234. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/serialization/_calldata_reader.py +0 -0
  235. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/serialization/_context.py +0 -0
  236. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/__init__.py +0 -0
  237. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/_common.py +0 -0
  238. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/array_serializer.py +0 -0
  239. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/bool_serializer.py +0 -0
  240. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/byte_array_serializer.py +0 -0
  241. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/cairo_data_serializer.py +0 -0
  242. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/enum_serializer.py +0 -0
  243. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/felt_serializer.py +0 -0
  244. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/named_tuple_serializer.py +0 -0
  245. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/option_serializer.py +0 -0
  246. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/output_serializer.py +0 -0
  247. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/payload_serializer.py +0 -0
  248. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/struct_serializer.py +0 -0
  249. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/tuple_serializer.py +0 -0
  250. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/uint256_serializer.py +0 -0
  251. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/uint_serializer.py +0 -0
  252. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/unit_serializer.py +0 -0
  253. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/serialization/errors.py +0 -0
  254. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/serialization/factory.py +0 -0
  255. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/serialization/function_serialization_adapter.py +0 -0
  256. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/serialization/tuple_dataclass.py +0 -0
  257. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/utils/__init__.py +0 -0
  258. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/utils/constructor_args_translator.py +0 -0
  259. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/utils/iterable.py +0 -0
  260. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/utils/schema.py +0 -0
  261. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starknet/utils/typed_data.py +0 -0
  262. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starkware/__init__.py +0 -0
  263. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starkware/crypto/__init__.py +0 -0
  264. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starkware/crypto/fast_pedersen_hash.py +0 -0
  265. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starkware/crypto/math_utils.py +0 -0
  266. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starkware/crypto/signature.py +0 -0
  267. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/starkware/crypto/utils.py +0 -0
  268. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/sympy/__init__.py +0 -0
  269. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/sympy/core/__init__.py +0 -0
  270. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/sympy/core/intfunc.py +0 -0
  271. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/sympy/external/__init__.py +0 -0
  272. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/sympy/external/gmpy.py +0 -0
  273. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/sympy/external/importtools.py +0 -0
  274. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/sympy/external/ntheory.py +0 -0
  275. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/sympy/external/pythonmpq.py +0 -0
  276. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/toolz/__init__.py +0 -0
  277. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/toolz/_signatures.py +0 -0
  278. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/toolz/_version.py +0 -0
  279. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/toolz/compatibility.py +0 -0
  280. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/toolz/curried/__init__.py +0 -0
  281. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/toolz/curried/exceptions.py +0 -0
  282. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/toolz/curried/operator.py +0 -0
  283. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/toolz/dicttoolz.py +0 -0
  284. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/toolz/functoolz.py +0 -0
  285. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/toolz/itertoolz.py +0 -0
  286. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/toolz/recipes.py +0 -0
  287. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/toolz/utils.py +0 -0
  288. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/typing_inspect/__init__.py +0 -0
  289. {gate_io_api-0.0.22 → gate_io_api-0.0.24}/src/gate/ccxt/static_dependencies/typing_inspect/typing_inspect.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gate-io-api
3
- Version: 0.0.22
3
+ Version: 0.0.24
4
4
  Summary: gate crypto exchange api client
5
5
  Project-URL: Homepage, https://github.com/ccxt/ccxt
6
6
  Project-URL: Issues, https://github.com/ccxt/ccxt
@@ -20,8 +20,10 @@ Description-Content-Type: text/markdown
20
20
  # gate-python
21
21
  Python SDK (sync and async) for Gate cryptocurrency exchange with Rest and WS capabilities.
22
22
 
23
- You can check the SDK docs here: [SDK](https://docs.ccxt.com/#/exchanges/gate)
24
- You can check Gate's docs here: [Docs](https://www.google.com/search?q=google+gate+cryptocurrency+exchange+api+docs)
23
+ - You can check the SDK docs here: [SDK](https://docs.ccxt.com/#/exchanges/gate)
24
+ - You can check Gate's docs here: [Docs](https://www.google.com/search?q=google+gate+cryptocurrency+exchange+api+docs)
25
+ - Github repo: https://github.com/ccxt/gate-python
26
+ - Pypi package: https://pypi.org/project/gate-io-api
25
27
 
26
28
 
27
29
  ## Installation
@@ -44,6 +46,8 @@ def main():
44
46
  #
45
47
  # balance = instance.fetch_balance()
46
48
  # order = instance.create_order("BTC/USDC", "limit", "buy", 1, 100000)
49
+
50
+ main()
47
51
  ```
48
52
 
49
53
  ### Async
@@ -53,8 +57,9 @@ import sys
53
57
  import asyncio
54
58
  from gate import GateAsync
55
59
 
56
- if sys.platform == 'win32':
57
- asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
60
+ ### on Windows, uncomment below:
61
+ # if sys.platform == 'win32':
62
+ # asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
58
63
 
59
64
  async def main():
60
65
  instance = GateAsync({})
@@ -78,8 +83,9 @@ asyncio.run(main())
78
83
  import sys
79
84
  from gate import GateWs
80
85
 
81
- if sys.platform == 'win32':
82
- asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
86
+ ### on Windows, uncomment below:
87
+ # if sys.platform == 'win32':
88
+ # asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
83
89
 
84
90
  async def main():
85
91
  instance = GateWs({})
@@ -90,6 +96,8 @@ async def main():
90
96
 
91
97
  # once you are done with the exchange
92
98
  await instance.close()
99
+
100
+ asyncio.run(main())
93
101
  ```
94
102
 
95
103
 
@@ -1,8 +1,10 @@
1
1
  # gate-python
2
2
  Python SDK (sync and async) for Gate cryptocurrency exchange with Rest and WS capabilities.
3
3
 
4
- You can check the SDK docs here: [SDK](https://docs.ccxt.com/#/exchanges/gate)
5
- You can check Gate's docs here: [Docs](https://www.google.com/search?q=google+gate+cryptocurrency+exchange+api+docs)
4
+ - You can check the SDK docs here: [SDK](https://docs.ccxt.com/#/exchanges/gate)
5
+ - You can check Gate's docs here: [Docs](https://www.google.com/search?q=google+gate+cryptocurrency+exchange+api+docs)
6
+ - Github repo: https://github.com/ccxt/gate-python
7
+ - Pypi package: https://pypi.org/project/gate-io-api
6
8
 
7
9
 
8
10
  ## Installation
@@ -25,6 +27,8 @@ def main():
25
27
  #
26
28
  # balance = instance.fetch_balance()
27
29
  # order = instance.create_order("BTC/USDC", "limit", "buy", 1, 100000)
30
+
31
+ main()
28
32
  ```
29
33
 
30
34
  ### Async
@@ -34,8 +38,9 @@ import sys
34
38
  import asyncio
35
39
  from gate import GateAsync
36
40
 
37
- if sys.platform == 'win32':
38
- asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
41
+ ### on Windows, uncomment below:
42
+ # if sys.platform == 'win32':
43
+ # asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
39
44
 
40
45
  async def main():
41
46
  instance = GateAsync({})
@@ -59,8 +64,9 @@ asyncio.run(main())
59
64
  import sys
60
65
  from gate import GateWs
61
66
 
62
- if sys.platform == 'win32':
63
- asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
67
+ ### on Windows, uncomment below:
68
+ # if sys.platform == 'win32':
69
+ # asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
64
70
 
65
71
  async def main():
66
72
  instance = GateWs({})
@@ -71,6 +77,8 @@ async def main():
71
77
 
72
78
  # once you are done with the exchange
73
79
  await instance.close()
80
+
81
+ asyncio.run(main())
74
82
  ```
75
83
 
76
84
 
@@ -11,7 +11,7 @@ only-include = ["src/gate"]
11
11
 
12
12
  [project]
13
13
  name = "gate-io-api"
14
- version = "0.0.22"
14
+ version = "0.0.24"
15
15
  authors = [
16
16
  { name="CCXT", email="info@ccxt.trade" },
17
17
  ]
@@ -26,7 +26,7 @@ sys.modules['ccxt'] = ccxt_module
26
26
 
27
27
  # ----------------------------------------------------------------------------
28
28
 
29
- __version__ = '4.4.72'
29
+ __version__ = '4.4.75'
30
30
 
31
31
  # ----------------------------------------------------------------------------
32
32
 
@@ -87,10 +87,9 @@ from ccxt.base.errors import CancelPending # noqa: F4
87
87
  from ccxt.base.errors import UnsubscribeError # noqa: F401
88
88
  from ccxt.base.errors import error_hierarchy # noqa: F401
89
89
 
90
- from ccxt.bitfinex1 import bitfinex1 # noqa: F401
91
90
  from ccxt.gate import gate # noqa: F401
92
91
 
93
- exchanges = [ 'bitfinex1', 'gate',]
92
+ exchanges = [ 'gate',]
94
93
 
95
94
  base = [
96
95
  'Exchange',
@@ -8,7 +8,7 @@ sys.modules['ccxt'] = ccxt_module
8
8
 
9
9
  # -----------------------------------------------------------------------------
10
10
 
11
- __version__ = '4.4.72'
11
+ __version__ = '4.4.75'
12
12
 
13
13
  # -----------------------------------------------------------------------------
14
14
 
@@ -67,10 +67,9 @@ from ccxt.base.errors import UnsubscribeError # noqa: F4
67
67
  from ccxt.base.errors import error_hierarchy # noqa: F401
68
68
 
69
69
 
70
- from ccxt.async_support.bitfinex1 import bitfinex1 # noqa: F401
71
70
  from ccxt.async_support.gate import gate # noqa: F401
72
71
 
73
- exchanges = [ 'bitfinex1', 'gate',]
72
+ exchanges = [ 'gate',]
74
73
 
75
74
  base = [
76
75
  'Exchange',
@@ -2,7 +2,7 @@
2
2
 
3
3
  # -----------------------------------------------------------------------------
4
4
 
5
- __version__ = '4.4.72'
5
+ __version__ = '4.4.75'
6
6
 
7
7
  # -----------------------------------------------------------------------------
8
8
 
@@ -1485,6 +1485,10 @@ class gate(Exchange, ImplicitAPI):
1485
1485
  takerPercent = self.safe_string(market, 'taker_fee_rate')
1486
1486
  makerPercent = self.safe_string(market, 'maker_fee_rate', takerPercent)
1487
1487
  isLinear = quote == settle
1488
+ contractSize = self.safe_string(market, 'quanto_multiplier')
1489
+ # exception only for one market: https://api.gateio.ws/api/v4/futures/btc/contracts
1490
+ if contractSize == '0':
1491
+ contractSize = '1' # 1 USD in WEB: https://i.imgur.com/MBBUI04.png
1488
1492
  return {
1489
1493
  'id': id,
1490
1494
  'symbol': symbol,
@@ -1506,7 +1510,7 @@ class gate(Exchange, ImplicitAPI):
1506
1510
  'inverse': not isLinear,
1507
1511
  'taker': self.parse_number(Precise.string_div(takerPercent, '100')), # Fee is in %, so divide by 100
1508
1512
  'maker': self.parse_number(Precise.string_div(makerPercent, '100')),
1509
- 'contractSize': self.safe_number(market, 'quanto_multiplier'),
1513
+ 'contractSize': self.parse_number(contractSize),
1510
1514
  'expiry': expiry,
1511
1515
  'expiryDatetime': self.iso8601(expiry),
1512
1516
  'strike': None,
@@ -1819,9 +1823,9 @@ class gate(Exchange, ImplicitAPI):
1819
1823
  partFirst = self.safe_string(parts, 0)
1820
1824
  # if there's an underscore then the second part is always the chain name(except the _OLD suffix)
1821
1825
  currencyName = currencyId if currencyId.endswith('_OLD') else partFirst
1822
- withdrawEnabled = not self.safe_bool(entry, 'withdraw_disabled')
1823
- depositEnabled = not self.safe_bool(entry, 'deposit_disabled')
1824
- tradeDisabled = not self.safe_bool(entry, 'trade_disabled')
1826
+ withdrawDisabled = self.safe_bool(entry, 'withdraw_disabled', False)
1827
+ depositDisabled = self.safe_bool(entry, 'deposit_disabled', False)
1828
+ tradeDisabled = self.safe_bool(entry, 'trade_disabled', False)
1825
1829
  precision = self.parse_number('0.0001') # temporary safe default, because no value provided from API
1826
1830
  code = self.safe_currency_code(currencyName)
1827
1831
  # check leveraged tokens(e.g. BTC3S, ETH5L)
@@ -1849,8 +1853,8 @@ class gate(Exchange, ImplicitAPI):
1849
1853
  },
1850
1854
  },
1851
1855
  'active': not tradeDisabled,
1852
- 'deposit': depositEnabled,
1853
- 'withdraw': withdrawEnabled,
1856
+ 'deposit': not depositDisabled,
1857
+ 'withdraw': not withdrawDisabled,
1854
1858
  'fee': None,
1855
1859
  'precision': precision,
1856
1860
  }
@@ -6366,7 +6370,7 @@ class gate(Exchange, ImplicitAPI):
6366
6370
  queryString = self.urlencode(query)
6367
6371
  # https://github.com/ccxt/ccxt/issues/25570
6368
6372
  if queryString.find('currencies=') >= 0 and queryString.find('%2C') >= 0:
6369
- queryString = queryString.replace('%2', ',')
6373
+ queryString = queryString.replace('%2C', ',')
6370
6374
  url += '?' + queryString
6371
6375
  if method == 'PATCH':
6372
6376
  body = self.json(query)
@@ -4,7 +4,7 @@
4
4
 
5
5
  # -----------------------------------------------------------------------------
6
6
 
7
- __version__ = '4.4.72'
7
+ __version__ = '4.4.75'
8
8
 
9
9
  # -----------------------------------------------------------------------------
10
10
 
@@ -2913,9 +2913,6 @@ class Exchange(object):
2913
2913
 
2914
2914
  def safe_currency_structure(self, currency: object):
2915
2915
  # derive data from networks: deposit, withdraw, active, fee, limits, precision
2916
- currencyDeposit = self.safe_bool(currency, 'deposit')
2917
- currencyWithdraw = self.safe_bool(currency, 'withdraw')
2918
- currencyActive = self.safe_bool(currency, 'active')
2919
2916
  networks = self.safe_dict(currency, 'networks', {})
2920
2917
  keys = list(networks.keys())
2921
2918
  length = len(keys)
@@ -2924,20 +2921,24 @@ class Exchange(object):
2924
2921
  key = keys[i]
2925
2922
  network = networks[key]
2926
2923
  deposit = self.safe_bool(network, 'deposit')
2924
+ currencyDeposit = self.safe_bool(currency, 'deposit')
2927
2925
  if currencyDeposit is None or deposit:
2928
2926
  currency['deposit'] = deposit
2929
2927
  withdraw = self.safe_bool(network, 'withdraw')
2928
+ currencyWithdraw = self.safe_bool(currency, 'withdraw')
2930
2929
  if currencyWithdraw is None or withdraw:
2931
2930
  currency['withdraw'] = withdraw
2932
- active = self.safe_bool(network, 'active')
2933
- if currencyActive is None or active:
2934
- currency['active'] = active
2935
2931
  # set network 'active' to False if D or W is disabled
2936
- if self.safe_bool(network, 'active') is None:
2932
+ active = self.safe_bool(network, 'active')
2933
+ if active is None:
2937
2934
  if deposit and withdraw:
2938
2935
  currency['networks'][key]['active'] = True
2939
2936
  elif deposit is not None and withdraw is not None:
2940
2937
  currency['networks'][key]['active'] = False
2938
+ active = self.safe_bool(network, 'active')
2939
+ currencyActive = self.safe_bool(currency, 'active')
2940
+ if currencyActive is None or active:
2941
+ currency['active'] = active
2941
2942
  # find lowest fee(which is more desired)
2942
2943
  fee = self.safe_string(network, 'fee')
2943
2944
  feeMain = self.safe_string(currency, 'fee')
@@ -6471,24 +6472,36 @@ class Exchange(object):
6471
6472
  return self.sort_by(result, 'id', True)
6472
6473
  return result
6473
6474
 
6474
- def remove_repeated_elements_from_array(self, input):
6475
+ def remove_repeated_elements_from_array(self, input, fallbackToTimestamp: bool = True):
6476
+ uniqueDic = {}
6477
+ uniqueResult = []
6478
+ for i in range(0, len(input)):
6479
+ entry = input[i]
6480
+ uniqValue = self.safe_string_n(entry, ['id', 'timestamp', 0]) if fallbackToTimestamp else self.safe_string(entry, 'id')
6481
+ if uniqValue is not None and not (uniqValue in uniqueDic):
6482
+ uniqueDic[uniqValue] = 1
6483
+ uniqueResult.append(entry)
6484
+ valuesLength = len(uniqueResult)
6485
+ if valuesLength > 0:
6486
+ return uniqueResult
6487
+ return input
6488
+
6489
+ def remove_repeated_trades_from_array(self, input):
6475
6490
  uniqueResult = {}
6476
6491
  for i in range(0, len(input)):
6477
6492
  entry = input[i]
6478
6493
  id = self.safe_string(entry, 'id')
6479
- if id is not None:
6480
- if self.safe_string(uniqueResult, id) is None:
6481
- uniqueResult[id] = entry
6482
- else:
6483
- timestamp = self.safe_integer_2(entry, 'timestamp', 0)
6484
- if timestamp is not None:
6485
- if self.safe_string(uniqueResult, timestamp) is None:
6486
- uniqueResult[timestamp] = entry
6494
+ if id is None:
6495
+ price = self.safe_string(entry, 'price')
6496
+ amount = self.safe_string(entry, 'amount')
6497
+ timestamp = self.safe_string(entry, 'timestamp')
6498
+ side = self.safe_string(entry, 'side')
6499
+ # unique trade identifier
6500
+ id = 't_' + str(timestamp) + '_' + side + '_' + price + '_' + amount
6501
+ if id is not None and not (id in uniqueResult):
6502
+ uniqueResult[id] = entry
6487
6503
  values = list(uniqueResult.values())
6488
- valuesLength = len(values)
6489
- if valuesLength > 0:
6490
- return values
6491
- return input
6504
+ return values
6492
6505
 
6493
6506
  def handle_until_option(self, key: str, request, params, multiplier=1):
6494
6507
  until = self.safe_integer_2(params, 'until', 'till')
@@ -1484,6 +1484,10 @@ class gate(Exchange, ImplicitAPI):
1484
1484
  takerPercent = self.safe_string(market, 'taker_fee_rate')
1485
1485
  makerPercent = self.safe_string(market, 'maker_fee_rate', takerPercent)
1486
1486
  isLinear = quote == settle
1487
+ contractSize = self.safe_string(market, 'quanto_multiplier')
1488
+ # exception only for one market: https://api.gateio.ws/api/v4/futures/btc/contracts
1489
+ if contractSize == '0':
1490
+ contractSize = '1' # 1 USD in WEB: https://i.imgur.com/MBBUI04.png
1487
1491
  return {
1488
1492
  'id': id,
1489
1493
  'symbol': symbol,
@@ -1505,7 +1509,7 @@ class gate(Exchange, ImplicitAPI):
1505
1509
  'inverse': not isLinear,
1506
1510
  'taker': self.parse_number(Precise.string_div(takerPercent, '100')), # Fee is in %, so divide by 100
1507
1511
  'maker': self.parse_number(Precise.string_div(makerPercent, '100')),
1508
- 'contractSize': self.safe_number(market, 'quanto_multiplier'),
1512
+ 'contractSize': self.parse_number(contractSize),
1509
1513
  'expiry': expiry,
1510
1514
  'expiryDatetime': self.iso8601(expiry),
1511
1515
  'strike': None,
@@ -1818,9 +1822,9 @@ class gate(Exchange, ImplicitAPI):
1818
1822
  partFirst = self.safe_string(parts, 0)
1819
1823
  # if there's an underscore then the second part is always the chain name(except the _OLD suffix)
1820
1824
  currencyName = currencyId if currencyId.endswith('_OLD') else partFirst
1821
- withdrawEnabled = not self.safe_bool(entry, 'withdraw_disabled')
1822
- depositEnabled = not self.safe_bool(entry, 'deposit_disabled')
1823
- tradeDisabled = not self.safe_bool(entry, 'trade_disabled')
1825
+ withdrawDisabled = self.safe_bool(entry, 'withdraw_disabled', False)
1826
+ depositDisabled = self.safe_bool(entry, 'deposit_disabled', False)
1827
+ tradeDisabled = self.safe_bool(entry, 'trade_disabled', False)
1824
1828
  precision = self.parse_number('0.0001') # temporary safe default, because no value provided from API
1825
1829
  code = self.safe_currency_code(currencyName)
1826
1830
  # check leveraged tokens(e.g. BTC3S, ETH5L)
@@ -1848,8 +1852,8 @@ class gate(Exchange, ImplicitAPI):
1848
1852
  },
1849
1853
  },
1850
1854
  'active': not tradeDisabled,
1851
- 'deposit': depositEnabled,
1852
- 'withdraw': withdrawEnabled,
1855
+ 'deposit': not depositDisabled,
1856
+ 'withdraw': not withdrawDisabled,
1853
1857
  'fee': None,
1854
1858
  'precision': precision,
1855
1859
  }
@@ -6365,7 +6369,7 @@ class gate(Exchange, ImplicitAPI):
6365
6369
  queryString = self.urlencode(query)
6366
6370
  # https://github.com/ccxt/ccxt/issues/25570
6367
6371
  if queryString.find('currencies=') >= 0 and queryString.find('%2C') >= 0:
6368
- queryString = queryString.replace('%2', ',')
6372
+ queryString = queryString.replace('%2C', ',')
6369
6373
  url += '?' + queryString
6370
6374
  if method == 'PATCH':
6371
6375
  body = self.json(query)
@@ -8,7 +8,7 @@ sys.modules['ccxt'] = ccxt_module
8
8
 
9
9
  # ----------------------------------------------------------------------------
10
10
 
11
- __version__ = '4.4.72'
11
+ __version__ = '4.4.75'
12
12
 
13
13
  # ----------------------------------------------------------------------------
14
14
 
@@ -16,7 +16,6 @@ from ccxt.async_support.base.exchange import Exchange # noqa: F401
16
16
 
17
17
  # CCXT Pro exchanges (now this is mainly used for importing exchanges in WS tests)
18
18
 
19
- from ccxt.pro.bitfinex1 import bitfinex1 # noqa: F401
20
19
  from ccxt.pro.gate import gate # noqa: F401
21
20
 
22
- exchanges = [ 'bitfinex1', 'gate',]
21
+ exchanges = [ 'gate',]
File without changes