hyperliquid 0.4.66__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.
- hyperliquid-0.4.66/LICENSE +21 -0
- hyperliquid-0.4.66/PKG-INFO +219 -0
- hyperliquid-0.4.66/README.md +158 -0
- hyperliquid-0.4.66/hyperliquid/__init__.py +7 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/__init__.py +101 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/abstract/hyperliquid.py +6 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/async_support/__init__.py +80 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/async_support/base/__init__.py +1 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/async_support/base/exchange.py +2095 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/async_support/base/throttler.py +50 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/async_support/base/ws/__init__.py +38 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/async_support/base/ws/aiohttp_client.py +147 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/async_support/base/ws/cache.py +213 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/async_support/base/ws/client.py +214 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/async_support/base/ws/fast_client.py +97 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/async_support/base/ws/functions.py +59 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/async_support/base/ws/future.py +69 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/async_support/base/ws/order_book.py +78 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/async_support/base/ws/order_book_side.py +174 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/async_support/hyperliquid.py +3446 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/base/__init__.py +27 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/base/decimal_to_precision.py +174 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/base/errors.py +267 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/base/exchange.py +6767 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/base/precise.py +297 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/base/types.py +577 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/hyperliquid.py +3445 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/pro/__init__.py +21 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/pro/hyperliquid.py +997 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/__init__.py +1 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ecdsa/__init__.py +14 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ecdsa/_version.py +520 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ecdsa/curves.py +56 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ecdsa/der.py +221 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ecdsa/ecdsa.py +310 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ecdsa/ellipticcurve.py +197 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ecdsa/keys.py +332 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ecdsa/numbertheory.py +531 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ecdsa/rfc6979.py +100 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ecdsa/util.py +266 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/__init__.py +7 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/abi/__init__.py +16 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/abi/abi.py +19 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/abi/base.py +152 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/abi/codec.py +217 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/abi/constants.py +3 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/abi/decoding.py +565 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/abi/encoding.py +720 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/abi/exceptions.py +139 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/abi/grammar.py +443 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/abi/packed.py +13 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/abi/py.typed +0 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/abi/registry.py +643 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/abi/tools/__init__.py +3 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/abi/tools/_strategies.py +230 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/abi/utils/__init__.py +0 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/abi/utils/numeric.py +83 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/abi/utils/padding.py +27 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/abi/utils/string.py +19 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/account/__init__.py +3 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/account/encode_typed_data/__init__.py +4 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/account/encode_typed_data/encoding_and_hashing.py +239 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/account/encode_typed_data/helpers.py +40 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/account/messages.py +263 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/account/py.typed +0 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/hexbytes/__init__.py +5 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/hexbytes/_utils.py +54 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/hexbytes/main.py +65 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/hexbytes/py.typed +0 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/typing/__init__.py +63 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/typing/abi.py +6 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/typing/bls.py +7 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/typing/discovery.py +5 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/typing/encoding.py +7 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/typing/enums.py +17 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/typing/ethpm.py +9 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/typing/evm.py +20 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/typing/networks.py +1122 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/typing/py.typed +0 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/utils/__init__.py +115 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/utils/abi.py +72 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/utils/address.py +171 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/utils/applicators.py +151 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/utils/conversions.py +190 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/utils/currency.py +107 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/utils/curried/__init__.py +269 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/utils/debug.py +20 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/utils/decorators.py +132 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/utils/encoding.py +6 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/utils/exceptions.py +4 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/utils/functional.py +75 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/utils/hexadecimal.py +74 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/utils/humanize.py +188 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/utils/logging.py +159 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/utils/module_loading.py +31 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/utils/numeric.py +43 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/utils/py.typed +0 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/utils/toolz.py +76 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/utils/types.py +54 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/utils/typing/__init__.py +18 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/utils/typing/misc.py +14 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/ethereum/utils/units.py +31 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/keccak/__init__.py +3 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/keccak/keccak.py +197 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/__init__.py +38 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/__pyinstaller/__init__.py +6 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/__pyinstaller/hook-lark.py +14 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/ast_utils.py +59 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/common.py +86 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/exceptions.py +292 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/grammar.py +130 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/grammars/__init__.py +0 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/indenter.py +143 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/lark.py +658 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/lexer.py +678 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/load_grammar.py +1428 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/parse_tree_builder.py +391 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/parser_frontends.py +257 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/parsers/__init__.py +0 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/parsers/cyk.py +340 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/parsers/earley.py +314 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/parsers/earley_common.py +42 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/parsers/earley_forest.py +801 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/parsers/grammar_analysis.py +203 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/parsers/lalr_analysis.py +332 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/parsers/lalr_interactive_parser.py +158 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/parsers/lalr_parser.py +122 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/parsers/lalr_parser_state.py +110 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/parsers/xearley.py +165 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/py.typed +0 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/reconstruct.py +107 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/tools/__init__.py +70 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/tools/nearley.py +202 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/tools/serialize.py +32 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/tools/standalone.py +196 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/tree.py +267 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/tree_matcher.py +186 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/tree_templates.py +180 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/utils.py +343 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/lark/visitors.py +596 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/marshmallow/__init__.py +81 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/marshmallow/base.py +65 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/marshmallow/class_registry.py +94 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/marshmallow/decorators.py +231 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/marshmallow/error_store.py +60 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/marshmallow/exceptions.py +71 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/marshmallow/fields.py +2114 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/marshmallow/orderedset.py +89 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/marshmallow/py.typed +0 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/marshmallow/schema.py +1228 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/marshmallow/types.py +12 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/marshmallow/utils.py +378 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/marshmallow/validate.py +678 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/marshmallow/warnings.py +2 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/marshmallow_dataclass/__init__.py +1047 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/marshmallow_dataclass/collection_field.py +51 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/marshmallow_dataclass/lazy_class_attribute.py +45 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/marshmallow_dataclass/mypy.py +71 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/marshmallow_dataclass/py.typed +0 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/marshmallow_dataclass/typing.py +14 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/marshmallow_dataclass/union_field.py +82 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/marshmallow_oneofschema/__init__.py +1 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/marshmallow_oneofschema/one_of_schema.py +193 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/marshmallow_oneofschema/py.typed +0 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/msgpack/__init__.py +55 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/msgpack/exceptions.py +48 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/msgpack/ext.py +168 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/msgpack/fallback.py +951 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/parsimonious/__init__.py +10 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/parsimonious/exceptions.py +105 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/parsimonious/expressions.py +479 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/parsimonious/grammar.py +487 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/parsimonious/nodes.py +325 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/parsimonious/utils.py +40 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/__init__.py +0 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/abi/v0/__init__.py +2 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/abi/v0/model.py +44 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/abi/v0/parser.py +216 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/abi/v0/schemas.py +72 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/abi/v0/shape.py +63 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/abi/v1/__init__.py +2 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/abi/v1/model.py +39 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/abi/v1/parser.py +220 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/abi/v1/parser_transformer.py +179 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/abi/v1/schemas.py +66 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/abi/v1/shape.py +47 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/abi/v2/__init__.py +2 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/abi/v2/model.py +89 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/abi/v2/parser.py +293 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/abi/v2/parser_transformer.py +192 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/abi/v2/schemas.py +132 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/abi/v2/shape.py +107 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/cairo/__init__.py +0 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/cairo/data_types.py +123 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/cairo/deprecated_parse/__init__.py +0 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/cairo/deprecated_parse/cairo_types.py +77 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/cairo/deprecated_parse/parser.py +46 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/cairo/deprecated_parse/parser_transformer.py +138 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/cairo/felt.py +64 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/cairo/type_parser.py +121 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/cairo/v1/__init__.py +0 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/cairo/v1/type_parser.py +59 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/cairo/v2/__init__.py +0 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/cairo/v2/type_parser.py +77 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/ccxt_utils.py +7 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/common.py +15 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/constants.py +39 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/hash/__init__.py +0 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/hash/address.py +79 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/hash/compiled_class_hash_objects.py +111 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/hash/selector.py +16 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/hash/storage.py +12 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/hash/utils.py +78 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/models/__init__.py +0 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/models/typed_data.py +45 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/serialization/__init__.py +24 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/serialization/_calldata_reader.py +40 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/serialization/_context.py +142 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/serialization/data_serializers/__init__.py +10 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/serialization/data_serializers/_common.py +82 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/serialization/data_serializers/array_serializer.py +43 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/serialization/data_serializers/bool_serializer.py +37 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/serialization/data_serializers/byte_array_serializer.py +66 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/serialization/data_serializers/cairo_data_serializer.py +71 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/serialization/data_serializers/enum_serializer.py +71 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/serialization/data_serializers/felt_serializer.py +50 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/serialization/data_serializers/named_tuple_serializer.py +58 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/serialization/data_serializers/option_serializer.py +43 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/serialization/data_serializers/output_serializer.py +40 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/serialization/data_serializers/payload_serializer.py +72 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/serialization/data_serializers/struct_serializer.py +36 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/serialization/data_serializers/tuple_serializer.py +36 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/serialization/data_serializers/uint256_serializer.py +76 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/serialization/data_serializers/uint_serializer.py +100 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/serialization/data_serializers/unit_serializer.py +32 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/serialization/errors.py +10 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/serialization/factory.py +229 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/serialization/function_serialization_adapter.py +110 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/serialization/tuple_dataclass.py +59 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/utils/__init__.py +0 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/utils/constructor_args_translator.py +86 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/utils/iterable.py +13 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/utils/schema.py +13 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starknet/utils/typed_data.py +182 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starkware/__init__.py +0 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starkware/crypto/__init__.py +0 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starkware/crypto/fast_pedersen_hash.py +50 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starkware/crypto/math_utils.py +78 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starkware/crypto/signature.py +2344 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/starkware/crypto/utils.py +63 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/sympy/__init__.py +0 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/sympy/core/__init__.py +0 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/sympy/core/intfunc.py +35 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/sympy/external/__init__.py +0 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/sympy/external/gmpy.py +345 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/sympy/external/importtools.py +187 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/sympy/external/ntheory.py +637 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/sympy/external/pythonmpq.py +341 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/toolz/__init__.py +26 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/toolz/_signatures.py +784 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/toolz/_version.py +520 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/toolz/compatibility.py +30 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/toolz/curried/__init__.py +101 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/toolz/curried/exceptions.py +22 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/toolz/curried/operator.py +22 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/toolz/dicttoolz.py +339 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/toolz/functoolz.py +1049 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/toolz/itertoolz.py +1057 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/toolz/recipes.py +46 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/toolz/utils.py +9 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/typing_inspect/__init__.py +0 -0
- hyperliquid-0.4.66/hyperliquid/ccxt/static_dependencies/typing_inspect/typing_inspect.py +851 -0
- hyperliquid-0.4.66/hyperliquid.egg-info/PKG-INFO +219 -0
- hyperliquid-0.4.66/hyperliquid.egg-info/SOURCES.txt +277 -0
- hyperliquid-0.4.66/hyperliquid.egg-info/dependency_links.txt +1 -0
- hyperliquid-0.4.66/hyperliquid.egg-info/requires.txt +17 -0
- hyperliquid-0.4.66/hyperliquid.egg-info/top_level.txt +1 -0
- hyperliquid-0.4.66/setup.cfg +4 -0
- hyperliquid-0.4.66/setup.py +103 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 ccxt
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: hyperliquid
|
|
3
|
+
Version: 0.4.66
|
|
4
|
+
Summary: A Python cryptocurrency trading library for hyperliquid
|
|
5
|
+
Home-page: https://ccxt.com
|
|
6
|
+
Author: Igor Kroitor
|
|
7
|
+
Author-email: igor.kroitor@gmail.com
|
|
8
|
+
License: MIT
|
|
9
|
+
Project-URL: Homepage, https://ccxt.com
|
|
10
|
+
Project-URL: Documentation, https://github.com/ccxt/ccxt/wiki
|
|
11
|
+
Project-URL: Discord, https://discord.gg/ccxt
|
|
12
|
+
Project-URL: Twitter, https://twitter.com/ccxt_official
|
|
13
|
+
Project-URL: Funding, https://opencollective.com/ccxt
|
|
14
|
+
Keywords: hyperliquid,cryptocurrency,trading,library,api,rest,websocket,exchange,ccxt
|
|
15
|
+
Classifier: Development Status :: 4 - Beta
|
|
16
|
+
Classifier: Intended Audience :: Developers
|
|
17
|
+
Classifier: Intended Audience :: Financial and Insurance Industry
|
|
18
|
+
Classifier: Intended Audience :: Information Technology
|
|
19
|
+
Classifier: Topic :: Software Development :: Build Tools
|
|
20
|
+
Classifier: Topic :: Office/Business :: Financial :: Investment
|
|
21
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
22
|
+
Classifier: Programming Language :: Python :: 2
|
|
23
|
+
Classifier: Programming Language :: Python :: 2.7
|
|
24
|
+
Classifier: Programming Language :: Python :: 3
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
27
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
28
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
29
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
30
|
+
Classifier: Programming Language :: JavaScript
|
|
31
|
+
Classifier: Programming Language :: PHP
|
|
32
|
+
Classifier: Operating System :: OS Independent
|
|
33
|
+
Classifier: Environment :: Console
|
|
34
|
+
Description-Content-Type: text/markdown
|
|
35
|
+
License-File: LICENSE
|
|
36
|
+
Requires-Dist: setuptools>=60.9.0
|
|
37
|
+
Requires-Dist: certifi>=2018.1.18
|
|
38
|
+
Requires-Dist: requests>=2.18.4
|
|
39
|
+
Requires-Dist: cryptography>=2.6.1
|
|
40
|
+
Requires-Dist: typing_extensions>=4.4.0
|
|
41
|
+
Requires-Dist: aiohttp<=3.10.11; python_version >= "3.5.2"
|
|
42
|
+
Requires-Dist: aiodns>=1.1.1; python_version >= "3.5.2"
|
|
43
|
+
Requires-Dist: yarl>=1.7.2; python_version >= "3.5.2"
|
|
44
|
+
Provides-Extra: qa
|
|
45
|
+
Requires-Dist: ruff==0.0.292; extra == "qa"
|
|
46
|
+
Requires-Dist: tox>=4.8.0; extra == "qa"
|
|
47
|
+
Provides-Extra: type
|
|
48
|
+
Requires-Dist: mypy==1.6.1; extra == "type"
|
|
49
|
+
Dynamic: author
|
|
50
|
+
Dynamic: author-email
|
|
51
|
+
Dynamic: classifier
|
|
52
|
+
Dynamic: description
|
|
53
|
+
Dynamic: description-content-type
|
|
54
|
+
Dynamic: home-page
|
|
55
|
+
Dynamic: keywords
|
|
56
|
+
Dynamic: license
|
|
57
|
+
Dynamic: project-url
|
|
58
|
+
Dynamic: provides-extra
|
|
59
|
+
Dynamic: requires-dist
|
|
60
|
+
Dynamic: summary
|
|
61
|
+
|
|
62
|
+
# Hyperliquid
|
|
63
|
+
Python SDK (sync and async) for Hyperliquid with Rest and WS capabilities.
|
|
64
|
+
|
|
65
|
+
You can check Hyperliquid's docs here: [Docs](https://hyperliquid.gitbook.io/hyperliquid-docs)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
You can check the SDK docs here: [SDK](https://docs.ccxt.com/#/exchanges/hyperliquid)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
## Installation
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
pip install hyperliquid
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Usage
|
|
78
|
+
|
|
79
|
+
### Async
|
|
80
|
+
|
|
81
|
+
```Python
|
|
82
|
+
from hyperliquid import HyperliquidAsync
|
|
83
|
+
|
|
84
|
+
async def main():
|
|
85
|
+
instance = HyperliquidAsync({})
|
|
86
|
+
order = await instance.create_limit_order("BTC/USDC:USDC", "limit", "buy", 1, 100000)
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Sync
|
|
90
|
+
|
|
91
|
+
```Python
|
|
92
|
+
from hyperliquid import HyperliquidSync
|
|
93
|
+
|
|
94
|
+
def main():
|
|
95
|
+
instance = HyperliquidSync({})
|
|
96
|
+
order = instance.create_limit_order("BTC/USDC:USDC", "limit", "buy", 1, 100000)
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
#### Raw call
|
|
100
|
+
|
|
101
|
+
You can also construct your requests from scrach.
|
|
102
|
+
|
|
103
|
+
```Python
|
|
104
|
+
request = {
|
|
105
|
+
'type': 'candleSnapshot',
|
|
106
|
+
'req': {
|
|
107
|
+
'coin': coin,
|
|
108
|
+
'interval': tf,
|
|
109
|
+
'startTime': since,
|
|
110
|
+
'endTime': until,
|
|
111
|
+
},
|
|
112
|
+
}
|
|
113
|
+
response = await instance.public_post_info(request)
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
### Websockets
|
|
118
|
+
|
|
119
|
+
```Python
|
|
120
|
+
from hyperliquid import HyperliquidWs
|
|
121
|
+
|
|
122
|
+
async def main():
|
|
123
|
+
instance = HyperliquidWs({})
|
|
124
|
+
while True:
|
|
125
|
+
orders = await instance.watch_orders(symbol)
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Available methods
|
|
129
|
+
|
|
130
|
+
### REST Unified
|
|
131
|
+
|
|
132
|
+
- `create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={})`
|
|
133
|
+
- `create_orders_request(self, orders, params={})`
|
|
134
|
+
- `create_orders(self, orders: List[OrderRequest], params={})`
|
|
135
|
+
- `fetch_balance(self, params={})`
|
|
136
|
+
- `fetch_canceled_and_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
|
|
137
|
+
- `fetch_canceled_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
|
|
138
|
+
- `fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
|
|
139
|
+
- `fetch_currencies(self, params={})`
|
|
140
|
+
- `fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={})`
|
|
141
|
+
- `fetch_funding_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
|
|
142
|
+
- `fetch_funding_rate_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
|
|
143
|
+
- `fetch_funding_rates(self, symbols: Strings = None, params={})`
|
|
144
|
+
- `fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={})`
|
|
145
|
+
- `fetch_markets(self, params={})`
|
|
146
|
+
- `fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
|
|
147
|
+
- `fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={})`
|
|
148
|
+
- `fetch_open_interest(self, symbol: str, params={})`
|
|
149
|
+
- `fetch_open_interests(self, symbols: Strings = None, params={})`
|
|
150
|
+
- `fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
|
|
151
|
+
- `fetch_order_book(self, symbol: str, limit: Int = None, params={})`
|
|
152
|
+
- `fetch_order(self, id: str, symbol: Str = None, params={})`
|
|
153
|
+
- `fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
|
|
154
|
+
- `fetch_position(self, symbol: str, params={})`
|
|
155
|
+
- `fetch_positions(self, symbols: Strings = None, params={})`
|
|
156
|
+
- `fetch_spot_markets(self, params={})`
|
|
157
|
+
- `fetch_swap_markets(self, params={})`
|
|
158
|
+
- `fetch_tickers(self, symbols: Strings = None, params={})`
|
|
159
|
+
- `fetch_trades(self, symbol: Str, since: Int = None, limit: Int = None, params={})`
|
|
160
|
+
- `fetch_trading_fee(self, symbol: str, params={})`
|
|
161
|
+
- `fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={})`
|
|
162
|
+
- `action_hash(self, action, vaultAddress, nonce)`
|
|
163
|
+
- `add_margin(self, symbol: str, amount: float, params={})`
|
|
164
|
+
- `amount_to_precision(self, symbol, amount)`
|
|
165
|
+
- `build_usd_class_send_sig(self, message)`
|
|
166
|
+
- `build_usd_send_sig(self, message)`
|
|
167
|
+
- `build_withdraw_sig(self, message)`
|
|
168
|
+
- `calculate_price_precision(self, price: float, amountPrecision: float, maxDecimals: float)`
|
|
169
|
+
- `calculate_rate_limiter_cost(self, api, method, path, params, config={})`
|
|
170
|
+
- `cancel_all_orders_after(self, timeout: Int, params={})`
|
|
171
|
+
- `cancel_order(self, id: str, symbol: Str = None, params={})`
|
|
172
|
+
- `cancel_orders_for_symbols(self, orders: List[CancellationRequest], params={})`
|
|
173
|
+
- `cancel_orders(self, ids: List[str], symbol: Str = None, params={})`
|
|
174
|
+
- `coin_to_market_id(self, coin: Str)`
|
|
175
|
+
- `construct_phantom_agent(self, hash, isTestnet=True)`
|
|
176
|
+
- `describe(self)`
|
|
177
|
+
- `edit_order(self, id: str, symbol: str, type: str, side: str, amount: Num = None, price: Num = None, params={})`
|
|
178
|
+
- `edit_orders_request(self, orders, params={})`
|
|
179
|
+
- `edit_orders(self, orders: List[OrderRequest], params={})`
|
|
180
|
+
- `extract_type_from_delta(self, data=[])`
|
|
181
|
+
- `format_vault_address(self, address: Str = None)`
|
|
182
|
+
- `hash_message(self, message)`
|
|
183
|
+
- `modify_margin_helper(self, symbol: str, amount, type, params={})`
|
|
184
|
+
- `price_to_precision(self, symbol: str, price)`
|
|
185
|
+
- `reduce_margin(self, symbol: str, amount: float, params={})`
|
|
186
|
+
- `set_leverage(self, leverage: Int, symbol: Str = None, params={})`
|
|
187
|
+
- `set_margin_mode(self, marginMode: str, symbol: Str = None, params={})`
|
|
188
|
+
- `set_sandbox_mode(self, enabled)`
|
|
189
|
+
- `transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={})`
|
|
190
|
+
- `withdraw(self, code: str, amount: float, address: str, tag=None, params={})`
|
|
191
|
+
|
|
192
|
+
### REST Raw
|
|
193
|
+
|
|
194
|
+
- `public_post_info(request)`
|
|
195
|
+
- `private_post_exchange(request)`
|
|
196
|
+
|
|
197
|
+
### WS Unified
|
|
198
|
+
|
|
199
|
+
- `describe(self)`
|
|
200
|
+
- `create_orders_ws(self, orders: List[OrderRequest], params={})`
|
|
201
|
+
- `create_order_ws(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={})`
|
|
202
|
+
- `edit_order_ws(self, id: str, symbol: str, type: str, side: str, amount: Num = None, price: Num = None, params={})`
|
|
203
|
+
- `watch_order_book(self, symbol: str, limit: Int = None, params={})`
|
|
204
|
+
- `un_watch_order_book(self, symbol: str, params={})`
|
|
205
|
+
- `watch_ticker(self, symbol: str, params={})`
|
|
206
|
+
- `watch_tickers(self, symbols: Strings = None, params={})`
|
|
207
|
+
- `un_watch_tickers(self, symbols: Strings = None, params={})`
|
|
208
|
+
- `watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
|
|
209
|
+
- `watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={})`
|
|
210
|
+
- `un_watch_trades(self, symbol: str, params={})`
|
|
211
|
+
- `watch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={})`
|
|
212
|
+
- `un_watch_ohlcv(self, symbol: str, timeframe='1m', params={})`
|
|
213
|
+
- `watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
|
|
214
|
+
- `wrap_as_post_action(self, request: dict)`
|
|
215
|
+
|
|
216
|
+
## Contribution
|
|
217
|
+
- Give us a star :star:
|
|
218
|
+
- Fork and Clone! Awesome
|
|
219
|
+
- Select existing issues or create a new issue.
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
# Hyperliquid
|
|
2
|
+
Python SDK (sync and async) for Hyperliquid with Rest and WS capabilities.
|
|
3
|
+
|
|
4
|
+
You can check Hyperliquid's docs here: [Docs](https://hyperliquid.gitbook.io/hyperliquid-docs)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
You can check the SDK docs here: [SDK](https://docs.ccxt.com/#/exchanges/hyperliquid)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## Installation
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
pip install hyperliquid
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
### Async
|
|
19
|
+
|
|
20
|
+
```Python
|
|
21
|
+
from hyperliquid import HyperliquidAsync
|
|
22
|
+
|
|
23
|
+
async def main():
|
|
24
|
+
instance = HyperliquidAsync({})
|
|
25
|
+
order = await instance.create_limit_order("BTC/USDC:USDC", "limit", "buy", 1, 100000)
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Sync
|
|
29
|
+
|
|
30
|
+
```Python
|
|
31
|
+
from hyperliquid import HyperliquidSync
|
|
32
|
+
|
|
33
|
+
def main():
|
|
34
|
+
instance = HyperliquidSync({})
|
|
35
|
+
order = instance.create_limit_order("BTC/USDC:USDC", "limit", "buy", 1, 100000)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
#### Raw call
|
|
39
|
+
|
|
40
|
+
You can also construct your requests from scrach.
|
|
41
|
+
|
|
42
|
+
```Python
|
|
43
|
+
request = {
|
|
44
|
+
'type': 'candleSnapshot',
|
|
45
|
+
'req': {
|
|
46
|
+
'coin': coin,
|
|
47
|
+
'interval': tf,
|
|
48
|
+
'startTime': since,
|
|
49
|
+
'endTime': until,
|
|
50
|
+
},
|
|
51
|
+
}
|
|
52
|
+
response = await instance.public_post_info(request)
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### Websockets
|
|
57
|
+
|
|
58
|
+
```Python
|
|
59
|
+
from hyperliquid import HyperliquidWs
|
|
60
|
+
|
|
61
|
+
async def main():
|
|
62
|
+
instance = HyperliquidWs({})
|
|
63
|
+
while True:
|
|
64
|
+
orders = await instance.watch_orders(symbol)
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Available methods
|
|
68
|
+
|
|
69
|
+
### REST Unified
|
|
70
|
+
|
|
71
|
+
- `create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={})`
|
|
72
|
+
- `create_orders_request(self, orders, params={})`
|
|
73
|
+
- `create_orders(self, orders: List[OrderRequest], params={})`
|
|
74
|
+
- `fetch_balance(self, params={})`
|
|
75
|
+
- `fetch_canceled_and_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
|
|
76
|
+
- `fetch_canceled_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
|
|
77
|
+
- `fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
|
|
78
|
+
- `fetch_currencies(self, params={})`
|
|
79
|
+
- `fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={})`
|
|
80
|
+
- `fetch_funding_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
|
|
81
|
+
- `fetch_funding_rate_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
|
|
82
|
+
- `fetch_funding_rates(self, symbols: Strings = None, params={})`
|
|
83
|
+
- `fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={})`
|
|
84
|
+
- `fetch_markets(self, params={})`
|
|
85
|
+
- `fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
|
|
86
|
+
- `fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={})`
|
|
87
|
+
- `fetch_open_interest(self, symbol: str, params={})`
|
|
88
|
+
- `fetch_open_interests(self, symbols: Strings = None, params={})`
|
|
89
|
+
- `fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
|
|
90
|
+
- `fetch_order_book(self, symbol: str, limit: Int = None, params={})`
|
|
91
|
+
- `fetch_order(self, id: str, symbol: Str = None, params={})`
|
|
92
|
+
- `fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
|
|
93
|
+
- `fetch_position(self, symbol: str, params={})`
|
|
94
|
+
- `fetch_positions(self, symbols: Strings = None, params={})`
|
|
95
|
+
- `fetch_spot_markets(self, params={})`
|
|
96
|
+
- `fetch_swap_markets(self, params={})`
|
|
97
|
+
- `fetch_tickers(self, symbols: Strings = None, params={})`
|
|
98
|
+
- `fetch_trades(self, symbol: Str, since: Int = None, limit: Int = None, params={})`
|
|
99
|
+
- `fetch_trading_fee(self, symbol: str, params={})`
|
|
100
|
+
- `fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={})`
|
|
101
|
+
- `action_hash(self, action, vaultAddress, nonce)`
|
|
102
|
+
- `add_margin(self, symbol: str, amount: float, params={})`
|
|
103
|
+
- `amount_to_precision(self, symbol, amount)`
|
|
104
|
+
- `build_usd_class_send_sig(self, message)`
|
|
105
|
+
- `build_usd_send_sig(self, message)`
|
|
106
|
+
- `build_withdraw_sig(self, message)`
|
|
107
|
+
- `calculate_price_precision(self, price: float, amountPrecision: float, maxDecimals: float)`
|
|
108
|
+
- `calculate_rate_limiter_cost(self, api, method, path, params, config={})`
|
|
109
|
+
- `cancel_all_orders_after(self, timeout: Int, params={})`
|
|
110
|
+
- `cancel_order(self, id: str, symbol: Str = None, params={})`
|
|
111
|
+
- `cancel_orders_for_symbols(self, orders: List[CancellationRequest], params={})`
|
|
112
|
+
- `cancel_orders(self, ids: List[str], symbol: Str = None, params={})`
|
|
113
|
+
- `coin_to_market_id(self, coin: Str)`
|
|
114
|
+
- `construct_phantom_agent(self, hash, isTestnet=True)`
|
|
115
|
+
- `describe(self)`
|
|
116
|
+
- `edit_order(self, id: str, symbol: str, type: str, side: str, amount: Num = None, price: Num = None, params={})`
|
|
117
|
+
- `edit_orders_request(self, orders, params={})`
|
|
118
|
+
- `edit_orders(self, orders: List[OrderRequest], params={})`
|
|
119
|
+
- `extract_type_from_delta(self, data=[])`
|
|
120
|
+
- `format_vault_address(self, address: Str = None)`
|
|
121
|
+
- `hash_message(self, message)`
|
|
122
|
+
- `modify_margin_helper(self, symbol: str, amount, type, params={})`
|
|
123
|
+
- `price_to_precision(self, symbol: str, price)`
|
|
124
|
+
- `reduce_margin(self, symbol: str, amount: float, params={})`
|
|
125
|
+
- `set_leverage(self, leverage: Int, symbol: Str = None, params={})`
|
|
126
|
+
- `set_margin_mode(self, marginMode: str, symbol: Str = None, params={})`
|
|
127
|
+
- `set_sandbox_mode(self, enabled)`
|
|
128
|
+
- `transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={})`
|
|
129
|
+
- `withdraw(self, code: str, amount: float, address: str, tag=None, params={})`
|
|
130
|
+
|
|
131
|
+
### REST Raw
|
|
132
|
+
|
|
133
|
+
- `public_post_info(request)`
|
|
134
|
+
- `private_post_exchange(request)`
|
|
135
|
+
|
|
136
|
+
### WS Unified
|
|
137
|
+
|
|
138
|
+
- `describe(self)`
|
|
139
|
+
- `create_orders_ws(self, orders: List[OrderRequest], params={})`
|
|
140
|
+
- `create_order_ws(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={})`
|
|
141
|
+
- `edit_order_ws(self, id: str, symbol: str, type: str, side: str, amount: Num = None, price: Num = None, params={})`
|
|
142
|
+
- `watch_order_book(self, symbol: str, limit: Int = None, params={})`
|
|
143
|
+
- `un_watch_order_book(self, symbol: str, params={})`
|
|
144
|
+
- `watch_ticker(self, symbol: str, params={})`
|
|
145
|
+
- `watch_tickers(self, symbols: Strings = None, params={})`
|
|
146
|
+
- `un_watch_tickers(self, symbols: Strings = None, params={})`
|
|
147
|
+
- `watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
|
|
148
|
+
- `watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={})`
|
|
149
|
+
- `un_watch_trades(self, symbol: str, params={})`
|
|
150
|
+
- `watch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={})`
|
|
151
|
+
- `un_watch_ohlcv(self, symbol: str, timeframe='1m', params={})`
|
|
152
|
+
- `watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
|
|
153
|
+
- `wrap_as_post_action(self, request: dict)`
|
|
154
|
+
|
|
155
|
+
## Contribution
|
|
156
|
+
- Give us a star :star:
|
|
157
|
+
- Fork and Clone! Awesome
|
|
158
|
+
- Select existing issues or create a new issue.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
import hyperliquid.ccxt as ccxt_module
|
|
3
|
+
sys.modules['ccxt'] = ccxt_module
|
|
4
|
+
|
|
5
|
+
from hyperliquid.ccxt import hyperliquid as HyperliquidSync
|
|
6
|
+
from hyperliquid.ccxt.async_support.hyperliquid import hyperliquid as HyperliquidAsync
|
|
7
|
+
from hyperliquid.ccxt.pro.hyperliquid import hyperliquid as HyperliquidWs
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
import hyperliquid.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.66'
|
|
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.hyperliquid import hyperliquid # noqa: F401
|
|
91
|
+
|
|
92
|
+
exchanges = [ 'hyperliquid',]
|
|
93
|
+
|
|
94
|
+
base = [
|
|
95
|
+
'Exchange',
|
|
96
|
+
'Precise',
|
|
97
|
+
'exchanges',
|
|
98
|
+
'decimal_to_precision',
|
|
99
|
+
]
|
|
100
|
+
|
|
101
|
+
__all__ = base + errors.__all__ + exchanges
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
from ccxt.base.types import Entry
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class ImplicitAPI:
|
|
5
|
+
public_post_info = publicPostInfo = Entry('info', 'public', 'POST', {'cost': 20, 'byType': {'l2Book': 2, 'allMids': 2, 'clearinghouseState': 2, 'orderStatus': 2, 'spotClearinghouseState': 2, 'exchangeStatus': 2}})
|
|
6
|
+
private_post_exchange = privatePostExchange = Entry('exchange', 'private', 'POST', {'cost': 1})
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
import hyperliquid.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.66'
|
|
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.hyperliquid import hyperliquid # noqa: F401
|
|
71
|
+
|
|
72
|
+
exchanges = [ 'hyperliquid',]
|
|
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
|