gate-io-api 0.0.2__py3-none-any.whl
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/__init__.py +7 -0
- gate_io_api/ccxt/__init__.py +101 -0
- gate_io_api/ccxt/abstract/gate.py +284 -0
- gate_io_api/ccxt/async_support/__init__.py +80 -0
- gate_io_api/ccxt/async_support/base/__init__.py +1 -0
- gate_io_api/ccxt/async_support/base/exchange.py +2100 -0
- gate_io_api/ccxt/async_support/base/throttler.py +50 -0
- gate_io_api/ccxt/async_support/base/ws/__init__.py +38 -0
- gate_io_api/ccxt/async_support/base/ws/aiohttp_client.py +147 -0
- gate_io_api/ccxt/async_support/base/ws/cache.py +213 -0
- gate_io_api/ccxt/async_support/base/ws/client.py +214 -0
- gate_io_api/ccxt/async_support/base/ws/fast_client.py +97 -0
- gate_io_api/ccxt/async_support/base/ws/functions.py +59 -0
- gate_io_api/ccxt/async_support/base/ws/future.py +69 -0
- gate_io_api/ccxt/async_support/base/ws/order_book.py +78 -0
- gate_io_api/ccxt/async_support/base/ws/order_book_side.py +174 -0
- gate_io_api/ccxt/async_support/gate.py +7739 -0
- gate_io_api/ccxt/base/__init__.py +27 -0
- gate_io_api/ccxt/base/decimal_to_precision.py +174 -0
- gate_io_api/ccxt/base/errors.py +267 -0
- gate_io_api/ccxt/base/exchange.py +6770 -0
- gate_io_api/ccxt/base/precise.py +297 -0
- gate_io_api/ccxt/base/types.py +577 -0
- gate_io_api/ccxt/gate.py +7738 -0
- gate_io_api/ccxt/pro/__init__.py +21 -0
- gate_io_api/ccxt/pro/gate.py +1950 -0
- gate_io_api/ccxt/static_dependencies/README.md +1 -0
- gate_io_api/ccxt/static_dependencies/__init__.py +1 -0
- gate_io_api/ccxt/static_dependencies/ecdsa/__init__.py +14 -0
- gate_io_api/ccxt/static_dependencies/ecdsa/_version.py +520 -0
- gate_io_api/ccxt/static_dependencies/ecdsa/curves.py +56 -0
- gate_io_api/ccxt/static_dependencies/ecdsa/der.py +221 -0
- gate_io_api/ccxt/static_dependencies/ecdsa/ecdsa.py +310 -0
- gate_io_api/ccxt/static_dependencies/ecdsa/ellipticcurve.py +197 -0
- gate_io_api/ccxt/static_dependencies/ecdsa/keys.py +332 -0
- gate_io_api/ccxt/static_dependencies/ecdsa/numbertheory.py +531 -0
- gate_io_api/ccxt/static_dependencies/ecdsa/rfc6979.py +100 -0
- gate_io_api/ccxt/static_dependencies/ecdsa/util.py +266 -0
- gate_io_api/ccxt/static_dependencies/ethereum/__init__.py +7 -0
- gate_io_api/ccxt/static_dependencies/ethereum/abi/__init__.py +16 -0
- gate_io_api/ccxt/static_dependencies/ethereum/abi/abi.py +19 -0
- gate_io_api/ccxt/static_dependencies/ethereum/abi/base.py +152 -0
- gate_io_api/ccxt/static_dependencies/ethereum/abi/codec.py +217 -0
- gate_io_api/ccxt/static_dependencies/ethereum/abi/constants.py +3 -0
- gate_io_api/ccxt/static_dependencies/ethereum/abi/decoding.py +565 -0
- gate_io_api/ccxt/static_dependencies/ethereum/abi/encoding.py +720 -0
- gate_io_api/ccxt/static_dependencies/ethereum/abi/exceptions.py +139 -0
- gate_io_api/ccxt/static_dependencies/ethereum/abi/grammar.py +443 -0
- gate_io_api/ccxt/static_dependencies/ethereum/abi/packed.py +13 -0
- gate_io_api/ccxt/static_dependencies/ethereum/abi/py.typed +0 -0
- gate_io_api/ccxt/static_dependencies/ethereum/abi/registry.py +643 -0
- gate_io_api/ccxt/static_dependencies/ethereum/abi/tools/__init__.py +3 -0
- gate_io_api/ccxt/static_dependencies/ethereum/abi/tools/_strategies.py +230 -0
- gate_io_api/ccxt/static_dependencies/ethereum/abi/utils/__init__.py +0 -0
- gate_io_api/ccxt/static_dependencies/ethereum/abi/utils/numeric.py +83 -0
- gate_io_api/ccxt/static_dependencies/ethereum/abi/utils/padding.py +27 -0
- gate_io_api/ccxt/static_dependencies/ethereum/abi/utils/string.py +19 -0
- gate_io_api/ccxt/static_dependencies/ethereum/account/__init__.py +3 -0
- gate_io_api/ccxt/static_dependencies/ethereum/account/encode_typed_data/__init__.py +4 -0
- gate_io_api/ccxt/static_dependencies/ethereum/account/encode_typed_data/encoding_and_hashing.py +239 -0
- gate_io_api/ccxt/static_dependencies/ethereum/account/encode_typed_data/helpers.py +40 -0
- gate_io_api/ccxt/static_dependencies/ethereum/account/messages.py +263 -0
- gate_io_api/ccxt/static_dependencies/ethereum/account/py.typed +0 -0
- gate_io_api/ccxt/static_dependencies/ethereum/hexbytes/__init__.py +5 -0
- gate_io_api/ccxt/static_dependencies/ethereum/hexbytes/_utils.py +54 -0
- gate_io_api/ccxt/static_dependencies/ethereum/hexbytes/main.py +65 -0
- gate_io_api/ccxt/static_dependencies/ethereum/hexbytes/py.typed +0 -0
- gate_io_api/ccxt/static_dependencies/ethereum/typing/__init__.py +63 -0
- gate_io_api/ccxt/static_dependencies/ethereum/typing/abi.py +6 -0
- gate_io_api/ccxt/static_dependencies/ethereum/typing/bls.py +7 -0
- gate_io_api/ccxt/static_dependencies/ethereum/typing/discovery.py +5 -0
- gate_io_api/ccxt/static_dependencies/ethereum/typing/encoding.py +7 -0
- gate_io_api/ccxt/static_dependencies/ethereum/typing/enums.py +17 -0
- gate_io_api/ccxt/static_dependencies/ethereum/typing/ethpm.py +9 -0
- gate_io_api/ccxt/static_dependencies/ethereum/typing/evm.py +20 -0
- gate_io_api/ccxt/static_dependencies/ethereum/typing/networks.py +1122 -0
- gate_io_api/ccxt/static_dependencies/ethereum/typing/py.typed +0 -0
- gate_io_api/ccxt/static_dependencies/ethereum/utils/__init__.py +115 -0
- gate_io_api/ccxt/static_dependencies/ethereum/utils/abi.py +72 -0
- gate_io_api/ccxt/static_dependencies/ethereum/utils/address.py +171 -0
- gate_io_api/ccxt/static_dependencies/ethereum/utils/applicators.py +151 -0
- gate_io_api/ccxt/static_dependencies/ethereum/utils/conversions.py +190 -0
- gate_io_api/ccxt/static_dependencies/ethereum/utils/currency.py +107 -0
- gate_io_api/ccxt/static_dependencies/ethereum/utils/curried/__init__.py +269 -0
- gate_io_api/ccxt/static_dependencies/ethereum/utils/debug.py +20 -0
- gate_io_api/ccxt/static_dependencies/ethereum/utils/decorators.py +132 -0
- gate_io_api/ccxt/static_dependencies/ethereum/utils/encoding.py +6 -0
- gate_io_api/ccxt/static_dependencies/ethereum/utils/exceptions.py +4 -0
- gate_io_api/ccxt/static_dependencies/ethereum/utils/functional.py +75 -0
- gate_io_api/ccxt/static_dependencies/ethereum/utils/hexadecimal.py +74 -0
- gate_io_api/ccxt/static_dependencies/ethereum/utils/humanize.py +188 -0
- gate_io_api/ccxt/static_dependencies/ethereum/utils/logging.py +159 -0
- gate_io_api/ccxt/static_dependencies/ethereum/utils/module_loading.py +31 -0
- gate_io_api/ccxt/static_dependencies/ethereum/utils/numeric.py +43 -0
- gate_io_api/ccxt/static_dependencies/ethereum/utils/py.typed +0 -0
- gate_io_api/ccxt/static_dependencies/ethereum/utils/toolz.py +76 -0
- gate_io_api/ccxt/static_dependencies/ethereum/utils/types.py +54 -0
- gate_io_api/ccxt/static_dependencies/ethereum/utils/typing/__init__.py +18 -0
- gate_io_api/ccxt/static_dependencies/ethereum/utils/typing/misc.py +14 -0
- gate_io_api/ccxt/static_dependencies/ethereum/utils/units.py +31 -0
- gate_io_api/ccxt/static_dependencies/keccak/__init__.py +3 -0
- gate_io_api/ccxt/static_dependencies/keccak/keccak.py +197 -0
- gate_io_api/ccxt/static_dependencies/lark/__init__.py +38 -0
- gate_io_api/ccxt/static_dependencies/lark/__pyinstaller/__init__.py +6 -0
- gate_io_api/ccxt/static_dependencies/lark/__pyinstaller/hook-lark.py +14 -0
- gate_io_api/ccxt/static_dependencies/lark/ast_utils.py +59 -0
- gate_io_api/ccxt/static_dependencies/lark/common.py +86 -0
- gate_io_api/ccxt/static_dependencies/lark/exceptions.py +292 -0
- gate_io_api/ccxt/static_dependencies/lark/grammar.py +130 -0
- gate_io_api/ccxt/static_dependencies/lark/grammars/__init__.py +0 -0
- gate_io_api/ccxt/static_dependencies/lark/grammars/common.lark +59 -0
- gate_io_api/ccxt/static_dependencies/lark/grammars/lark.lark +62 -0
- gate_io_api/ccxt/static_dependencies/lark/grammars/python.lark +302 -0
- gate_io_api/ccxt/static_dependencies/lark/grammars/unicode.lark +7 -0
- gate_io_api/ccxt/static_dependencies/lark/indenter.py +143 -0
- gate_io_api/ccxt/static_dependencies/lark/lark.py +658 -0
- gate_io_api/ccxt/static_dependencies/lark/lexer.py +678 -0
- gate_io_api/ccxt/static_dependencies/lark/load_grammar.py +1428 -0
- gate_io_api/ccxt/static_dependencies/lark/parse_tree_builder.py +391 -0
- gate_io_api/ccxt/static_dependencies/lark/parser_frontends.py +257 -0
- gate_io_api/ccxt/static_dependencies/lark/parsers/__init__.py +0 -0
- gate_io_api/ccxt/static_dependencies/lark/parsers/cyk.py +340 -0
- gate_io_api/ccxt/static_dependencies/lark/parsers/earley.py +314 -0
- gate_io_api/ccxt/static_dependencies/lark/parsers/earley_common.py +42 -0
- gate_io_api/ccxt/static_dependencies/lark/parsers/earley_forest.py +801 -0
- gate_io_api/ccxt/static_dependencies/lark/parsers/grammar_analysis.py +203 -0
- gate_io_api/ccxt/static_dependencies/lark/parsers/lalr_analysis.py +332 -0
- gate_io_api/ccxt/static_dependencies/lark/parsers/lalr_interactive_parser.py +158 -0
- gate_io_api/ccxt/static_dependencies/lark/parsers/lalr_parser.py +122 -0
- gate_io_api/ccxt/static_dependencies/lark/parsers/lalr_parser_state.py +110 -0
- gate_io_api/ccxt/static_dependencies/lark/parsers/xearley.py +165 -0
- gate_io_api/ccxt/static_dependencies/lark/py.typed +0 -0
- gate_io_api/ccxt/static_dependencies/lark/reconstruct.py +107 -0
- gate_io_api/ccxt/static_dependencies/lark/tools/__init__.py +70 -0
- gate_io_api/ccxt/static_dependencies/lark/tools/nearley.py +202 -0
- gate_io_api/ccxt/static_dependencies/lark/tools/serialize.py +32 -0
- gate_io_api/ccxt/static_dependencies/lark/tools/standalone.py +196 -0
- gate_io_api/ccxt/static_dependencies/lark/tree.py +267 -0
- gate_io_api/ccxt/static_dependencies/lark/tree_matcher.py +186 -0
- gate_io_api/ccxt/static_dependencies/lark/tree_templates.py +180 -0
- gate_io_api/ccxt/static_dependencies/lark/utils.py +343 -0
- gate_io_api/ccxt/static_dependencies/lark/visitors.py +596 -0
- gate_io_api/ccxt/static_dependencies/marshmallow/__init__.py +81 -0
- gate_io_api/ccxt/static_dependencies/marshmallow/base.py +65 -0
- gate_io_api/ccxt/static_dependencies/marshmallow/class_registry.py +94 -0
- gate_io_api/ccxt/static_dependencies/marshmallow/decorators.py +231 -0
- gate_io_api/ccxt/static_dependencies/marshmallow/error_store.py +60 -0
- gate_io_api/ccxt/static_dependencies/marshmallow/exceptions.py +71 -0
- gate_io_api/ccxt/static_dependencies/marshmallow/fields.py +2114 -0
- gate_io_api/ccxt/static_dependencies/marshmallow/orderedset.py +89 -0
- gate_io_api/ccxt/static_dependencies/marshmallow/py.typed +0 -0
- gate_io_api/ccxt/static_dependencies/marshmallow/schema.py +1228 -0
- gate_io_api/ccxt/static_dependencies/marshmallow/types.py +12 -0
- gate_io_api/ccxt/static_dependencies/marshmallow/utils.py +378 -0
- gate_io_api/ccxt/static_dependencies/marshmallow/validate.py +678 -0
- gate_io_api/ccxt/static_dependencies/marshmallow/warnings.py +2 -0
- gate_io_api/ccxt/static_dependencies/marshmallow_dataclass/__init__.py +1047 -0
- gate_io_api/ccxt/static_dependencies/marshmallow_dataclass/collection_field.py +51 -0
- gate_io_api/ccxt/static_dependencies/marshmallow_dataclass/lazy_class_attribute.py +45 -0
- gate_io_api/ccxt/static_dependencies/marshmallow_dataclass/mypy.py +71 -0
- gate_io_api/ccxt/static_dependencies/marshmallow_dataclass/py.typed +0 -0
- gate_io_api/ccxt/static_dependencies/marshmallow_dataclass/typing.py +14 -0
- gate_io_api/ccxt/static_dependencies/marshmallow_dataclass/union_field.py +82 -0
- gate_io_api/ccxt/static_dependencies/marshmallow_oneofschema/__init__.py +1 -0
- gate_io_api/ccxt/static_dependencies/marshmallow_oneofschema/one_of_schema.py +193 -0
- gate_io_api/ccxt/static_dependencies/marshmallow_oneofschema/py.typed +0 -0
- gate_io_api/ccxt/static_dependencies/msgpack/__init__.py +55 -0
- gate_io_api/ccxt/static_dependencies/msgpack/_cmsgpack.pyx +11 -0
- gate_io_api/ccxt/static_dependencies/msgpack/_packer.pyx +374 -0
- gate_io_api/ccxt/static_dependencies/msgpack/_unpacker.pyx +547 -0
- gate_io_api/ccxt/static_dependencies/msgpack/buff_converter.h +8 -0
- gate_io_api/ccxt/static_dependencies/msgpack/exceptions.py +48 -0
- gate_io_api/ccxt/static_dependencies/msgpack/ext.py +168 -0
- gate_io_api/ccxt/static_dependencies/msgpack/fallback.py +951 -0
- gate_io_api/ccxt/static_dependencies/msgpack/pack.h +89 -0
- gate_io_api/ccxt/static_dependencies/msgpack/pack_template.h +820 -0
- gate_io_api/ccxt/static_dependencies/msgpack/sysdep.h +194 -0
- gate_io_api/ccxt/static_dependencies/msgpack/unpack.h +391 -0
- gate_io_api/ccxt/static_dependencies/msgpack/unpack_define.h +95 -0
- gate_io_api/ccxt/static_dependencies/msgpack/unpack_template.h +464 -0
- gate_io_api/ccxt/static_dependencies/parsimonious/__init__.py +10 -0
- gate_io_api/ccxt/static_dependencies/parsimonious/exceptions.py +105 -0
- gate_io_api/ccxt/static_dependencies/parsimonious/expressions.py +479 -0
- gate_io_api/ccxt/static_dependencies/parsimonious/grammar.py +487 -0
- gate_io_api/ccxt/static_dependencies/parsimonious/nodes.py +325 -0
- gate_io_api/ccxt/static_dependencies/parsimonious/utils.py +40 -0
- gate_io_api/ccxt/static_dependencies/starknet/__init__.py +0 -0
- gate_io_api/ccxt/static_dependencies/starknet/abi/v0/__init__.py +2 -0
- gate_io_api/ccxt/static_dependencies/starknet/abi/v0/model.py +44 -0
- gate_io_api/ccxt/static_dependencies/starknet/abi/v0/parser.py +216 -0
- gate_io_api/ccxt/static_dependencies/starknet/abi/v0/schemas.py +72 -0
- gate_io_api/ccxt/static_dependencies/starknet/abi/v0/shape.py +63 -0
- gate_io_api/ccxt/static_dependencies/starknet/abi/v1/__init__.py +2 -0
- gate_io_api/ccxt/static_dependencies/starknet/abi/v1/core_structures.json +14 -0
- gate_io_api/ccxt/static_dependencies/starknet/abi/v1/model.py +39 -0
- gate_io_api/ccxt/static_dependencies/starknet/abi/v1/parser.py +220 -0
- gate_io_api/ccxt/static_dependencies/starknet/abi/v1/parser_transformer.py +179 -0
- gate_io_api/ccxt/static_dependencies/starknet/abi/v1/schemas.py +66 -0
- gate_io_api/ccxt/static_dependencies/starknet/abi/v1/shape.py +47 -0
- gate_io_api/ccxt/static_dependencies/starknet/abi/v2/__init__.py +2 -0
- gate_io_api/ccxt/static_dependencies/starknet/abi/v2/model.py +89 -0
- gate_io_api/ccxt/static_dependencies/starknet/abi/v2/parser.py +293 -0
- gate_io_api/ccxt/static_dependencies/starknet/abi/v2/parser_transformer.py +192 -0
- gate_io_api/ccxt/static_dependencies/starknet/abi/v2/schemas.py +132 -0
- gate_io_api/ccxt/static_dependencies/starknet/abi/v2/shape.py +107 -0
- gate_io_api/ccxt/static_dependencies/starknet/cairo/__init__.py +0 -0
- gate_io_api/ccxt/static_dependencies/starknet/cairo/data_types.py +123 -0
- gate_io_api/ccxt/static_dependencies/starknet/cairo/deprecated_parse/__init__.py +0 -0
- gate_io_api/ccxt/static_dependencies/starknet/cairo/deprecated_parse/cairo_types.py +77 -0
- gate_io_api/ccxt/static_dependencies/starknet/cairo/deprecated_parse/parser.py +46 -0
- gate_io_api/ccxt/static_dependencies/starknet/cairo/deprecated_parse/parser_transformer.py +138 -0
- gate_io_api/ccxt/static_dependencies/starknet/cairo/felt.py +64 -0
- gate_io_api/ccxt/static_dependencies/starknet/cairo/type_parser.py +121 -0
- gate_io_api/ccxt/static_dependencies/starknet/cairo/v1/__init__.py +0 -0
- gate_io_api/ccxt/static_dependencies/starknet/cairo/v1/type_parser.py +59 -0
- gate_io_api/ccxt/static_dependencies/starknet/cairo/v2/__init__.py +0 -0
- gate_io_api/ccxt/static_dependencies/starknet/cairo/v2/type_parser.py +77 -0
- gate_io_api/ccxt/static_dependencies/starknet/ccxt_utils.py +7 -0
- gate_io_api/ccxt/static_dependencies/starknet/common.py +15 -0
- gate_io_api/ccxt/static_dependencies/starknet/constants.py +39 -0
- gate_io_api/ccxt/static_dependencies/starknet/hash/__init__.py +0 -0
- gate_io_api/ccxt/static_dependencies/starknet/hash/address.py +79 -0
- gate_io_api/ccxt/static_dependencies/starknet/hash/compiled_class_hash_objects.py +111 -0
- gate_io_api/ccxt/static_dependencies/starknet/hash/selector.py +16 -0
- gate_io_api/ccxt/static_dependencies/starknet/hash/storage.py +12 -0
- gate_io_api/ccxt/static_dependencies/starknet/hash/utils.py +78 -0
- gate_io_api/ccxt/static_dependencies/starknet/models/__init__.py +0 -0
- gate_io_api/ccxt/static_dependencies/starknet/models/typed_data.py +45 -0
- gate_io_api/ccxt/static_dependencies/starknet/serialization/__init__.py +24 -0
- gate_io_api/ccxt/static_dependencies/starknet/serialization/_calldata_reader.py +40 -0
- gate_io_api/ccxt/static_dependencies/starknet/serialization/_context.py +142 -0
- gate_io_api/ccxt/static_dependencies/starknet/serialization/data_serializers/__init__.py +10 -0
- gate_io_api/ccxt/static_dependencies/starknet/serialization/data_serializers/_common.py +82 -0
- gate_io_api/ccxt/static_dependencies/starknet/serialization/data_serializers/array_serializer.py +43 -0
- gate_io_api/ccxt/static_dependencies/starknet/serialization/data_serializers/bool_serializer.py +37 -0
- gate_io_api/ccxt/static_dependencies/starknet/serialization/data_serializers/byte_array_serializer.py +66 -0
- gate_io_api/ccxt/static_dependencies/starknet/serialization/data_serializers/cairo_data_serializer.py +71 -0
- gate_io_api/ccxt/static_dependencies/starknet/serialization/data_serializers/enum_serializer.py +71 -0
- gate_io_api/ccxt/static_dependencies/starknet/serialization/data_serializers/felt_serializer.py +50 -0
- gate_io_api/ccxt/static_dependencies/starknet/serialization/data_serializers/named_tuple_serializer.py +58 -0
- gate_io_api/ccxt/static_dependencies/starknet/serialization/data_serializers/option_serializer.py +43 -0
- gate_io_api/ccxt/static_dependencies/starknet/serialization/data_serializers/output_serializer.py +40 -0
- gate_io_api/ccxt/static_dependencies/starknet/serialization/data_serializers/payload_serializer.py +72 -0
- gate_io_api/ccxt/static_dependencies/starknet/serialization/data_serializers/struct_serializer.py +36 -0
- gate_io_api/ccxt/static_dependencies/starknet/serialization/data_serializers/tuple_serializer.py +36 -0
- gate_io_api/ccxt/static_dependencies/starknet/serialization/data_serializers/uint256_serializer.py +76 -0
- gate_io_api/ccxt/static_dependencies/starknet/serialization/data_serializers/uint_serializer.py +100 -0
- gate_io_api/ccxt/static_dependencies/starknet/serialization/data_serializers/unit_serializer.py +32 -0
- gate_io_api/ccxt/static_dependencies/starknet/serialization/errors.py +10 -0
- gate_io_api/ccxt/static_dependencies/starknet/serialization/factory.py +229 -0
- gate_io_api/ccxt/static_dependencies/starknet/serialization/function_serialization_adapter.py +110 -0
- gate_io_api/ccxt/static_dependencies/starknet/serialization/tuple_dataclass.py +59 -0
- gate_io_api/ccxt/static_dependencies/starknet/utils/__init__.py +0 -0
- gate_io_api/ccxt/static_dependencies/starknet/utils/constructor_args_translator.py +86 -0
- gate_io_api/ccxt/static_dependencies/starknet/utils/iterable.py +13 -0
- gate_io_api/ccxt/static_dependencies/starknet/utils/schema.py +13 -0
- gate_io_api/ccxt/static_dependencies/starknet/utils/typed_data.py +182 -0
- gate_io_api/ccxt/static_dependencies/starkware/__init__.py +0 -0
- gate_io_api/ccxt/static_dependencies/starkware/crypto/__init__.py +0 -0
- gate_io_api/ccxt/static_dependencies/starkware/crypto/fast_pedersen_hash.py +50 -0
- gate_io_api/ccxt/static_dependencies/starkware/crypto/math_utils.py +78 -0
- gate_io_api/ccxt/static_dependencies/starkware/crypto/signature.py +2344 -0
- gate_io_api/ccxt/static_dependencies/starkware/crypto/utils.py +63 -0
- gate_io_api/ccxt/static_dependencies/sympy/__init__.py +0 -0
- gate_io_api/ccxt/static_dependencies/sympy/core/__init__.py +0 -0
- gate_io_api/ccxt/static_dependencies/sympy/core/intfunc.py +35 -0
- gate_io_api/ccxt/static_dependencies/sympy/external/__init__.py +0 -0
- gate_io_api/ccxt/static_dependencies/sympy/external/gmpy.py +345 -0
- gate_io_api/ccxt/static_dependencies/sympy/external/importtools.py +187 -0
- gate_io_api/ccxt/static_dependencies/sympy/external/ntheory.py +637 -0
- gate_io_api/ccxt/static_dependencies/sympy/external/pythonmpq.py +341 -0
- gate_io_api/ccxt/static_dependencies/toolz/__init__.py +26 -0
- gate_io_api/ccxt/static_dependencies/toolz/_signatures.py +784 -0
- gate_io_api/ccxt/static_dependencies/toolz/_version.py +520 -0
- gate_io_api/ccxt/static_dependencies/toolz/compatibility.py +30 -0
- gate_io_api/ccxt/static_dependencies/toolz/curried/__init__.py +101 -0
- gate_io_api/ccxt/static_dependencies/toolz/curried/exceptions.py +22 -0
- gate_io_api/ccxt/static_dependencies/toolz/curried/operator.py +22 -0
- gate_io_api/ccxt/static_dependencies/toolz/dicttoolz.py +339 -0
- gate_io_api/ccxt/static_dependencies/toolz/functoolz.py +1049 -0
- gate_io_api/ccxt/static_dependencies/toolz/itertoolz.py +1057 -0
- gate_io_api/ccxt/static_dependencies/toolz/recipes.py +46 -0
- gate_io_api/ccxt/static_dependencies/toolz/utils.py +9 -0
- gate_io_api/ccxt/static_dependencies/typing_inspect/__init__.py +0 -0
- gate_io_api/ccxt/static_dependencies/typing_inspect/typing_inspect.py +851 -0
- gate_io_api-0.0.2.dist-info/METADATA +62 -0
- gate_io_api-0.0.2.dist-info/RECORD +288 -0
- gate_io_api-0.0.2.dist-info/WHEEL +4 -0
gate_io_api/__init__.py
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
import gate.ccxt as ccxt_module
|
|
3
|
+
sys.modules['ccxt'] = ccxt_module
|
|
4
|
+
|
|
5
|
+
# -*- coding: utf-8 -*-
|
|
6
|
+
|
|
7
|
+
"""CCXT: CryptoCurrency eXchange Trading Library"""
|
|
8
|
+
|
|
9
|
+
# MIT License
|
|
10
|
+
# Copyright (c) 2017 Igor Kroitor
|
|
11
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
13
|
+
# in the Software without restriction, including without limitation the rights
|
|
14
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
15
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
16
|
+
# furnished to do so, subject to the following conditions:
|
|
17
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
# copies or substantial portions of the Software.
|
|
19
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
|
+
# SOFTWARE.
|
|
26
|
+
|
|
27
|
+
# ----------------------------------------------------------------------------
|
|
28
|
+
|
|
29
|
+
__version__ = '4.4.69'
|
|
30
|
+
|
|
31
|
+
# ----------------------------------------------------------------------------
|
|
32
|
+
|
|
33
|
+
from ccxt.base.exchange import Exchange # noqa: F401
|
|
34
|
+
from ccxt.base.precise import Precise # noqa: F401
|
|
35
|
+
|
|
36
|
+
from ccxt.base.decimal_to_precision import decimal_to_precision # noqa: F401
|
|
37
|
+
from ccxt.base.decimal_to_precision import TRUNCATE # noqa: F401
|
|
38
|
+
from ccxt.base.decimal_to_precision import ROUND # noqa: F401
|
|
39
|
+
from ccxt.base.decimal_to_precision import ROUND_UP # noqa: F401
|
|
40
|
+
from ccxt.base.decimal_to_precision import ROUND_DOWN # noqa: F401
|
|
41
|
+
from ccxt.base.decimal_to_precision import DECIMAL_PLACES # noqa: F401
|
|
42
|
+
from ccxt.base.decimal_to_precision import SIGNIFICANT_DIGITS # noqa: F401
|
|
43
|
+
from ccxt.base.decimal_to_precision import TICK_SIZE # noqa: F401
|
|
44
|
+
from ccxt.base.decimal_to_precision import NO_PADDING # noqa: F401
|
|
45
|
+
from ccxt.base.decimal_to_precision import PAD_WITH_ZERO # noqa: F401
|
|
46
|
+
|
|
47
|
+
from ccxt.base import errors
|
|
48
|
+
from ccxt.base.errors import BaseError # noqa: F401
|
|
49
|
+
from ccxt.base.errors import ExchangeError # noqa: F401
|
|
50
|
+
from ccxt.base.errors import AuthenticationError # noqa: F401
|
|
51
|
+
from ccxt.base.errors import PermissionDenied # noqa: F401
|
|
52
|
+
from ccxt.base.errors import AccountNotEnabled # noqa: F401
|
|
53
|
+
from ccxt.base.errors import AccountSuspended # noqa: F401
|
|
54
|
+
from ccxt.base.errors import ArgumentsRequired # noqa: F401
|
|
55
|
+
from ccxt.base.errors import BadRequest # noqa: F401
|
|
56
|
+
from ccxt.base.errors import BadSymbol # noqa: F401
|
|
57
|
+
from ccxt.base.errors import OperationRejected # noqa: F401
|
|
58
|
+
from ccxt.base.errors import NoChange # noqa: F401
|
|
59
|
+
from ccxt.base.errors import MarginModeAlreadySet # noqa: F401
|
|
60
|
+
from ccxt.base.errors import MarketClosed # noqa: F401
|
|
61
|
+
from ccxt.base.errors import ManualInteractionNeeded # noqa: F401
|
|
62
|
+
from ccxt.base.errors import InsufficientFunds # noqa: F401
|
|
63
|
+
from ccxt.base.errors import InvalidAddress # noqa: F401
|
|
64
|
+
from ccxt.base.errors import AddressPending # noqa: F401
|
|
65
|
+
from ccxt.base.errors import InvalidOrder # noqa: F401
|
|
66
|
+
from ccxt.base.errors import OrderNotFound # noqa: F401
|
|
67
|
+
from ccxt.base.errors import OrderNotCached # noqa: F401
|
|
68
|
+
from ccxt.base.errors import OrderImmediatelyFillable # noqa: F401
|
|
69
|
+
from ccxt.base.errors import OrderNotFillable # noqa: F401
|
|
70
|
+
from ccxt.base.errors import DuplicateOrderId # noqa: F401
|
|
71
|
+
from ccxt.base.errors import ContractUnavailable # noqa: F401
|
|
72
|
+
from ccxt.base.errors import NotSupported # noqa: F401
|
|
73
|
+
from ccxt.base.errors import InvalidProxySettings # noqa: F401
|
|
74
|
+
from ccxt.base.errors import ExchangeClosedByUser # noqa: F401
|
|
75
|
+
from ccxt.base.errors import OperationFailed # noqa: F401
|
|
76
|
+
from ccxt.base.errors import NetworkError # noqa: F401
|
|
77
|
+
from ccxt.base.errors import DDoSProtection # noqa: F401
|
|
78
|
+
from ccxt.base.errors import RateLimitExceeded # noqa: F401
|
|
79
|
+
from ccxt.base.errors import ExchangeNotAvailable # noqa: F401
|
|
80
|
+
from ccxt.base.errors import OnMaintenance # noqa: F401
|
|
81
|
+
from ccxt.base.errors import InvalidNonce # noqa: F401
|
|
82
|
+
from ccxt.base.errors import ChecksumError # noqa: F401
|
|
83
|
+
from ccxt.base.errors import RequestTimeout # noqa: F401
|
|
84
|
+
from ccxt.base.errors import BadResponse # noqa: F401
|
|
85
|
+
from ccxt.base.errors import NullResponse # noqa: F401
|
|
86
|
+
from ccxt.base.errors import CancelPending # noqa: F401
|
|
87
|
+
from ccxt.base.errors import UnsubscribeError # noqa: F401
|
|
88
|
+
from ccxt.base.errors import error_hierarchy # noqa: F401
|
|
89
|
+
|
|
90
|
+
from ccxt.gate import gate # noqa: F401
|
|
91
|
+
|
|
92
|
+
exchanges = [ 'gate',]
|
|
93
|
+
|
|
94
|
+
base = [
|
|
95
|
+
'Exchange',
|
|
96
|
+
'Precise',
|
|
97
|
+
'exchanges',
|
|
98
|
+
'decimal_to_precision',
|
|
99
|
+
]
|
|
100
|
+
|
|
101
|
+
__all__ = base + errors.__all__ + exchanges
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
from ccxt.base.types import Entry
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class ImplicitAPI:
|
|
5
|
+
public_wallet_get_currency_chains = publicWalletGetCurrencyChains = Entry('currency_chains', ['public', 'wallet'], 'GET', {'cost': 1})
|
|
6
|
+
public_spot_get_currencies = publicSpotGetCurrencies = Entry('currencies', ['public', 'spot'], 'GET', {'cost': 1})
|
|
7
|
+
public_spot_get_currencies_currency = publicSpotGetCurrenciesCurrency = Entry('currencies/{currency}', ['public', 'spot'], 'GET', {'cost': 1})
|
|
8
|
+
public_spot_get_currency_pairs = publicSpotGetCurrencyPairs = Entry('currency_pairs', ['public', 'spot'], 'GET', {'cost': 1})
|
|
9
|
+
public_spot_get_currency_pairs_currency_pair = publicSpotGetCurrencyPairsCurrencyPair = Entry('currency_pairs/{currency_pair}', ['public', 'spot'], 'GET', {'cost': 1})
|
|
10
|
+
public_spot_get_tickers = publicSpotGetTickers = Entry('tickers', ['public', 'spot'], 'GET', {'cost': 1})
|
|
11
|
+
public_spot_get_order_book = publicSpotGetOrderBook = Entry('order_book', ['public', 'spot'], 'GET', {'cost': 1})
|
|
12
|
+
public_spot_get_trades = publicSpotGetTrades = Entry('trades', ['public', 'spot'], 'GET', {'cost': 1})
|
|
13
|
+
public_spot_get_candlesticks = publicSpotGetCandlesticks = Entry('candlesticks', ['public', 'spot'], 'GET', {'cost': 1})
|
|
14
|
+
public_spot_get_time = publicSpotGetTime = Entry('time', ['public', 'spot'], 'GET', {'cost': 1})
|
|
15
|
+
public_margin_get_currency_pairs = publicMarginGetCurrencyPairs = Entry('currency_pairs', ['public', 'margin'], 'GET', {'cost': 1})
|
|
16
|
+
public_margin_get_currency_pairs_currency_pair = publicMarginGetCurrencyPairsCurrencyPair = Entry('currency_pairs/{currency_pair}', ['public', 'margin'], 'GET', {'cost': 1})
|
|
17
|
+
public_margin_get_funding_book = publicMarginGetFundingBook = Entry('funding_book', ['public', 'margin'], 'GET', {'cost': 1})
|
|
18
|
+
public_margin_get_cross_currencies = publicMarginGetCrossCurrencies = Entry('cross/currencies', ['public', 'margin'], 'GET', {'cost': 1})
|
|
19
|
+
public_margin_get_cross_currencies_currency = publicMarginGetCrossCurrenciesCurrency = Entry('cross/currencies/{currency}', ['public', 'margin'], 'GET', {'cost': 1})
|
|
20
|
+
public_margin_get_uni_currency_pairs = publicMarginGetUniCurrencyPairs = Entry('uni/currency_pairs', ['public', 'margin'], 'GET', {'cost': 1})
|
|
21
|
+
public_margin_get_uni_currency_pairs_currency_pair = publicMarginGetUniCurrencyPairsCurrencyPair = Entry('uni/currency_pairs/{currency_pair}', ['public', 'margin'], 'GET', {'cost': 1})
|
|
22
|
+
public_flash_swap_get_currencies = publicFlash_swapGetCurrencies = Entry('currencies', ['public', 'flash_swap'], 'GET', {'cost': 1})
|
|
23
|
+
public_futures_get_settle_contracts = publicFuturesGetSettleContracts = Entry('{settle}/contracts', ['public', 'futures'], 'GET', {'cost': 1})
|
|
24
|
+
public_futures_get_settle_contracts_contract = publicFuturesGetSettleContractsContract = Entry('{settle}/contracts/{contract}', ['public', 'futures'], 'GET', {'cost': 1})
|
|
25
|
+
public_futures_get_settle_order_book = publicFuturesGetSettleOrderBook = Entry('{settle}/order_book', ['public', 'futures'], 'GET', {'cost': 1})
|
|
26
|
+
public_futures_get_settle_trades = publicFuturesGetSettleTrades = Entry('{settle}/trades', ['public', 'futures'], 'GET', {'cost': 1})
|
|
27
|
+
public_futures_get_settle_candlesticks = publicFuturesGetSettleCandlesticks = Entry('{settle}/candlesticks', ['public', 'futures'], 'GET', {'cost': 1})
|
|
28
|
+
public_futures_get_settle_premium_index = publicFuturesGetSettlePremiumIndex = Entry('{settle}/premium_index', ['public', 'futures'], 'GET', {'cost': 1})
|
|
29
|
+
public_futures_get_settle_tickers = publicFuturesGetSettleTickers = Entry('{settle}/tickers', ['public', 'futures'], 'GET', {'cost': 1})
|
|
30
|
+
public_futures_get_settle_funding_rate = publicFuturesGetSettleFundingRate = Entry('{settle}/funding_rate', ['public', 'futures'], 'GET', {'cost': 1})
|
|
31
|
+
public_futures_get_settle_insurance = publicFuturesGetSettleInsurance = Entry('{settle}/insurance', ['public', 'futures'], 'GET', {'cost': 1})
|
|
32
|
+
public_futures_get_settle_contract_stats = publicFuturesGetSettleContractStats = Entry('{settle}/contract_stats', ['public', 'futures'], 'GET', {'cost': 1})
|
|
33
|
+
public_futures_get_settle_index_constituents_index = publicFuturesGetSettleIndexConstituentsIndex = Entry('{settle}/index_constituents/{index}', ['public', 'futures'], 'GET', {'cost': 1})
|
|
34
|
+
public_futures_get_settle_liq_orders = publicFuturesGetSettleLiqOrders = Entry('{settle}/liq_orders', ['public', 'futures'], 'GET', {'cost': 1})
|
|
35
|
+
public_futures_get_settle_risk_limit_tiers = publicFuturesGetSettleRiskLimitTiers = Entry('{settle}/risk_limit_tiers', ['public', 'futures'], 'GET', {'cost': 1})
|
|
36
|
+
public_delivery_get_settle_contracts = publicDeliveryGetSettleContracts = Entry('{settle}/contracts', ['public', 'delivery'], 'GET', {'cost': 1})
|
|
37
|
+
public_delivery_get_settle_contracts_contract = publicDeliveryGetSettleContractsContract = Entry('{settle}/contracts/{contract}', ['public', 'delivery'], 'GET', {'cost': 1})
|
|
38
|
+
public_delivery_get_settle_order_book = publicDeliveryGetSettleOrderBook = Entry('{settle}/order_book', ['public', 'delivery'], 'GET', {'cost': 1})
|
|
39
|
+
public_delivery_get_settle_trades = publicDeliveryGetSettleTrades = Entry('{settle}/trades', ['public', 'delivery'], 'GET', {'cost': 1})
|
|
40
|
+
public_delivery_get_settle_candlesticks = publicDeliveryGetSettleCandlesticks = Entry('{settle}/candlesticks', ['public', 'delivery'], 'GET', {'cost': 1})
|
|
41
|
+
public_delivery_get_settle_tickers = publicDeliveryGetSettleTickers = Entry('{settle}/tickers', ['public', 'delivery'], 'GET', {'cost': 1})
|
|
42
|
+
public_delivery_get_settle_insurance = publicDeliveryGetSettleInsurance = Entry('{settle}/insurance', ['public', 'delivery'], 'GET', {'cost': 1})
|
|
43
|
+
public_options_get_underlyings = publicOptionsGetUnderlyings = Entry('underlyings', ['public', 'options'], 'GET', {'cost': 1})
|
|
44
|
+
public_options_get_expirations = publicOptionsGetExpirations = Entry('expirations', ['public', 'options'], 'GET', {'cost': 1})
|
|
45
|
+
public_options_get_contracts = publicOptionsGetContracts = Entry('contracts', ['public', 'options'], 'GET', {'cost': 1})
|
|
46
|
+
public_options_get_contracts_contract = publicOptionsGetContractsContract = Entry('contracts/{contract}', ['public', 'options'], 'GET', {'cost': 1})
|
|
47
|
+
public_options_get_settlements = publicOptionsGetSettlements = Entry('settlements', ['public', 'options'], 'GET', {'cost': 1})
|
|
48
|
+
public_options_get_settlements_contract = publicOptionsGetSettlementsContract = Entry('settlements/{contract}', ['public', 'options'], 'GET', {'cost': 1})
|
|
49
|
+
public_options_get_order_book = publicOptionsGetOrderBook = Entry('order_book', ['public', 'options'], 'GET', {'cost': 1})
|
|
50
|
+
public_options_get_tickers = publicOptionsGetTickers = Entry('tickers', ['public', 'options'], 'GET', {'cost': 1})
|
|
51
|
+
public_options_get_underlying_tickers_underlying = publicOptionsGetUnderlyingTickersUnderlying = Entry('underlying/tickers/{underlying}', ['public', 'options'], 'GET', {'cost': 1})
|
|
52
|
+
public_options_get_candlesticks = publicOptionsGetCandlesticks = Entry('candlesticks', ['public', 'options'], 'GET', {'cost': 1})
|
|
53
|
+
public_options_get_underlying_candlesticks = publicOptionsGetUnderlyingCandlesticks = Entry('underlying/candlesticks', ['public', 'options'], 'GET', {'cost': 1})
|
|
54
|
+
public_options_get_trades = publicOptionsGetTrades = Entry('trades', ['public', 'options'], 'GET', {'cost': 1})
|
|
55
|
+
public_earn_get_uni_currencies = publicEarnGetUniCurrencies = Entry('uni/currencies', ['public', 'earn'], 'GET', {'cost': 1})
|
|
56
|
+
public_earn_get_uni_currencies_currency = publicEarnGetUniCurrenciesCurrency = Entry('uni/currencies/{currency}', ['public', 'earn'], 'GET', {'cost': 1})
|
|
57
|
+
private_withdrawals_post_withdrawals = privateWithdrawalsPostWithdrawals = Entry('withdrawals', ['private', 'withdrawals'], 'POST', {'cost': 20})
|
|
58
|
+
private_withdrawals_post_push = privateWithdrawalsPostPush = Entry('push', ['private', 'withdrawals'], 'POST', {'cost': 1})
|
|
59
|
+
private_withdrawals_delete_withdrawals_withdrawal_id = privateWithdrawalsDeleteWithdrawalsWithdrawalId = Entry('withdrawals/{withdrawal_id}', ['private', 'withdrawals'], 'DELETE', {'cost': 1})
|
|
60
|
+
private_wallet_get_deposit_address = privateWalletGetDepositAddress = Entry('deposit_address', ['private', 'wallet'], 'GET', {'cost': 1})
|
|
61
|
+
private_wallet_get_withdrawals = privateWalletGetWithdrawals = Entry('withdrawals', ['private', 'wallet'], 'GET', {'cost': 1})
|
|
62
|
+
private_wallet_get_deposits = privateWalletGetDeposits = Entry('deposits', ['private', 'wallet'], 'GET', {'cost': 1})
|
|
63
|
+
private_wallet_get_sub_account_transfers = privateWalletGetSubAccountTransfers = Entry('sub_account_transfers', ['private', 'wallet'], 'GET', {'cost': 1})
|
|
64
|
+
private_wallet_get_order_status = privateWalletGetOrderStatus = Entry('order_status', ['private', 'wallet'], 'GET', {'cost': 1})
|
|
65
|
+
private_wallet_get_withdraw_status = privateWalletGetWithdrawStatus = Entry('withdraw_status', ['private', 'wallet'], 'GET', {'cost': 1})
|
|
66
|
+
private_wallet_get_sub_account_balances = privateWalletGetSubAccountBalances = Entry('sub_account_balances', ['private', 'wallet'], 'GET', {'cost': 2.5})
|
|
67
|
+
private_wallet_get_sub_account_margin_balances = privateWalletGetSubAccountMarginBalances = Entry('sub_account_margin_balances', ['private', 'wallet'], 'GET', {'cost': 2.5})
|
|
68
|
+
private_wallet_get_sub_account_futures_balances = privateWalletGetSubAccountFuturesBalances = Entry('sub_account_futures_balances', ['private', 'wallet'], 'GET', {'cost': 2.5})
|
|
69
|
+
private_wallet_get_sub_account_cross_margin_balances = privateWalletGetSubAccountCrossMarginBalances = Entry('sub_account_cross_margin_balances', ['private', 'wallet'], 'GET', {'cost': 2.5})
|
|
70
|
+
private_wallet_get_saved_address = privateWalletGetSavedAddress = Entry('saved_address', ['private', 'wallet'], 'GET', {'cost': 1})
|
|
71
|
+
private_wallet_get_fee = privateWalletGetFee = Entry('fee', ['private', 'wallet'], 'GET', {'cost': 1})
|
|
72
|
+
private_wallet_get_total_balance = privateWalletGetTotalBalance = Entry('total_balance', ['private', 'wallet'], 'GET', {'cost': 2.5})
|
|
73
|
+
private_wallet_get_small_balance = privateWalletGetSmallBalance = Entry('small_balance', ['private', 'wallet'], 'GET', {'cost': 1})
|
|
74
|
+
private_wallet_get_small_balance_history = privateWalletGetSmallBalanceHistory = Entry('small_balance_history', ['private', 'wallet'], 'GET', {'cost': 1})
|
|
75
|
+
private_wallet_get_push = privateWalletGetPush = Entry('push', ['private', 'wallet'], 'GET', {'cost': 1})
|
|
76
|
+
private_wallet_post_transfers = privateWalletPostTransfers = Entry('transfers', ['private', 'wallet'], 'POST', {'cost': 2.5})
|
|
77
|
+
private_wallet_post_sub_account_transfers = privateWalletPostSubAccountTransfers = Entry('sub_account_transfers', ['private', 'wallet'], 'POST', {'cost': 2.5})
|
|
78
|
+
private_wallet_post_sub_account_to_sub_account = privateWalletPostSubAccountToSubAccount = Entry('sub_account_to_sub_account', ['private', 'wallet'], 'POST', {'cost': 2.5})
|
|
79
|
+
private_wallet_post_small_balance = privateWalletPostSmallBalance = Entry('small_balance', ['private', 'wallet'], 'POST', {'cost': 1})
|
|
80
|
+
private_subaccounts_get_sub_accounts = privateSubAccountsGetSubAccounts = Entry('sub_accounts', ['private', 'subAccounts'], 'GET', {'cost': 2.5})
|
|
81
|
+
private_subaccounts_get_sub_accounts_user_id = privateSubAccountsGetSubAccountsUserId = Entry('sub_accounts/{user_id}', ['private', 'subAccounts'], 'GET', {'cost': 2.5})
|
|
82
|
+
private_subaccounts_get_sub_accounts_user_id_keys = privateSubAccountsGetSubAccountsUserIdKeys = Entry('sub_accounts/{user_id}/keys', ['private', 'subAccounts'], 'GET', {'cost': 2.5})
|
|
83
|
+
private_subaccounts_get_sub_accounts_user_id_keys_key = privateSubAccountsGetSubAccountsUserIdKeysKey = Entry('sub_accounts/{user_id}/keys/{key}', ['private', 'subAccounts'], 'GET', {'cost': 2.5})
|
|
84
|
+
private_subaccounts_post_sub_accounts = privateSubAccountsPostSubAccounts = Entry('sub_accounts', ['private', 'subAccounts'], 'POST', {'cost': 2.5})
|
|
85
|
+
private_subaccounts_post_sub_accounts_user_id_keys = privateSubAccountsPostSubAccountsUserIdKeys = Entry('sub_accounts/{user_id}/keys', ['private', 'subAccounts'], 'POST', {'cost': 2.5})
|
|
86
|
+
private_subaccounts_post_sub_accounts_user_id_lock = privateSubAccountsPostSubAccountsUserIdLock = Entry('sub_accounts/{user_id}/lock', ['private', 'subAccounts'], 'POST', {'cost': 2.5})
|
|
87
|
+
private_subaccounts_post_sub_accounts_user_id_unlock = privateSubAccountsPostSubAccountsUserIdUnlock = Entry('sub_accounts/{user_id}/unlock', ['private', 'subAccounts'], 'POST', {'cost': 2.5})
|
|
88
|
+
private_subaccounts_put_sub_accounts_user_id_keys_key = privateSubAccountsPutSubAccountsUserIdKeysKey = Entry('sub_accounts/{user_id}/keys/{key}', ['private', 'subAccounts'], 'PUT', {'cost': 2.5})
|
|
89
|
+
private_subaccounts_delete_sub_accounts_user_id_keys_key = privateSubAccountsDeleteSubAccountsUserIdKeysKey = Entry('sub_accounts/{user_id}/keys/{key}', ['private', 'subAccounts'], 'DELETE', {'cost': 2.5})
|
|
90
|
+
private_unified_get_accounts = privateUnifiedGetAccounts = Entry('accounts', ['private', 'unified'], 'GET', {'cost': 1.3333333333333333})
|
|
91
|
+
private_unified_get_account_mode = privateUnifiedGetAccountMode = Entry('account_mode', ['private', 'unified'], 'GET', {'cost': 1.3333333333333333})
|
|
92
|
+
private_unified_get_borrowable = privateUnifiedGetBorrowable = Entry('borrowable', ['private', 'unified'], 'GET', {'cost': 1.3333333333333333})
|
|
93
|
+
private_unified_get_transferable = privateUnifiedGetTransferable = Entry('transferable', ['private', 'unified'], 'GET', {'cost': 1.3333333333333333})
|
|
94
|
+
private_unified_get_loans = privateUnifiedGetLoans = Entry('loans', ['private', 'unified'], 'GET', {'cost': 1.3333333333333333})
|
|
95
|
+
private_unified_get_loan_records = privateUnifiedGetLoanRecords = Entry('loan_records', ['private', 'unified'], 'GET', {'cost': 1.3333333333333333})
|
|
96
|
+
private_unified_get_interest_records = privateUnifiedGetInterestRecords = Entry('interest_records', ['private', 'unified'], 'GET', {'cost': 1.3333333333333333})
|
|
97
|
+
private_unified_get_estimate_rate = privateUnifiedGetEstimateRate = Entry('estimate_rate', ['private', 'unified'], 'GET', {'cost': 1.3333333333333333})
|
|
98
|
+
private_unified_get_currency_discount_tiers = privateUnifiedGetCurrencyDiscountTiers = Entry('currency_discount_tiers', ['private', 'unified'], 'GET', {'cost': 1.3333333333333333})
|
|
99
|
+
private_unified_get_risk_units = privateUnifiedGetRiskUnits = Entry('risk_units', ['private', 'unified'], 'GET', {'cost': 1.3333333333333333})
|
|
100
|
+
private_unified_get_unified_mode = privateUnifiedGetUnifiedMode = Entry('unified_mode', ['private', 'unified'], 'GET', {'cost': 1.3333333333333333})
|
|
101
|
+
private_unified_get_loan_margin_tiers = privateUnifiedGetLoanMarginTiers = Entry('loan_margin_tiers', ['private', 'unified'], 'GET', {'cost': 1.3333333333333333})
|
|
102
|
+
private_unified_get_leverage_user_currency_config = privateUnifiedGetLeverageUserCurrencyConfig = Entry('leverage/user_currency_config', ['private', 'unified'], 'GET', {'cost': 1.3333333333333333})
|
|
103
|
+
private_unified_get_leverage_user_currency_setting = privateUnifiedGetLeverageUserCurrencySetting = Entry('leverage/user_currency_setting', ['private', 'unified'], 'GET', {'cost': 1.3333333333333333})
|
|
104
|
+
private_unified_post_account_mode = privateUnifiedPostAccountMode = Entry('account_mode', ['private', 'unified'], 'POST', {'cost': 1.3333333333333333})
|
|
105
|
+
private_unified_post_loans = privateUnifiedPostLoans = Entry('loans', ['private', 'unified'], 'POST', {'cost': 13.333333333333334})
|
|
106
|
+
private_unified_post_portfolio_calculator = privateUnifiedPostPortfolioCalculator = Entry('portfolio_calculator', ['private', 'unified'], 'POST', {'cost': 1.3333333333333333})
|
|
107
|
+
private_unified_post_leverage_user_currency_setting = privateUnifiedPostLeverageUserCurrencySetting = Entry('leverage/user_currency_setting', ['private', 'unified'], 'POST', {'cost': 1.3333333333333333})
|
|
108
|
+
private_unified_put_unified_mode = privateUnifiedPutUnifiedMode = Entry('unified_mode', ['private', 'unified'], 'PUT', {'cost': 1.3333333333333333})
|
|
109
|
+
private_spot_get_fee = privateSpotGetFee = Entry('fee', ['private', 'spot'], 'GET', {'cost': 1})
|
|
110
|
+
private_spot_get_batch_fee = privateSpotGetBatchFee = Entry('batch_fee', ['private', 'spot'], 'GET', {'cost': 1})
|
|
111
|
+
private_spot_get_accounts = privateSpotGetAccounts = Entry('accounts', ['private', 'spot'], 'GET', {'cost': 1})
|
|
112
|
+
private_spot_get_account_book = privateSpotGetAccountBook = Entry('account_book', ['private', 'spot'], 'GET', {'cost': 1})
|
|
113
|
+
private_spot_get_open_orders = privateSpotGetOpenOrders = Entry('open_orders', ['private', 'spot'], 'GET', {'cost': 1})
|
|
114
|
+
private_spot_get_orders = privateSpotGetOrders = Entry('orders', ['private', 'spot'], 'GET', {'cost': 1})
|
|
115
|
+
private_spot_get_orders_order_id = privateSpotGetOrdersOrderId = Entry('orders/{order_id}', ['private', 'spot'], 'GET', {'cost': 1})
|
|
116
|
+
private_spot_get_my_trades = privateSpotGetMyTrades = Entry('my_trades', ['private', 'spot'], 'GET', {'cost': 1})
|
|
117
|
+
private_spot_get_price_orders = privateSpotGetPriceOrders = Entry('price_orders', ['private', 'spot'], 'GET', {'cost': 1})
|
|
118
|
+
private_spot_get_price_orders_order_id = privateSpotGetPriceOrdersOrderId = Entry('price_orders/{order_id}', ['private', 'spot'], 'GET', {'cost': 1})
|
|
119
|
+
private_spot_post_batch_orders = privateSpotPostBatchOrders = Entry('batch_orders', ['private', 'spot'], 'POST', {'cost': 0.4})
|
|
120
|
+
private_spot_post_cross_liquidate_orders = privateSpotPostCrossLiquidateOrders = Entry('cross_liquidate_orders', ['private', 'spot'], 'POST', {'cost': 1})
|
|
121
|
+
private_spot_post_orders = privateSpotPostOrders = Entry('orders', ['private', 'spot'], 'POST', {'cost': 0.4})
|
|
122
|
+
private_spot_post_cancel_batch_orders = privateSpotPostCancelBatchOrders = Entry('cancel_batch_orders', ['private', 'spot'], 'POST', {'cost': 0.26666666666666666})
|
|
123
|
+
private_spot_post_countdown_cancel_all = privateSpotPostCountdownCancelAll = Entry('countdown_cancel_all', ['private', 'spot'], 'POST', {'cost': 0.26666666666666666})
|
|
124
|
+
private_spot_post_amend_batch_orders = privateSpotPostAmendBatchOrders = Entry('amend_batch_orders', ['private', 'spot'], 'POST', {'cost': 0.4})
|
|
125
|
+
private_spot_post_price_orders = privateSpotPostPriceOrders = Entry('price_orders', ['private', 'spot'], 'POST', {'cost': 0.4})
|
|
126
|
+
private_spot_delete_orders = privateSpotDeleteOrders = Entry('orders', ['private', 'spot'], 'DELETE', {'cost': 0.26666666666666666})
|
|
127
|
+
private_spot_delete_orders_order_id = privateSpotDeleteOrdersOrderId = Entry('orders/{order_id}', ['private', 'spot'], 'DELETE', {'cost': 0.26666666666666666})
|
|
128
|
+
private_spot_delete_price_orders = privateSpotDeletePriceOrders = Entry('price_orders', ['private', 'spot'], 'DELETE', {'cost': 0.26666666666666666})
|
|
129
|
+
private_spot_delete_price_orders_order_id = privateSpotDeletePriceOrdersOrderId = Entry('price_orders/{order_id}', ['private', 'spot'], 'DELETE', {'cost': 0.26666666666666666})
|
|
130
|
+
private_spot_patch_orders_order_id = privateSpotPatchOrdersOrderId = Entry('orders/{order_id}', ['private', 'spot'], 'PATCH', {'cost': 0.4})
|
|
131
|
+
private_margin_get_accounts = privateMarginGetAccounts = Entry('accounts', ['private', 'margin'], 'GET', {'cost': 1.3333333333333333})
|
|
132
|
+
private_margin_get_account_book = privateMarginGetAccountBook = Entry('account_book', ['private', 'margin'], 'GET', {'cost': 1.3333333333333333})
|
|
133
|
+
private_margin_get_funding_accounts = privateMarginGetFundingAccounts = Entry('funding_accounts', ['private', 'margin'], 'GET', {'cost': 1.3333333333333333})
|
|
134
|
+
private_margin_get_auto_repay = privateMarginGetAutoRepay = Entry('auto_repay', ['private', 'margin'], 'GET', {'cost': 1.3333333333333333})
|
|
135
|
+
private_margin_get_transferable = privateMarginGetTransferable = Entry('transferable', ['private', 'margin'], 'GET', {'cost': 1.3333333333333333})
|
|
136
|
+
private_margin_get_loans = privateMarginGetLoans = Entry('loans', ['private', 'margin'], 'GET', {'cost': 1.3333333333333333})
|
|
137
|
+
private_margin_get_loans_loan_id = privateMarginGetLoansLoanId = Entry('loans/{loan_id}', ['private', 'margin'], 'GET', {'cost': 1.3333333333333333})
|
|
138
|
+
private_margin_get_loans_loan_id_repayment = privateMarginGetLoansLoanIdRepayment = Entry('loans/{loan_id}/repayment', ['private', 'margin'], 'GET', {'cost': 1.3333333333333333})
|
|
139
|
+
private_margin_get_loan_records = privateMarginGetLoanRecords = Entry('loan_records', ['private', 'margin'], 'GET', {'cost': 1.3333333333333333})
|
|
140
|
+
private_margin_get_loan_records_loan_record_id = privateMarginGetLoanRecordsLoanRecordId = Entry('loan_records/{loan_record_id}', ['private', 'margin'], 'GET', {'cost': 1.3333333333333333})
|
|
141
|
+
private_margin_get_borrowable = privateMarginGetBorrowable = Entry('borrowable', ['private', 'margin'], 'GET', {'cost': 1.3333333333333333})
|
|
142
|
+
private_margin_get_cross_accounts = privateMarginGetCrossAccounts = Entry('cross/accounts', ['private', 'margin'], 'GET', {'cost': 1.3333333333333333})
|
|
143
|
+
private_margin_get_cross_account_book = privateMarginGetCrossAccountBook = Entry('cross/account_book', ['private', 'margin'], 'GET', {'cost': 1.3333333333333333})
|
|
144
|
+
private_margin_get_cross_loans = privateMarginGetCrossLoans = Entry('cross/loans', ['private', 'margin'], 'GET', {'cost': 1.3333333333333333})
|
|
145
|
+
private_margin_get_cross_loans_loan_id = privateMarginGetCrossLoansLoanId = Entry('cross/loans/{loan_id}', ['private', 'margin'], 'GET', {'cost': 1.3333333333333333})
|
|
146
|
+
private_margin_get_cross_repayments = privateMarginGetCrossRepayments = Entry('cross/repayments', ['private', 'margin'], 'GET', {'cost': 1.3333333333333333})
|
|
147
|
+
private_margin_get_cross_interest_records = privateMarginGetCrossInterestRecords = Entry('cross/interest_records', ['private', 'margin'], 'GET', {'cost': 1.3333333333333333})
|
|
148
|
+
private_margin_get_cross_transferable = privateMarginGetCrossTransferable = Entry('cross/transferable', ['private', 'margin'], 'GET', {'cost': 1.3333333333333333})
|
|
149
|
+
private_margin_get_cross_estimate_rate = privateMarginGetCrossEstimateRate = Entry('cross/estimate_rate', ['private', 'margin'], 'GET', {'cost': 1.3333333333333333})
|
|
150
|
+
private_margin_get_cross_borrowable = privateMarginGetCrossBorrowable = Entry('cross/borrowable', ['private', 'margin'], 'GET', {'cost': 1.3333333333333333})
|
|
151
|
+
private_margin_get_uni_estimate_rate = privateMarginGetUniEstimateRate = Entry('uni/estimate_rate', ['private', 'margin'], 'GET', {'cost': 1.3333333333333333})
|
|
152
|
+
private_margin_get_uni_loans = privateMarginGetUniLoans = Entry('uni/loans', ['private', 'margin'], 'GET', {'cost': 1.3333333333333333})
|
|
153
|
+
private_margin_get_uni_loan_records = privateMarginGetUniLoanRecords = Entry('uni/loan_records', ['private', 'margin'], 'GET', {'cost': 1.3333333333333333})
|
|
154
|
+
private_margin_get_uni_interest_records = privateMarginGetUniInterestRecords = Entry('uni/interest_records', ['private', 'margin'], 'GET', {'cost': 1.3333333333333333})
|
|
155
|
+
private_margin_get_uni_borrowable = privateMarginGetUniBorrowable = Entry('uni/borrowable', ['private', 'margin'], 'GET', {'cost': 1.3333333333333333})
|
|
156
|
+
private_margin_post_auto_repay = privateMarginPostAutoRepay = Entry('auto_repay', ['private', 'margin'], 'POST', {'cost': 1.3333333333333333})
|
|
157
|
+
private_margin_post_loans = privateMarginPostLoans = Entry('loans', ['private', 'margin'], 'POST', {'cost': 1.3333333333333333})
|
|
158
|
+
private_margin_post_merged_loans = privateMarginPostMergedLoans = Entry('merged_loans', ['private', 'margin'], 'POST', {'cost': 1.3333333333333333})
|
|
159
|
+
private_margin_post_loans_loan_id_repayment = privateMarginPostLoansLoanIdRepayment = Entry('loans/{loan_id}/repayment', ['private', 'margin'], 'POST', {'cost': 1.3333333333333333})
|
|
160
|
+
private_margin_post_cross_loans = privateMarginPostCrossLoans = Entry('cross/loans', ['private', 'margin'], 'POST', {'cost': 1.3333333333333333})
|
|
161
|
+
private_margin_post_cross_repayments = privateMarginPostCrossRepayments = Entry('cross/repayments', ['private', 'margin'], 'POST', {'cost': 1.3333333333333333})
|
|
162
|
+
private_margin_post_uni_loans = privateMarginPostUniLoans = Entry('uni/loans', ['private', 'margin'], 'POST', {'cost': 1.3333333333333333})
|
|
163
|
+
private_margin_patch_loans_loan_id = privateMarginPatchLoansLoanId = Entry('loans/{loan_id}', ['private', 'margin'], 'PATCH', {'cost': 1.3333333333333333})
|
|
164
|
+
private_margin_patch_loan_records_loan_record_id = privateMarginPatchLoanRecordsLoanRecordId = Entry('loan_records/{loan_record_id}', ['private', 'margin'], 'PATCH', {'cost': 1.3333333333333333})
|
|
165
|
+
private_margin_delete_loans_loan_id = privateMarginDeleteLoansLoanId = Entry('loans/{loan_id}', ['private', 'margin'], 'DELETE', {'cost': 1.3333333333333333})
|
|
166
|
+
private_flash_swap_get_currencies = privateFlash_swapGetCurrencies = Entry('currencies', ['private', 'flash_swap'], 'GET', {'cost': 1})
|
|
167
|
+
private_flash_swap_get_currency_pairs = privateFlash_swapGetCurrencyPairs = Entry('currency_pairs', ['private', 'flash_swap'], 'GET', {'cost': 1})
|
|
168
|
+
private_flash_swap_get_orders = privateFlash_swapGetOrders = Entry('orders', ['private', 'flash_swap'], 'GET', {'cost': 1})
|
|
169
|
+
private_flash_swap_get_orders_order_id = privateFlash_swapGetOrdersOrderId = Entry('orders/{order_id}', ['private', 'flash_swap'], 'GET', {'cost': 1})
|
|
170
|
+
private_flash_swap_post_orders = privateFlash_swapPostOrders = Entry('orders', ['private', 'flash_swap'], 'POST', {'cost': 1})
|
|
171
|
+
private_flash_swap_post_orders_preview = privateFlash_swapPostOrdersPreview = Entry('orders/preview', ['private', 'flash_swap'], 'POST', {'cost': 1})
|
|
172
|
+
private_futures_get_settle_accounts = privateFuturesGetSettleAccounts = Entry('{settle}/accounts', ['private', 'futures'], 'GET', {'cost': 1})
|
|
173
|
+
private_futures_get_settle_account_book = privateFuturesGetSettleAccountBook = Entry('{settle}/account_book', ['private', 'futures'], 'GET', {'cost': 1})
|
|
174
|
+
private_futures_get_settle_positions = privateFuturesGetSettlePositions = Entry('{settle}/positions', ['private', 'futures'], 'GET', {'cost': 1})
|
|
175
|
+
private_futures_get_settle_positions_contract = privateFuturesGetSettlePositionsContract = Entry('{settle}/positions/{contract}', ['private', 'futures'], 'GET', {'cost': 1})
|
|
176
|
+
private_futures_get_settle_dual_comp_positions_contract = privateFuturesGetSettleDualCompPositionsContract = Entry('{settle}/dual_comp/positions/{contract}', ['private', 'futures'], 'GET', {'cost': 1})
|
|
177
|
+
private_futures_get_settle_orders = privateFuturesGetSettleOrders = Entry('{settle}/orders', ['private', 'futures'], 'GET', {'cost': 1})
|
|
178
|
+
private_futures_get_settle_orders_timerange = privateFuturesGetSettleOrdersTimerange = Entry('{settle}/orders_timerange', ['private', 'futures'], 'GET', {'cost': 1})
|
|
179
|
+
private_futures_get_settle_orders_order_id = privateFuturesGetSettleOrdersOrderId = Entry('{settle}/orders/{order_id}', ['private', 'futures'], 'GET', {'cost': 1})
|
|
180
|
+
private_futures_get_settle_my_trades = privateFuturesGetSettleMyTrades = Entry('{settle}/my_trades', ['private', 'futures'], 'GET', {'cost': 1})
|
|
181
|
+
private_futures_get_settle_my_trades_timerange = privateFuturesGetSettleMyTradesTimerange = Entry('{settle}/my_trades_timerange', ['private', 'futures'], 'GET', {'cost': 1})
|
|
182
|
+
private_futures_get_settle_position_close = privateFuturesGetSettlePositionClose = Entry('{settle}/position_close', ['private', 'futures'], 'GET', {'cost': 1})
|
|
183
|
+
private_futures_get_settle_liquidates = privateFuturesGetSettleLiquidates = Entry('{settle}/liquidates', ['private', 'futures'], 'GET', {'cost': 1})
|
|
184
|
+
private_futures_get_settle_auto_deleverages = privateFuturesGetSettleAutoDeleverages = Entry('{settle}/auto_deleverages', ['private', 'futures'], 'GET', {'cost': 1})
|
|
185
|
+
private_futures_get_settle_fee = privateFuturesGetSettleFee = Entry('{settle}/fee', ['private', 'futures'], 'GET', {'cost': 1})
|
|
186
|
+
private_futures_get_settle_risk_limit_tiers = privateFuturesGetSettleRiskLimitTiers = Entry('{settle}/risk_limit_tiers', ['private', 'futures'], 'GET', {'cost': 1})
|
|
187
|
+
private_futures_get_settle_price_orders = privateFuturesGetSettlePriceOrders = Entry('{settle}/price_orders', ['private', 'futures'], 'GET', {'cost': 1})
|
|
188
|
+
private_futures_get_settle_price_orders_order_id = privateFuturesGetSettlePriceOrdersOrderId = Entry('{settle}/price_orders/{order_id}', ['private', 'futures'], 'GET', {'cost': 1})
|
|
189
|
+
private_futures_post_settle_positions_contract_margin = privateFuturesPostSettlePositionsContractMargin = Entry('{settle}/positions/{contract}/margin', ['private', 'futures'], 'POST', {'cost': 1})
|
|
190
|
+
private_futures_post_settle_positions_contract_leverage = privateFuturesPostSettlePositionsContractLeverage = Entry('{settle}/positions/{contract}/leverage', ['private', 'futures'], 'POST', {'cost': 1})
|
|
191
|
+
private_futures_post_settle_positions_contract_risk_limit = privateFuturesPostSettlePositionsContractRiskLimit = Entry('{settle}/positions/{contract}/risk_limit', ['private', 'futures'], 'POST', {'cost': 1})
|
|
192
|
+
private_futures_post_settle_dual_mode = privateFuturesPostSettleDualMode = Entry('{settle}/dual_mode', ['private', 'futures'], 'POST', {'cost': 1})
|
|
193
|
+
private_futures_post_settle_dual_comp_positions_contract_margin = privateFuturesPostSettleDualCompPositionsContractMargin = Entry('{settle}/dual_comp/positions/{contract}/margin', ['private', 'futures'], 'POST', {'cost': 1})
|
|
194
|
+
private_futures_post_settle_dual_comp_positions_contract_leverage = privateFuturesPostSettleDualCompPositionsContractLeverage = Entry('{settle}/dual_comp/positions/{contract}/leverage', ['private', 'futures'], 'POST', {'cost': 1})
|
|
195
|
+
private_futures_post_settle_dual_comp_positions_contract_risk_limit = privateFuturesPostSettleDualCompPositionsContractRiskLimit = Entry('{settle}/dual_comp/positions/{contract}/risk_limit', ['private', 'futures'], 'POST', {'cost': 1})
|
|
196
|
+
private_futures_post_settle_orders = privateFuturesPostSettleOrders = Entry('{settle}/orders', ['private', 'futures'], 'POST', {'cost': 0.4})
|
|
197
|
+
private_futures_post_settle_batch_orders = privateFuturesPostSettleBatchOrders = Entry('{settle}/batch_orders', ['private', 'futures'], 'POST', {'cost': 0.4})
|
|
198
|
+
private_futures_post_settle_countdown_cancel_all = privateFuturesPostSettleCountdownCancelAll = Entry('{settle}/countdown_cancel_all', ['private', 'futures'], 'POST', {'cost': 0.4})
|
|
199
|
+
private_futures_post_settle_batch_cancel_orders = privateFuturesPostSettleBatchCancelOrders = Entry('{settle}/batch_cancel_orders', ['private', 'futures'], 'POST', {'cost': 0.4})
|
|
200
|
+
private_futures_post_settle_price_orders = privateFuturesPostSettlePriceOrders = Entry('{settle}/price_orders', ['private', 'futures'], 'POST', {'cost': 0.4})
|
|
201
|
+
private_futures_put_settle_orders_order_id = privateFuturesPutSettleOrdersOrderId = Entry('{settle}/orders/{order_id}', ['private', 'futures'], 'PUT', {'cost': 1})
|
|
202
|
+
private_futures_delete_settle_orders = privateFuturesDeleteSettleOrders = Entry('{settle}/orders', ['private', 'futures'], 'DELETE', {'cost': 0.26666666666666666})
|
|
203
|
+
private_futures_delete_settle_orders_order_id = privateFuturesDeleteSettleOrdersOrderId = Entry('{settle}/orders/{order_id}', ['private', 'futures'], 'DELETE', {'cost': 0.26666666666666666})
|
|
204
|
+
private_futures_delete_settle_price_orders = privateFuturesDeleteSettlePriceOrders = Entry('{settle}/price_orders', ['private', 'futures'], 'DELETE', {'cost': 0.26666666666666666})
|
|
205
|
+
private_futures_delete_settle_price_orders_order_id = privateFuturesDeleteSettlePriceOrdersOrderId = Entry('{settle}/price_orders/{order_id}', ['private', 'futures'], 'DELETE', {'cost': 0.26666666666666666})
|
|
206
|
+
private_delivery_get_settle_accounts = privateDeliveryGetSettleAccounts = Entry('{settle}/accounts', ['private', 'delivery'], 'GET', {'cost': 1.3333333333333333})
|
|
207
|
+
private_delivery_get_settle_account_book = privateDeliveryGetSettleAccountBook = Entry('{settle}/account_book', ['private', 'delivery'], 'GET', {'cost': 1.3333333333333333})
|
|
208
|
+
private_delivery_get_settle_positions = privateDeliveryGetSettlePositions = Entry('{settle}/positions', ['private', 'delivery'], 'GET', {'cost': 1.3333333333333333})
|
|
209
|
+
private_delivery_get_settle_positions_contract = privateDeliveryGetSettlePositionsContract = Entry('{settle}/positions/{contract}', ['private', 'delivery'], 'GET', {'cost': 1.3333333333333333})
|
|
210
|
+
private_delivery_get_settle_orders = privateDeliveryGetSettleOrders = Entry('{settle}/orders', ['private', 'delivery'], 'GET', {'cost': 1.3333333333333333})
|
|
211
|
+
private_delivery_get_settle_orders_order_id = privateDeliveryGetSettleOrdersOrderId = Entry('{settle}/orders/{order_id}', ['private', 'delivery'], 'GET', {'cost': 1.3333333333333333})
|
|
212
|
+
private_delivery_get_settle_my_trades = privateDeliveryGetSettleMyTrades = Entry('{settle}/my_trades', ['private', 'delivery'], 'GET', {'cost': 1.3333333333333333})
|
|
213
|
+
private_delivery_get_settle_position_close = privateDeliveryGetSettlePositionClose = Entry('{settle}/position_close', ['private', 'delivery'], 'GET', {'cost': 1.3333333333333333})
|
|
214
|
+
private_delivery_get_settle_liquidates = privateDeliveryGetSettleLiquidates = Entry('{settle}/liquidates', ['private', 'delivery'], 'GET', {'cost': 1.3333333333333333})
|
|
215
|
+
private_delivery_get_settle_settlements = privateDeliveryGetSettleSettlements = Entry('{settle}/settlements', ['private', 'delivery'], 'GET', {'cost': 1.3333333333333333})
|
|
216
|
+
private_delivery_get_settle_price_orders = privateDeliveryGetSettlePriceOrders = Entry('{settle}/price_orders', ['private', 'delivery'], 'GET', {'cost': 1.3333333333333333})
|
|
217
|
+
private_delivery_get_settle_price_orders_order_id = privateDeliveryGetSettlePriceOrdersOrderId = Entry('{settle}/price_orders/{order_id}', ['private', 'delivery'], 'GET', {'cost': 1.3333333333333333})
|
|
218
|
+
private_delivery_post_settle_positions_contract_margin = privateDeliveryPostSettlePositionsContractMargin = Entry('{settle}/positions/{contract}/margin', ['private', 'delivery'], 'POST', {'cost': 1.3333333333333333})
|
|
219
|
+
private_delivery_post_settle_positions_contract_leverage = privateDeliveryPostSettlePositionsContractLeverage = Entry('{settle}/positions/{contract}/leverage', ['private', 'delivery'], 'POST', {'cost': 1.3333333333333333})
|
|
220
|
+
private_delivery_post_settle_positions_contract_risk_limit = privateDeliveryPostSettlePositionsContractRiskLimit = Entry('{settle}/positions/{contract}/risk_limit', ['private', 'delivery'], 'POST', {'cost': 1.3333333333333333})
|
|
221
|
+
private_delivery_post_settle_orders = privateDeliveryPostSettleOrders = Entry('{settle}/orders', ['private', 'delivery'], 'POST', {'cost': 1.3333333333333333})
|
|
222
|
+
private_delivery_post_settle_price_orders = privateDeliveryPostSettlePriceOrders = Entry('{settle}/price_orders', ['private', 'delivery'], 'POST', {'cost': 1.3333333333333333})
|
|
223
|
+
private_delivery_delete_settle_orders = privateDeliveryDeleteSettleOrders = Entry('{settle}/orders', ['private', 'delivery'], 'DELETE', {'cost': 1.3333333333333333})
|
|
224
|
+
private_delivery_delete_settle_orders_order_id = privateDeliveryDeleteSettleOrdersOrderId = Entry('{settle}/orders/{order_id}', ['private', 'delivery'], 'DELETE', {'cost': 1.3333333333333333})
|
|
225
|
+
private_delivery_delete_settle_price_orders = privateDeliveryDeleteSettlePriceOrders = Entry('{settle}/price_orders', ['private', 'delivery'], 'DELETE', {'cost': 1.3333333333333333})
|
|
226
|
+
private_delivery_delete_settle_price_orders_order_id = privateDeliveryDeleteSettlePriceOrdersOrderId = Entry('{settle}/price_orders/{order_id}', ['private', 'delivery'], 'DELETE', {'cost': 1.3333333333333333})
|
|
227
|
+
private_options_get_my_settlements = privateOptionsGetMySettlements = Entry('my_settlements', ['private', 'options'], 'GET', {'cost': 1.3333333333333333})
|
|
228
|
+
private_options_get_accounts = privateOptionsGetAccounts = Entry('accounts', ['private', 'options'], 'GET', {'cost': 1.3333333333333333})
|
|
229
|
+
private_options_get_account_book = privateOptionsGetAccountBook = Entry('account_book', ['private', 'options'], 'GET', {'cost': 1.3333333333333333})
|
|
230
|
+
private_options_get_positions = privateOptionsGetPositions = Entry('positions', ['private', 'options'], 'GET', {'cost': 1.3333333333333333})
|
|
231
|
+
private_options_get_positions_contract = privateOptionsGetPositionsContract = Entry('positions/{contract}', ['private', 'options'], 'GET', {'cost': 1.3333333333333333})
|
|
232
|
+
private_options_get_position_close = privateOptionsGetPositionClose = Entry('position_close', ['private', 'options'], 'GET', {'cost': 1.3333333333333333})
|
|
233
|
+
private_options_get_orders = privateOptionsGetOrders = Entry('orders', ['private', 'options'], 'GET', {'cost': 1.3333333333333333})
|
|
234
|
+
private_options_get_orders_order_id = privateOptionsGetOrdersOrderId = Entry('orders/{order_id}', ['private', 'options'], 'GET', {'cost': 1.3333333333333333})
|
|
235
|
+
private_options_get_my_trades = privateOptionsGetMyTrades = Entry('my_trades', ['private', 'options'], 'GET', {'cost': 1.3333333333333333})
|
|
236
|
+
private_options_get_mmp = privateOptionsGetMmp = Entry('mmp', ['private', 'options'], 'GET', {'cost': 1.3333333333333333})
|
|
237
|
+
private_options_post_orders = privateOptionsPostOrders = Entry('orders', ['private', 'options'], 'POST', {'cost': 1.3333333333333333})
|
|
238
|
+
private_options_post_countdown_cancel_all = privateOptionsPostCountdownCancelAll = Entry('countdown_cancel_all', ['private', 'options'], 'POST', {'cost': 1.3333333333333333})
|
|
239
|
+
private_options_post_mmp = privateOptionsPostMmp = Entry('mmp', ['private', 'options'], 'POST', {'cost': 1.3333333333333333})
|
|
240
|
+
private_options_post_mmp_reset = privateOptionsPostMmpReset = Entry('mmp/reset', ['private', 'options'], 'POST', {'cost': 1.3333333333333333})
|
|
241
|
+
private_options_delete_orders = privateOptionsDeleteOrders = Entry('orders', ['private', 'options'], 'DELETE', {'cost': 1.3333333333333333})
|
|
242
|
+
private_options_delete_orders_order_id = privateOptionsDeleteOrdersOrderId = Entry('orders/{order_id}', ['private', 'options'], 'DELETE', {'cost': 1.3333333333333333})
|
|
243
|
+
private_earn_get_uni_currencies = privateEarnGetUniCurrencies = Entry('uni/currencies', ['private', 'earn'], 'GET', {'cost': 1.3333333333333333})
|
|
244
|
+
private_earn_get_uni_currencies_currency = privateEarnGetUniCurrenciesCurrency = Entry('uni/currencies/{currency}', ['private', 'earn'], 'GET', {'cost': 1.3333333333333333})
|
|
245
|
+
private_earn_get_uni_lends = privateEarnGetUniLends = Entry('uni/lends', ['private', 'earn'], 'GET', {'cost': 1.3333333333333333})
|
|
246
|
+
private_earn_get_uni_lend_records = privateEarnGetUniLendRecords = Entry('uni/lend_records', ['private', 'earn'], 'GET', {'cost': 1.3333333333333333})
|
|
247
|
+
private_earn_get_uni_interests_currency = privateEarnGetUniInterestsCurrency = Entry('uni/interests/{currency}', ['private', 'earn'], 'GET', {'cost': 1.3333333333333333})
|
|
248
|
+
private_earn_get_uni_interest_records = privateEarnGetUniInterestRecords = Entry('uni/interest_records', ['private', 'earn'], 'GET', {'cost': 1.3333333333333333})
|
|
249
|
+
private_earn_get_uni_interest_status_currency = privateEarnGetUniInterestStatusCurrency = Entry('uni/interest_status/{currency}', ['private', 'earn'], 'GET', {'cost': 1.3333333333333333})
|
|
250
|
+
private_earn_post_uni_lends = privateEarnPostUniLends = Entry('uni/lends', ['private', 'earn'], 'POST', {'cost': 1.3333333333333333})
|
|
251
|
+
private_earn_put_uni_interest_reinvest = privateEarnPutUniInterestReinvest = Entry('uni/interest_reinvest', ['private', 'earn'], 'PUT', {'cost': 1.3333333333333333})
|
|
252
|
+
private_earn_patch_uni_lends = privateEarnPatchUniLends = Entry('uni/lends', ['private', 'earn'], 'PATCH', {'cost': 1.3333333333333333})
|
|
253
|
+
private_loan_get_collateral_orders = privateLoanGetCollateralOrders = Entry('collateral/orders', ['private', 'loan'], 'GET', {'cost': 1.3333333333333333})
|
|
254
|
+
private_loan_get_collateral_orders_order_id = privateLoanGetCollateralOrdersOrderId = Entry('collateral/orders/{order_id}', ['private', 'loan'], 'GET', {'cost': 1.3333333333333333})
|
|
255
|
+
private_loan_get_collateral_repay_records = privateLoanGetCollateralRepayRecords = Entry('collateral/repay_records', ['private', 'loan'], 'GET', {'cost': 1.3333333333333333})
|
|
256
|
+
private_loan_get_collateral_collaterals = privateLoanGetCollateralCollaterals = Entry('collateral/collaterals', ['private', 'loan'], 'GET', {'cost': 1.3333333333333333})
|
|
257
|
+
private_loan_get_collateral_total_amount = privateLoanGetCollateralTotalAmount = Entry('collateral/total_amount', ['private', 'loan'], 'GET', {'cost': 1.3333333333333333})
|
|
258
|
+
private_loan_get_collateral_ltv = privateLoanGetCollateralLtv = Entry('collateral/ltv', ['private', 'loan'], 'GET', {'cost': 1.3333333333333333})
|
|
259
|
+
private_loan_get_collateral_currencies = privateLoanGetCollateralCurrencies = Entry('collateral/currencies', ['private', 'loan'], 'GET', {'cost': 1.3333333333333333})
|
|
260
|
+
private_loan_get_multi_collateral_orders = privateLoanGetMultiCollateralOrders = Entry('multi_collateral/orders', ['private', 'loan'], 'GET', {'cost': 1.3333333333333333})
|
|
261
|
+
private_loan_get_multi_collateral_orders_order_id = privateLoanGetMultiCollateralOrdersOrderId = Entry('multi_collateral/orders/{order_id}', ['private', 'loan'], 'GET', {'cost': 1.3333333333333333})
|
|
262
|
+
private_loan_get_multi_collateral_repay = privateLoanGetMultiCollateralRepay = Entry('multi_collateral/repay', ['private', 'loan'], 'GET', {'cost': 1.3333333333333333})
|
|
263
|
+
private_loan_get_multi_collateral_mortgage = privateLoanGetMultiCollateralMortgage = Entry('multi_collateral/mortgage', ['private', 'loan'], 'GET', {'cost': 1.3333333333333333})
|
|
264
|
+
private_loan_get_multi_collateral_currency_quota = privateLoanGetMultiCollateralCurrencyQuota = Entry('multi_collateral/currency_quota', ['private', 'loan'], 'GET', {'cost': 1.3333333333333333})
|
|
265
|
+
private_loan_get_multi_collateral_currencies = privateLoanGetMultiCollateralCurrencies = Entry('multi_collateral/currencies', ['private', 'loan'], 'GET', {'cost': 1.3333333333333333})
|
|
266
|
+
private_loan_get_multi_collateral_ltv = privateLoanGetMultiCollateralLtv = Entry('multi_collateral/ltv', ['private', 'loan'], 'GET', {'cost': 1.3333333333333333})
|
|
267
|
+
private_loan_get_multi_collateral_fixed_rate = privateLoanGetMultiCollateralFixedRate = Entry('multi_collateral/fixed_rate', ['private', 'loan'], 'GET', {'cost': 1.3333333333333333})
|
|
268
|
+
private_loan_get_multi_collateral_current_rate = privateLoanGetMultiCollateralCurrentRate = Entry('multi_collateral/current_rate', ['private', 'loan'], 'GET', {'cost': 1.3333333333333333})
|
|
269
|
+
private_loan_post_collateral_orders = privateLoanPostCollateralOrders = Entry('collateral/orders', ['private', 'loan'], 'POST', {'cost': 1.3333333333333333})
|
|
270
|
+
private_loan_post_collateral_repay = privateLoanPostCollateralRepay = Entry('collateral/repay', ['private', 'loan'], 'POST', {'cost': 1.3333333333333333})
|
|
271
|
+
private_loan_post_collateral_collaterals = privateLoanPostCollateralCollaterals = Entry('collateral/collaterals', ['private', 'loan'], 'POST', {'cost': 1.3333333333333333})
|
|
272
|
+
private_loan_post_multi_collateral_orders = privateLoanPostMultiCollateralOrders = Entry('multi_collateral/orders', ['private', 'loan'], 'POST', {'cost': 1.3333333333333333})
|
|
273
|
+
private_loan_post_multi_collateral_repay = privateLoanPostMultiCollateralRepay = Entry('multi_collateral/repay', ['private', 'loan'], 'POST', {'cost': 1.3333333333333333})
|
|
274
|
+
private_loan_post_multi_collateral_mortgage = privateLoanPostMultiCollateralMortgage = Entry('multi_collateral/mortgage', ['private', 'loan'], 'POST', {'cost': 1.3333333333333333})
|
|
275
|
+
private_account_get_detail = privateAccountGetDetail = Entry('detail', ['private', 'account'], 'GET', {'cost': 1.3333333333333333})
|
|
276
|
+
private_account_get_rate_limit = privateAccountGetRateLimit = Entry('rate_limit', ['private', 'account'], 'GET', {'cost': 1.3333333333333333})
|
|
277
|
+
private_account_get_stp_groups = privateAccountGetStpGroups = Entry('stp_groups', ['private', 'account'], 'GET', {'cost': 1.3333333333333333})
|
|
278
|
+
private_account_get_stp_groups_stp_id_users = privateAccountGetStpGroupsStpIdUsers = Entry('stp_groups/{stp_id}/users', ['private', 'account'], 'GET', {'cost': 1.3333333333333333})
|
|
279
|
+
private_account_get_stp_groups_debit_fee = privateAccountGetStpGroupsDebitFee = Entry('stp_groups/debit_fee', ['private', 'account'], 'GET', {'cost': 1.3333333333333333})
|
|
280
|
+
private_account_post_stp_groups = privateAccountPostStpGroups = Entry('stp_groups', ['private', 'account'], 'POST', {'cost': 1.3333333333333333})
|
|
281
|
+
private_account_post_stp_groups_stp_id_users = privateAccountPostStpGroupsStpIdUsers = Entry('stp_groups/{stp_id}/users', ['private', 'account'], 'POST', {'cost': 1.3333333333333333})
|
|
282
|
+
private_account_delete_stp_groups_stp_id_users = privateAccountDeleteStpGroupsStpIdUsers = Entry('stp_groups/{stp_id}/users', ['private', 'account'], 'DELETE', {'cost': 1.3333333333333333})
|
|
283
|
+
private_rebate_get_agency_transaction_history = privateRebateGetAgencyTransactionHistory = Entry('agency/transaction_history', ['private', 'rebate'], 'GET', {'cost': 1.3333333333333333})
|
|
284
|
+
private_rebate_get_agency_commission_history = privateRebateGetAgencyCommissionHistory = Entry('agency/commission_history', ['private', 'rebate'], 'GET', {'cost': 1.3333333333333333})
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
import gate.ccxt as ccxt_module
|
|
3
|
+
sys.modules['ccxt'] = ccxt_module
|
|
4
|
+
|
|
5
|
+
# -*- coding: utf-8 -*-
|
|
6
|
+
|
|
7
|
+
"""CCXT: CryptoCurrency eXchange Trading Library (Async)"""
|
|
8
|
+
|
|
9
|
+
# -----------------------------------------------------------------------------
|
|
10
|
+
|
|
11
|
+
__version__ = '4.4.69'
|
|
12
|
+
|
|
13
|
+
# -----------------------------------------------------------------------------
|
|
14
|
+
|
|
15
|
+
from ccxt.async_support.base.exchange import Exchange # noqa: F401
|
|
16
|
+
|
|
17
|
+
from ccxt.base.decimal_to_precision import decimal_to_precision # noqa: F401
|
|
18
|
+
from ccxt.base.decimal_to_precision import TRUNCATE # noqa: F401
|
|
19
|
+
from ccxt.base.decimal_to_precision import ROUND # noqa: F401
|
|
20
|
+
from ccxt.base.decimal_to_precision import TICK_SIZE # noqa: F401
|
|
21
|
+
from ccxt.base.decimal_to_precision import DECIMAL_PLACES # noqa: F401
|
|
22
|
+
from ccxt.base.decimal_to_precision import SIGNIFICANT_DIGITS # noqa: F401
|
|
23
|
+
from ccxt.base.decimal_to_precision import NO_PADDING # noqa: F401
|
|
24
|
+
from ccxt.base.decimal_to_precision import PAD_WITH_ZERO # noqa: F401
|
|
25
|
+
|
|
26
|
+
from ccxt.base import errors # noqa: F401
|
|
27
|
+
from ccxt.base.errors import BaseError # noqa: F401
|
|
28
|
+
from ccxt.base.errors import ExchangeError # noqa: F401
|
|
29
|
+
from ccxt.base.errors import AuthenticationError # noqa: F401
|
|
30
|
+
from ccxt.base.errors import PermissionDenied # noqa: F401
|
|
31
|
+
from ccxt.base.errors import AccountNotEnabled # noqa: F401
|
|
32
|
+
from ccxt.base.errors import AccountSuspended # noqa: F401
|
|
33
|
+
from ccxt.base.errors import ArgumentsRequired # noqa: F401
|
|
34
|
+
from ccxt.base.errors import BadRequest # noqa: F401
|
|
35
|
+
from ccxt.base.errors import BadSymbol # noqa: F401
|
|
36
|
+
from ccxt.base.errors import OperationRejected # noqa: F401
|
|
37
|
+
from ccxt.base.errors import NoChange # noqa: F401
|
|
38
|
+
from ccxt.base.errors import MarginModeAlreadySet # noqa: F401
|
|
39
|
+
from ccxt.base.errors import MarketClosed # noqa: F401
|
|
40
|
+
from ccxt.base.errors import ManualInteractionNeeded # noqa: F401
|
|
41
|
+
from ccxt.base.errors import InsufficientFunds # noqa: F401
|
|
42
|
+
from ccxt.base.errors import InvalidAddress # noqa: F401
|
|
43
|
+
from ccxt.base.errors import AddressPending # noqa: F401
|
|
44
|
+
from ccxt.base.errors import InvalidOrder # noqa: F401
|
|
45
|
+
from ccxt.base.errors import OrderNotFound # noqa: F401
|
|
46
|
+
from ccxt.base.errors import OrderNotCached # noqa: F401
|
|
47
|
+
from ccxt.base.errors import OrderImmediatelyFillable # noqa: F401
|
|
48
|
+
from ccxt.base.errors import OrderNotFillable # noqa: F401
|
|
49
|
+
from ccxt.base.errors import DuplicateOrderId # noqa: F401
|
|
50
|
+
from ccxt.base.errors import ContractUnavailable # noqa: F401
|
|
51
|
+
from ccxt.base.errors import NotSupported # noqa: F401
|
|
52
|
+
from ccxt.base.errors import InvalidProxySettings # noqa: F401
|
|
53
|
+
from ccxt.base.errors import ExchangeClosedByUser # noqa: F401
|
|
54
|
+
from ccxt.base.errors import OperationFailed # noqa: F401
|
|
55
|
+
from ccxt.base.errors import NetworkError # noqa: F401
|
|
56
|
+
from ccxt.base.errors import DDoSProtection # noqa: F401
|
|
57
|
+
from ccxt.base.errors import RateLimitExceeded # noqa: F401
|
|
58
|
+
from ccxt.base.errors import ExchangeNotAvailable # noqa: F401
|
|
59
|
+
from ccxt.base.errors import OnMaintenance # noqa: F401
|
|
60
|
+
from ccxt.base.errors import InvalidNonce # noqa: F401
|
|
61
|
+
from ccxt.base.errors import ChecksumError # noqa: F401
|
|
62
|
+
from ccxt.base.errors import RequestTimeout # noqa: F401
|
|
63
|
+
from ccxt.base.errors import BadResponse # noqa: F401
|
|
64
|
+
from ccxt.base.errors import NullResponse # noqa: F401
|
|
65
|
+
from ccxt.base.errors import CancelPending # noqa: F401
|
|
66
|
+
from ccxt.base.errors import UnsubscribeError # noqa: F401
|
|
67
|
+
from ccxt.base.errors import error_hierarchy # noqa: F401
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
from ccxt.async_support.gate import gate # noqa: F401
|
|
71
|
+
|
|
72
|
+
exchanges = [ 'gate',]
|
|
73
|
+
|
|
74
|
+
base = [
|
|
75
|
+
'Exchange',
|
|
76
|
+
'exchanges',
|
|
77
|
+
'decimal_to_precision',
|
|
78
|
+
]
|
|
79
|
+
|
|
80
|
+
__all__ = base + errors.__all__ + exchanges
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# this file is a stub so that files inside of ccxt/rest are loaded
|