gate-io-api 0.0.85__tar.gz → 0.0.87__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.
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/PKG-INFO +1 -1
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/pyproject.toml +1 -1
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/__init__.py +1 -1
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/async_support/__init__.py +1 -1
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/async_support/base/exchange.py +1 -1
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/async_support/gate.py +9 -1
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/base/errors.py +0 -6
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/base/exchange.py +85 -10
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/gate.py +9 -1
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/pro/__init__.py +1 -1
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/.gitignore +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/README.md +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/abstract/gate.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/async_support/base/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/async_support/base/throttler.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/async_support/base/ws/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/async_support/base/ws/cache.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/async_support/base/ws/client.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/async_support/base/ws/functions.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/async_support/base/ws/future.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/async_support/base/ws/order_book.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/async_support/base/ws/order_book_side.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/base/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/base/decimal_to_precision.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/base/precise.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/base/types.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/pro/gate.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/README.md +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ecdsa/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ecdsa/_version.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ecdsa/curves.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ecdsa/der.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ecdsa/ecdsa.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ecdsa/ellipticcurve.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ecdsa/keys.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ecdsa/numbertheory.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ecdsa/rfc6979.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ecdsa/util.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/abi/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/abi/abi.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/abi/base.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/abi/codec.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/abi/constants.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/abi/decoding.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/abi/encoding.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/abi/exceptions.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/abi/grammar.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/abi/packed.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/abi/py.typed +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/abi/registry.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/abi/tools/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/abi/tools/_strategies.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/abi/utils/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/abi/utils/numeric.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/abi/utils/padding.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/abi/utils/string.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/account/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/account/encode_typed_data/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/account/encode_typed_data/encoding_and_hashing.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/account/encode_typed_data/helpers.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/account/messages.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/account/py.typed +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/hexbytes/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/hexbytes/_utils.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/hexbytes/main.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/hexbytes/py.typed +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/typing/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/typing/abi.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/typing/bls.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/typing/discovery.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/typing/encoding.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/typing/enums.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/typing/ethpm.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/typing/evm.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/typing/networks.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/typing/py.typed +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/utils/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/utils/abi.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/utils/address.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/utils/applicators.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/utils/conversions.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/utils/currency.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/utils/curried/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/utils/debug.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/utils/decorators.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/utils/encoding.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/utils/exceptions.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/utils/functional.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/utils/hexadecimal.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/utils/humanize.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/utils/logging.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/utils/module_loading.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/utils/numeric.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/utils/py.typed +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/utils/toolz.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/utils/types.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/utils/typing/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/utils/typing/misc.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/utils/units.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/keccak/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/keccak/keccak.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/__pyinstaller/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/__pyinstaller/hook-lark.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/ast_utils.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/common.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/exceptions.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/grammar.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/grammars/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/grammars/common.lark +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/grammars/lark.lark +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/grammars/python.lark +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/grammars/unicode.lark +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/indenter.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/lark.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/lexer.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/load_grammar.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/parse_tree_builder.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/parser_frontends.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/parsers/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/parsers/cyk.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/parsers/earley.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/parsers/earley_common.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/parsers/earley_forest.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/parsers/grammar_analysis.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/parsers/lalr_analysis.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/parsers/lalr_interactive_parser.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/parsers/lalr_parser.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/parsers/lalr_parser_state.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/parsers/xearley.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/py.typed +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/reconstruct.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/tools/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/tools/nearley.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/tools/serialize.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/tools/standalone.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/tree.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/tree_matcher.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/tree_templates.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/utils.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/visitors.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/marshmallow/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/marshmallow/base.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/marshmallow/class_registry.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/marshmallow/decorators.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/marshmallow/error_store.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/marshmallow/exceptions.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/marshmallow/fields.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/marshmallow/orderedset.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/marshmallow/py.typed +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/marshmallow/schema.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/marshmallow/types.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/marshmallow/utils.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/marshmallow/validate.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/marshmallow/warnings.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/marshmallow_dataclass/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/marshmallow_dataclass/collection_field.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/marshmallow_dataclass/lazy_class_attribute.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/marshmallow_dataclass/mypy.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/marshmallow_dataclass/py.typed +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/marshmallow_dataclass/typing.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/marshmallow_dataclass/union_field.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/marshmallow_oneofschema/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/marshmallow_oneofschema/one_of_schema.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/marshmallow_oneofschema/py.typed +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/msgpack/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/msgpack/_cmsgpack.pyx +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/msgpack/_packer.pyx +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/msgpack/_unpacker.pyx +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/msgpack/buff_converter.h +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/msgpack/exceptions.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/msgpack/ext.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/msgpack/fallback.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/msgpack/pack.h +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/msgpack/pack_template.h +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/msgpack/sysdep.h +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/msgpack/unpack.h +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/msgpack/unpack_define.h +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/msgpack/unpack_template.h +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/parsimonious/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/parsimonious/exceptions.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/parsimonious/expressions.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/parsimonious/grammar.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/parsimonious/nodes.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/parsimonious/utils.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/abi/v0/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/abi/v0/model.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/abi/v0/parser.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/abi/v0/schemas.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/abi/v0/shape.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/abi/v1/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/abi/v1/core_structures.json +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/abi/v1/model.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/abi/v1/parser.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/abi/v1/parser_transformer.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/abi/v1/schemas.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/abi/v1/shape.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/abi/v2/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/abi/v2/model.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/abi/v2/parser.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/abi/v2/parser_transformer.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/abi/v2/schemas.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/abi/v2/shape.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/cairo/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/cairo/data_types.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/cairo/deprecated_parse/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/cairo/deprecated_parse/cairo_types.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/cairo/deprecated_parse/parser.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/cairo/deprecated_parse/parser_transformer.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/cairo/felt.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/cairo/type_parser.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/cairo/v1/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/cairo/v1/type_parser.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/cairo/v2/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/cairo/v2/type_parser.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/ccxt_utils.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/common.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/constants.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/hash/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/hash/address.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/hash/compiled_class_hash_objects.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/hash/selector.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/hash/storage.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/hash/utils.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/models/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/models/typed_data.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/serialization/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/serialization/_calldata_reader.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/serialization/_context.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/_common.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/array_serializer.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/bool_serializer.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/byte_array_serializer.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/cairo_data_serializer.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/enum_serializer.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/felt_serializer.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/named_tuple_serializer.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/option_serializer.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/output_serializer.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/payload_serializer.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/struct_serializer.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/tuple_serializer.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/uint256_serializer.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/uint_serializer.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/serialization/data_serializers/unit_serializer.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/serialization/errors.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/serialization/factory.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/serialization/function_serialization_adapter.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/serialization/tuple_dataclass.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/utils/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/utils/constructor_args_translator.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/utils/iterable.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/utils/schema.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starknet/utils/typed_data.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starkware/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starkware/crypto/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starkware/crypto/fast_pedersen_hash.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starkware/crypto/math_utils.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starkware/crypto/signature.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/starkware/crypto/utils.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/sympy/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/sympy/core/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/sympy/core/intfunc.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/sympy/external/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/sympy/external/gmpy.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/sympy/external/importtools.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/sympy/external/ntheory.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/sympy/external/pythonmpq.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/toolz/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/toolz/_signatures.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/toolz/_version.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/toolz/compatibility.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/toolz/curried/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/toolz/curried/exceptions.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/toolz/curried/operator.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/toolz/dicttoolz.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/toolz/functoolz.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/toolz/itertoolz.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/toolz/recipes.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/toolz/utils.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/typing_inspect/__init__.py +0 -0
- {gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/typing_inspect/typing_inspect.py +0 -0
|
@@ -2861,6 +2861,14 @@ class gate(Exchange, ImplicitAPI):
|
|
|
2861
2861
|
|
|
2862
2862
|
async def fetch_balance(self, params={}) -> Balances:
|
|
2863
2863
|
"""
|
|
2864
|
+
|
|
2865
|
+
https://www.gate.com/docs/developers/apiv4/en/#margin-account-list
|
|
2866
|
+
https://www.gate.com/docs/developers/apiv4/en/#get-unified-account-information
|
|
2867
|
+
https://www.gate.com/docs/developers/apiv4/en/#list-spot-trading-accounts
|
|
2868
|
+
https://www.gate.com/docs/developers/apiv4/en/#get-futures-account
|
|
2869
|
+
https://www.gate.com/docs/developers/apiv4/en/#get-futures-account-2
|
|
2870
|
+
https://www.gate.com/docs/developers/apiv4/en/#query-account-information
|
|
2871
|
+
|
|
2864
2872
|
:param dict [params]: exchange specific parameters
|
|
2865
2873
|
:param str [params.type]: spot, margin, swap or future, if not provided self.options['defaultType'] is used
|
|
2866
2874
|
:param str [params.settle]: 'btc' or 'usdt' - settle currency for perpetual swap and future - default="usdt" for swap and "btc" for future
|
|
@@ -3101,7 +3109,7 @@ class gate(Exchange, ImplicitAPI):
|
|
|
3101
3109
|
result: dict = {
|
|
3102
3110
|
'info': response,
|
|
3103
3111
|
}
|
|
3104
|
-
isolated = marginMode == 'margin'
|
|
3112
|
+
isolated = marginMode == 'margin' and type == 'spot'
|
|
3105
3113
|
data = response
|
|
3106
3114
|
if 'balances' in data: # True for cross_margin and unified
|
|
3107
3115
|
flatBalances = []
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
# ----------------------------------------------------------------------------
|
|
2
|
-
|
|
3
|
-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
|
|
4
|
-
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
|
5
|
-
# EDIT THE CORRESPONDENT .ts FILE INSTEAD
|
|
6
|
-
|
|
7
1
|
error_hierarchy = {
|
|
8
2
|
'BaseError': {
|
|
9
3
|
'ExchangeError': {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# -----------------------------------------------------------------------------
|
|
6
6
|
|
|
7
|
-
__version__ = '4.5.
|
|
7
|
+
__version__ = '4.5.5'
|
|
8
8
|
|
|
9
9
|
# -----------------------------------------------------------------------------
|
|
10
10
|
|
|
@@ -1309,6 +1309,10 @@ class Exchange(object):
|
|
|
1309
1309
|
elif algoType == 'ES':
|
|
1310
1310
|
rawSignature = Exchange.ecdsa(token, secret, 'p256', algorithm)
|
|
1311
1311
|
signature = Exchange.base16_to_binary(rawSignature['r'].rjust(64, "0") + rawSignature['s'].rjust(64, "0"))
|
|
1312
|
+
elif algoType == 'Ed':
|
|
1313
|
+
signature = Exchange.eddsa(token.encode('utf-8'), secret, 'ed25519', True)
|
|
1314
|
+
# here the signature is already a urlencoded base64-encoded string
|
|
1315
|
+
return token + '.' + signature
|
|
1312
1316
|
else:
|
|
1313
1317
|
signature = Exchange.hmac(Exchange.encode(token), secret, algos[algorithm], 'binary')
|
|
1314
1318
|
return token + '.' + Exchange.urlencode_base64(signature)
|
|
@@ -1379,9 +1383,9 @@ class Exchange(object):
|
|
|
1379
1383
|
return msgHash
|
|
1380
1384
|
|
|
1381
1385
|
@staticmethod
|
|
1382
|
-
def starknet_sign (
|
|
1386
|
+
def starknet_sign (msg_hash, pri):
|
|
1383
1387
|
# // TODO: unify to ecdsa
|
|
1384
|
-
r, s = message_signature(
|
|
1388
|
+
r, s = message_signature(msg_hash, pri)
|
|
1385
1389
|
return Exchange.json([hex(r), hex(s)])
|
|
1386
1390
|
|
|
1387
1391
|
@staticmethod
|
|
@@ -1442,12 +1446,22 @@ class Exchange(object):
|
|
|
1442
1446
|
'v': v,
|
|
1443
1447
|
}
|
|
1444
1448
|
|
|
1449
|
+
|
|
1450
|
+
@staticmethod
|
|
1451
|
+
def binary_to_urlencoded_base64(data: bytes) -> str:
|
|
1452
|
+
encoded = base64.urlsafe_b64encode(data).decode("utf-8")
|
|
1453
|
+
return encoded.rstrip("=")
|
|
1454
|
+
|
|
1445
1455
|
@staticmethod
|
|
1446
|
-
def eddsa(request, secret, curve='ed25519'):
|
|
1456
|
+
def eddsa(request, secret, curve='ed25519', url_encode=False):
|
|
1447
1457
|
if isinstance(secret, str):
|
|
1448
1458
|
secret = Exchange.encode(secret)
|
|
1449
1459
|
private_key = ed25519.Ed25519PrivateKey.from_private_bytes(secret) if len(secret) == 32 else load_pem_private_key(secret, None)
|
|
1450
|
-
|
|
1460
|
+
signature = private_key.sign(request)
|
|
1461
|
+
if url_encode:
|
|
1462
|
+
return Exchange.binary_to_urlencoded_base64(signature)
|
|
1463
|
+
|
|
1464
|
+
return Exchange.binary_to_base64(signature)
|
|
1451
1465
|
|
|
1452
1466
|
@staticmethod
|
|
1453
1467
|
def axolotl(request, secret, curve='ed25519'):
|
|
@@ -2865,9 +2879,9 @@ class Exchange(object):
|
|
|
2865
2879
|
def parse_to_numeric(self, number):
|
|
2866
2880
|
stringVersion = self.number_to_string(number) # self will convert 1.0 and 1 to "1" and 1.1 to "1.1"
|
|
2867
2881
|
# keep self in mind:
|
|
2868
|
-
# in JS:
|
|
2882
|
+
# in JS: 1 == 1.0 is True
|
|
2869
2883
|
# in Python: 1 == 1.0 is True
|
|
2870
|
-
# in PHP
|
|
2884
|
+
# in PHP: 1 == 1.0 is True, but 1 == 1.0 is False.
|
|
2871
2885
|
if stringVersion.find('.') >= 0:
|
|
2872
2886
|
return float(stringVersion)
|
|
2873
2887
|
return int(stringVersion)
|
|
@@ -3313,6 +3327,24 @@ class Exchange(object):
|
|
|
3313
3327
|
self.codes = list(currenciesSortedByCode.keys())
|
|
3314
3328
|
return self.markets
|
|
3315
3329
|
|
|
3330
|
+
def set_markets_from_exchange(self, sourceExchange):
|
|
3331
|
+
# Validate that both exchanges are of the same type
|
|
3332
|
+
if self.id != sourceExchange.id:
|
|
3333
|
+
raise ArgumentsRequired(self.id + ' shareMarkets() can only share markets with exchanges of the same type(got ' + sourceExchange['id'] + ')')
|
|
3334
|
+
# Validate that source exchange has loaded markets
|
|
3335
|
+
if not sourceExchange.markets:
|
|
3336
|
+
raise ExchangeError('setMarketsFromExchange() source exchange must have loaded markets first. Can call by using loadMarkets function')
|
|
3337
|
+
# Set all market-related data
|
|
3338
|
+
self.markets = sourceExchange.markets
|
|
3339
|
+
self.markets_by_id = sourceExchange.markets_by_id
|
|
3340
|
+
self.symbols = sourceExchange.symbols
|
|
3341
|
+
self.ids = sourceExchange.ids
|
|
3342
|
+
self.currencies = sourceExchange.currencies
|
|
3343
|
+
self.baseCurrencies = sourceExchange.baseCurrencies
|
|
3344
|
+
self.quoteCurrencies = sourceExchange.quoteCurrencies
|
|
3345
|
+
self.codes = sourceExchange.codes
|
|
3346
|
+
return self
|
|
3347
|
+
|
|
3316
3348
|
def get_describe_for_extended_ws_exchange(self, currentRestInstance: Any, parentRestInstance: Any, wsBaseDescribe: dict):
|
|
3317
3349
|
extendedRestDescribe = self.deep_extend(parentRestInstance.describe(), currentRestInstance.describe())
|
|
3318
3350
|
superWithRestDescribe = self.deep_extend(extendedRestDescribe, wsBaseDescribe)
|
|
@@ -4375,16 +4407,27 @@ class Exchange(object):
|
|
|
4375
4407
|
result.append(account)
|
|
4376
4408
|
return result
|
|
4377
4409
|
|
|
4378
|
-
def
|
|
4410
|
+
def parse_trades_helper(self, isWs: bool, trades: List[Any], market: Market = None, since: Int = None, limit: Int = None, params={}):
|
|
4379
4411
|
trades = self.to_array(trades)
|
|
4380
4412
|
result = []
|
|
4381
4413
|
for i in range(0, len(trades)):
|
|
4382
|
-
|
|
4414
|
+
parsed = None
|
|
4415
|
+
if isWs:
|
|
4416
|
+
parsed = self.parse_ws_trade(trades[i], market)
|
|
4417
|
+
else:
|
|
4418
|
+
parsed = self.parse_trade(trades[i], market)
|
|
4419
|
+
trade = self.extend(parsed, params)
|
|
4383
4420
|
result.append(trade)
|
|
4384
4421
|
result = self.sort_by_2(result, 'timestamp', 'id')
|
|
4385
4422
|
symbol = market['symbol'] if (market is not None) else None
|
|
4386
4423
|
return self.filter_by_symbol_since_limit(result, symbol, since, limit)
|
|
4387
4424
|
|
|
4425
|
+
def parse_trades(self, trades: List[Any], market: Market = None, since: Int = None, limit: Int = None, params={}):
|
|
4426
|
+
return self.parse_trades_helper(False, trades, market, since, limit, params)
|
|
4427
|
+
|
|
4428
|
+
def parse_ws_trades(self, trades: List[Any], market: Market = None, since: Int = None, limit: Int = None, params={}):
|
|
4429
|
+
return self.parse_trades_helper(True, trades, market, since, limit, params)
|
|
4430
|
+
|
|
4388
4431
|
def parse_transactions(self, transactions: List[Any], currency: Currency = None, since: Int = None, limit: Int = None, params={}):
|
|
4389
4432
|
transactions = self.to_array(transactions)
|
|
4390
4433
|
result = []
|
|
@@ -6056,6 +6099,29 @@ class Exchange(object):
|
|
|
6056
6099
|
symbol = None if (market is None) else market['symbol']
|
|
6057
6100
|
return self.filter_by_symbol_since_limit(sorted, symbol, since, limit)
|
|
6058
6101
|
|
|
6102
|
+
def handle_trigger_prices_and_params(self, symbol, params, omitParams=True):
|
|
6103
|
+
#
|
|
6104
|
+
triggerPrice = self.safe_string_2(params, 'triggerPrice', 'stopPrice')
|
|
6105
|
+
triggerPriceStr: Str = None
|
|
6106
|
+
stopLossPrice = self.safe_string(params, 'stopLossPrice')
|
|
6107
|
+
stopLossPriceStr: Str = None
|
|
6108
|
+
takeProfitPrice = self.safe_string(params, 'takeProfitPrice')
|
|
6109
|
+
takeProfitPriceStr: Str = None
|
|
6110
|
+
#
|
|
6111
|
+
if triggerPrice is not None:
|
|
6112
|
+
if omitParams:
|
|
6113
|
+
params = self.omit(params, ['triggerPrice', 'stopPrice'])
|
|
6114
|
+
triggerPriceStr = self.price_to_precision(symbol, float(triggerPrice))
|
|
6115
|
+
if stopLossPrice is not None:
|
|
6116
|
+
if omitParams:
|
|
6117
|
+
params = self.omit(params, 'stopLossPrice')
|
|
6118
|
+
stopLossPriceStr = self.price_to_precision(symbol, float(stopLossPrice))
|
|
6119
|
+
if takeProfitPrice is not None:
|
|
6120
|
+
if omitParams:
|
|
6121
|
+
params = self.omit(params, 'takeProfitPrice')
|
|
6122
|
+
takeProfitPriceStr = self.price_to_precision(symbol, float(takeProfitPrice))
|
|
6123
|
+
return [triggerPriceStr, stopLossPriceStr, takeProfitPriceStr, params]
|
|
6124
|
+
|
|
6059
6125
|
def handle_trigger_direction_and_params(self, params, exchangeSpecificKey: Str = None, allowEmpty: Bool = False):
|
|
6060
6126
|
"""
|
|
6061
6127
|
@ignore
|
|
@@ -6717,6 +6783,15 @@ class Exchange(object):
|
|
|
6717
6783
|
values = list(uniqueResult.values())
|
|
6718
6784
|
return values
|
|
6719
6785
|
|
|
6786
|
+
def remove_keys_from_dict(self, dict: dict, removeKeys: List[str]):
|
|
6787
|
+
keys = list(dict.keys())
|
|
6788
|
+
newDict = {}
|
|
6789
|
+
for i in range(0, len(keys)):
|
|
6790
|
+
key = keys[i]
|
|
6791
|
+
if not self.in_array(key, removeKeys):
|
|
6792
|
+
newDict[key] = dict[key]
|
|
6793
|
+
return newDict
|
|
6794
|
+
|
|
6720
6795
|
def handle_until_option(self, key: str, request, params, multiplier=1):
|
|
6721
6796
|
until = self.safe_integer_2(params, 'until', 'till')
|
|
6722
6797
|
if until is not None:
|
|
@@ -7044,7 +7119,7 @@ class Exchange(object):
|
|
|
7044
7119
|
clients = list(self.clients.values())
|
|
7045
7120
|
for i in range(0, len(clients)):
|
|
7046
7121
|
client = clients[i]
|
|
7047
|
-
futures =
|
|
7122
|
+
futures = client.futures
|
|
7048
7123
|
if (futures is not None) and ('fetchPositionsSnapshot' in futures):
|
|
7049
7124
|
del futures['fetchPositionsSnapshot']
|
|
7050
7125
|
elif topic == 'ticker' and (self.tickers is not None):
|
|
@@ -2860,6 +2860,14 @@ class gate(Exchange, ImplicitAPI):
|
|
|
2860
2860
|
|
|
2861
2861
|
def fetch_balance(self, params={}) -> Balances:
|
|
2862
2862
|
"""
|
|
2863
|
+
|
|
2864
|
+
https://www.gate.com/docs/developers/apiv4/en/#margin-account-list
|
|
2865
|
+
https://www.gate.com/docs/developers/apiv4/en/#get-unified-account-information
|
|
2866
|
+
https://www.gate.com/docs/developers/apiv4/en/#list-spot-trading-accounts
|
|
2867
|
+
https://www.gate.com/docs/developers/apiv4/en/#get-futures-account
|
|
2868
|
+
https://www.gate.com/docs/developers/apiv4/en/#get-futures-account-2
|
|
2869
|
+
https://www.gate.com/docs/developers/apiv4/en/#query-account-information
|
|
2870
|
+
|
|
2863
2871
|
:param dict [params]: exchange specific parameters
|
|
2864
2872
|
:param str [params.type]: spot, margin, swap or future, if not provided self.options['defaultType'] is used
|
|
2865
2873
|
:param str [params.settle]: 'btc' or 'usdt' - settle currency for perpetual swap and future - default="usdt" for swap and "btc" for future
|
|
@@ -3100,7 +3108,7 @@ class gate(Exchange, ImplicitAPI):
|
|
|
3100
3108
|
result: dict = {
|
|
3101
3109
|
'info': response,
|
|
3102
3110
|
}
|
|
3103
|
-
isolated = marginMode == 'margin'
|
|
3111
|
+
isolated = marginMode == 'margin' and type == 'spot'
|
|
3104
3112
|
data = response
|
|
3105
3113
|
if 'balances' in data: # True for cross_margin and unified
|
|
3106
3114
|
flatBalances = []
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/async_support/base/ws/order_book_side.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ecdsa/__init__.py
RENAMED
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ecdsa/_version.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ecdsa/ellipticcurve.py
RENAMED
|
File without changes
|
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ecdsa/numbertheory.py
RENAMED
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ecdsa/rfc6979.py
RENAMED
|
File without changes
|
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/__init__.py
RENAMED
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/abi/__init__.py
RENAMED
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/abi/abi.py
RENAMED
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/abi/base.py
RENAMED
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/abi/codec.py
RENAMED
|
File without changes
|
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/abi/decoding.py
RENAMED
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/abi/encoding.py
RENAMED
|
File without changes
|
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/abi/grammar.py
RENAMED
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/abi/packed.py
RENAMED
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/abi/py.typed
RENAMED
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/abi/registry.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/typing/abi.py
RENAMED
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/typing/bls.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/typing/enums.py
RENAMED
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/typing/ethpm.py
RENAMED
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/typing/evm.py
RENAMED
|
File without changes
|
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/typing/py.typed
RENAMED
|
File without changes
|
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/utils/abi.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/utils/debug.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/utils/py.typed
RENAMED
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/utils/toolz.py
RENAMED
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/utils/types.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/ethereum/utils/units.py
RENAMED
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/keccak/__init__.py
RENAMED
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/keccak/keccak.py
RENAMED
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/ast_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/exceptions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/grammars/lark.lark
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/indenter.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/load_grammar.py
RENAMED
|
File without changes
|
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/parser_frontends.py
RENAMED
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/parsers/__init__.py
RENAMED
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/parsers/cyk.py
RENAMED
|
File without changes
|
{gate_io_api-0.0.85 → gate_io_api-0.0.87}/src/gate/ccxt/static_dependencies/lark/parsers/earley.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|