Qubx 3.17.2.dev1__tar.gz → 3.17.3.dev1__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.
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/PKG-INFO +1 -1
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/_version.py +2 -2
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/connector.py +61 -19
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/rate_limits.py +9 -2
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/.gitignore +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/LICENSE +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/README.md +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/pyproject.toml +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/scripts/build.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/_nb_magic.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/backtester/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/backtester/connector.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/backtester/data.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/backtester/iteratedstream.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/backtester/management.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/backtester/ome.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/backtester/optimization.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/backtester/runner.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/backtester/sentinels.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/backtester/simulated_data.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/backtester/simulated_exchange.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/backtester/simulator.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/backtester/transfers.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/backtester/utils.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/cli/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/cli/commands.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/cli/deploy.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/cli/misc.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/cli/release.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/cli/resolver.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/cli/s3.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/cli/theme.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/cli/tui.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/cli/user_config.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/config.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/adapters/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/adapters/polling_adapter.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/connection_manager.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/data.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/exceptions.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/exchange_manager.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/exchanges/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/exchanges/_two_stream.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/exchanges/base.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/exchanges/binance/connector.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/exchanges/binance/exchange.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/exchanges/bitfinex/bitfinex.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/exchanges/bitfinex/connector.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/exchanges/bybit/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/exchanges/bybit/bybit.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/exchanges/bybit/connector.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/exchanges/gateio/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/exchanges/gateio/gateio.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/exchanges/hyperliquid/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/exchanges/hyperliquid/hyperliquid.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/exchanges/kraken/kraken.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/exchanges/okx/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/exchanges/okx/connector.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/exchanges/okx/okx.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/factory.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/handlers/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/handlers/base.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/handlers/factory.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/handlers/funding_rate.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/handlers/liquidation.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/handlers/ohlc.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/handlers/open_interest.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/handlers/orderbook.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/handlers/quote.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/handlers/trade.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/plugin.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/subscription_config.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/subscription_manager.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/subscription_orchestrator.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/utils.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/warmup_service.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/plugin.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/registry.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/tardis/data.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/tardis/plugin.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/tardis/utils.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/control/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/control/builtin.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/control/decorator.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/control/executor.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/control/interfaces.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/control/server.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/control/types.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/account_manager/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/account_manager/config.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/account_manager/diffs.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/account_manager/manager.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/account_manager/reconciler.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/account_manager/reducer.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/account_manager/state.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/account_manager/state_machine.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/basics.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/boot.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/connector.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/context.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/detectors/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/detectors/delisting.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/detectors/stale.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/errors.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/events.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/exceptions.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/fit_context.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/fit_executor.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/helpers.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/initializer.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/instrument_service.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/interfaces.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/loggers.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/lookups.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/metrics.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/mixins/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/mixins/instrument_service.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/mixins/market.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/mixins/processing.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/mixins/subscription.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/mixins/trading.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/mixins/universe.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/mixins/utils.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/series.pxd +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/series.pyi +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/series.pyx +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/state_snapshot.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/status.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/subscription_watchdog.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/utils.pyi +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/core/utils.pyx +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/data/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/data/cache.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/data/containers.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/data/guards.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/data/registry.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/data/storage.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/data/storages/ccxt.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/data/storages/csv.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/data/storages/handy.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/data/storages/multi.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/data/storages/questdb.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/data/storages/stub.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/data/storages/utils.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/data/transformers.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/emitters/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/emitters/base.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/emitters/composite.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/emitters/csv.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/emitters/indicator.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/emitters/inmemory.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/emitters/prometheus.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/emitters/questdb.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/exporters/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/exporters/composite.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/exporters/formatters/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/exporters/formatters/base.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/exporters/formatters/incremental.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/exporters/formatters/slack.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/exporters/formatters/target_position.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/exporters/redis_streams.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/exporters/slack.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/gathering/simplest.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/health/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/health/base.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/health/dummy.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/health/status.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/loggers/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/loggers/csv.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/loggers/factory.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/loggers/inmemory.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/loggers/mongo.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/loggers/postgres.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/notifications/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/notifications/composite.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/notifications/slack.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/notifications/throttler.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/pandaz/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/pandaz/stats.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/pandaz/ta.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/pandaz/utils.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/plugins/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/plugins/loader.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/rate_limiting/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/rate_limiting/backend.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/rate_limiting/config.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/rate_limiting/engine.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/rate_limiting/ip_resolver.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/rate_limiting/manager.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/rate_limiting/pools.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/rate_limiting/redis_backend.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/rate_limiting/resilient.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/resources/_build.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/resources/crypto-fees.ini +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/resources/instruments/hyperliquid-spot.json +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/resources/instruments/hyperliquid.f-perpetual.json +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/resources/instruments/symbols-binance-spot.json +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/resources/instruments/symbols-binance.cm-future.json +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/resources/instruments/symbols-binance.cm-perpetual.json +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/resources/instruments/symbols-binance.um-future.json +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/resources/instruments/symbols-binance.um-perpetual.json +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/resources/instruments/symbols-bitfinex.f-perpetual.json +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/resources/instruments/symbols-kraken-spot.json +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/resources/instruments/symbols-kraken.f-future.json +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/resources/instruments/symbols-kraken.f-perpetual.json +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/restarts/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/restarts/state_resolvers.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/restarts/time_finders.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/restorers/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/restorers/balance.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/restorers/factory.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/restorers/interfaces.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/restorers/position.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/restorers/signal.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/restorers/state.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/restorers/utils.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/state/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/state/dummy.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/state/redis.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/state/runtime_info.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/state/safe.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/ta/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/ta/indicators.pxd +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/ta/indicators.pyi +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/ta/indicators.pyx +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/base.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/project/accounts.toml.j2 +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/project/config.yml.j2 +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/project/jlive.sh.j2 +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/project/jpaper.sh.j2 +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/project/pyproject.toml.j2 +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/project/src/{{ strategy_name }}/__init__.py.j2 +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/project/src/{{ strategy_name }}/strategy.py.j2 +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/project/template.yml +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/repo/.claude/skills/qubx-cli/SKILL.md +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/repo/.claude/skills/qubx-indicators/SKILL.md +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/repo/.claude/skills/simulation-explorer/SKILL.md +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/repo/.claude/skills/strategy-release/SKILL.md +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/repo/.github/workflows/ci.yml.j2 +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/repo/.gitignore.j2 +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/repo/.python-version +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/repo/.vscode/launch.json +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/repo/.vscode/settings.json +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/repo/.vscode/tasks.json +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/repo/CLAUDE.md.j2 +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/repo/README.md.j2 +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/repo/configs/.gitkeep +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/repo/justfile.j2 +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/repo/pyproject.toml.j2 +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/repo/research/.gitkeep +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/repo/src/{{ strategy_name }}/__init__.py.j2 +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/repo/src/{{ strategy_name }}/cli.py.j2 +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/repo/src/{{ strategy_name }}/strategy.py.j2 +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/repo/template.yml +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/repo/tests/test_strategy.py.j2 +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/simple/__init__.py.j2 +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/simple/accounts.toml.j2 +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/simple/config.yml.j2 +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/simple/jlive.sh.j2 +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/simple/jpaper.sh.j2 +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/simple/strategy.py.j2 +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/templates/simple/template.yml +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/trackers/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/trackers/advanced.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/trackers/composite.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/trackers/rebalancers.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/trackers/riskctrl.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/trackers/sizers.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/_pyxreloader.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/charting/lookinglass.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/charting/mpl_helpers.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/charting/orderbook.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/clock.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/collections.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/hft/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/hft/numba_utils.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/hft/orderbook.pyi +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/hft/orderbook.pyx +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/marketdata/binance.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/marketdata/ccxt.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/marketdata/dukas.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/misc.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/nonce.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/numbers_utils.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/orderbook.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/plotting/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/plotting/dashboard.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/plotting/data.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/plotting/interfaces.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/plotting/renderers/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/plotting/renderers/plotly.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/questdb.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/rate_limiter.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/results.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/ringbuffer.pxd +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/ringbuffer.pyi +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/ringbuffer.pyx +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/runner/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/runner/_jupyter_runner.pyt +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/runner/accounts.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/runner/configs.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/runner/factory.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/runner/kernel_service.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/runner/runner.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/runner/textual/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/runner/textual/app.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/runner/textual/handlers.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/runner/textual/init_code.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/runner/textual/kernel.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/runner/textual/styles.tcss +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/runner/textual/widgets/__init__.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/runner/textual/widgets/account_summary.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/runner/textual/widgets/command_input.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/runner/textual/widgets/debug_log.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/runner/textual/widgets/log_filter.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/runner/textual/widgets/orders_table.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/runner/textual/widgets/positions_table.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/runner/textual/widgets/quotes_table.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/runner/textual/widgets/repl_output.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/s3.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/slack.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/threading.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/throttler.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/time.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/utils/websocket_manager.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/tests/strategies/macd_crossover/src/macd_crossover/indicators/macd.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/tests/strategies/macd_crossover/src/macd_crossover/models/macd_crossover.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/tests/strategies/macd_crossover/src/macd_crossover/models/utils.py +0 -0
- {qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/tests/strategies/obi_trader/src/obi_trader/models/obi_trader.py +0 -0
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '3.17.
|
|
22
|
-
__version_tuple__ = version_tuple = (3, 17,
|
|
21
|
+
__version__ = version = '3.17.3.dev1'
|
|
22
|
+
__version_tuple__ = version_tuple = (3, 17, 3, 'dev1')
|
|
23
23
|
|
|
24
24
|
__commit_id__ = commit_id = None
|
|
@@ -33,7 +33,7 @@ import time
|
|
|
33
33
|
import uuid
|
|
34
34
|
from asyncio.exceptions import CancelledError
|
|
35
35
|
from collections.abc import Coroutine
|
|
36
|
-
from dataclasses import dataclass
|
|
36
|
+
from dataclasses import dataclass, replace
|
|
37
37
|
from typing import Any, Literal
|
|
38
38
|
|
|
39
39
|
import ccxt
|
|
@@ -286,17 +286,21 @@ class CcxtConnector(ChannelEmitter):
|
|
|
286
286
|
if rate_limiter is not None:
|
|
287
287
|
await rate_limiter.acquire(endpoint)
|
|
288
288
|
|
|
289
|
-
def _report_order_limit_hit(self, error: Exception) -> None:
|
|
290
|
-
"""Close
|
|
289
|
+
def _report_order_limit_hit(self, error: Exception, pool_name: str = "orders") -> None:
|
|
290
|
+
"""Close ``pool_name``'s gate when the venue itself reports a budget breach.
|
|
291
291
|
|
|
292
292
|
A no-op for every other error. Without it the pool is proactive-model-only, so it never
|
|
293
293
|
sees the budget another actor on the same account (manual trading, a second bot) spends.
|
|
294
|
+
|
|
295
|
+
``pool_name`` must be the one the refused endpoint is billed against — closing ``orders``
|
|
296
|
+
for a set_leverage breach would stop trading over a budget orders never spent. An
|
|
297
|
+
undefined name is a no-op in the limiter.
|
|
294
298
|
"""
|
|
295
299
|
rate_limiter = self._em.rate_limiter
|
|
296
300
|
if rate_limiter is None or not isinstance(error, _ORDER_RATE_LIMIT_ERRORS):
|
|
297
301
|
return
|
|
298
302
|
# pool_name, never endpoint= — the latter closes every pool in the endpoint's cost list
|
|
299
|
-
rate_limiter.report_limit_hit(pool_name=
|
|
303
|
+
rate_limiter.report_limit_hit(pool_name=pool_name, reason=f"venue rate limit on {pool_name}: {error}")
|
|
300
304
|
|
|
301
305
|
# ------------------------------------------------------------------ #
|
|
302
306
|
# Write side — submit
|
|
@@ -862,24 +866,46 @@ class CcxtConnector(ChannelEmitter):
|
|
|
862
866
|
)
|
|
863
867
|
self._spawn(self._do_set_leverage(instrument, symbol, wanted))
|
|
864
868
|
|
|
869
|
+
def _report_leverage_failure(self, instrument: Instrument, leverage: int, error: Exception) -> None:
|
|
870
|
+
"""The caller of set_instrument_leverage is long gone, so the verdict rides the channel."""
|
|
871
|
+
logger.error(f"[{self.exchange_name}] Failed to set leverage {leverage} for {instrument.symbol}: {error}")
|
|
872
|
+
self.channel.send(
|
|
873
|
+
create_error_event(
|
|
874
|
+
VenueOperationError(
|
|
875
|
+
timestamp=self._time.time(),
|
|
876
|
+
message=f"set leverage {leverage} for {instrument.symbol}",
|
|
877
|
+
level=ErrorLevel.MEDIUM,
|
|
878
|
+
error=error,
|
|
879
|
+
operation="set_instrument_leverage",
|
|
880
|
+
instrument=instrument,
|
|
881
|
+
)
|
|
882
|
+
)
|
|
883
|
+
)
|
|
884
|
+
|
|
865
885
|
async def _do_set_leverage(self, instrument: Instrument, symbol: str, leverage: int) -> None:
|
|
866
886
|
try:
|
|
867
887
|
await self._acquire_endpoint_budget("set_leverage")
|
|
868
888
|
await self._em.exchange.set_leverage(leverage, symbol)
|
|
889
|
+
except _ORDER_RATE_LIMIT_ERRORS as e:
|
|
890
|
+
# The write is fire-and-forget, so nothing re-sends a leverage that never landed.
|
|
891
|
+
# Retry once, but only where the gate paces it — a venue with no `leverage` pool would
|
|
892
|
+
# re-send instantly, and binance escalates bans for requests sent after a 429.
|
|
893
|
+
self._report_order_limit_hit(e, pool_name="leverage")
|
|
894
|
+
limiter = self._em.rate_limiter
|
|
895
|
+
if limiter is None or not limiter.is_gate_closed("leverage"):
|
|
896
|
+
self._report_leverage_failure(instrument, leverage, e)
|
|
897
|
+
return
|
|
898
|
+
logger.warning(f"[{self.exchange_name}] leverage {leverage} for {instrument.symbol} rate limited; retrying")
|
|
899
|
+
try:
|
|
900
|
+
await self._acquire_endpoint_budget("set_leverage")
|
|
901
|
+
await self._em.exchange.set_leverage(leverage, symbol)
|
|
902
|
+
except Exception as retry_error: # noqa: BLE001 — report the retry's verdict, not the first
|
|
903
|
+
# the gate reopened while we waited; a second refusal must re-close it
|
|
904
|
+
self._report_order_limit_hit(retry_error, pool_name="leverage")
|
|
905
|
+
self._report_leverage_failure(instrument, leverage, retry_error)
|
|
906
|
+
return
|
|
869
907
|
except Exception as e: # noqa: BLE001 — the caller is long gone; report on the channel
|
|
870
|
-
|
|
871
|
-
self.channel.send(
|
|
872
|
-
create_error_event(
|
|
873
|
-
VenueOperationError(
|
|
874
|
-
timestamp=self._time.time(),
|
|
875
|
-
message=f"set leverage {leverage} for {instrument.symbol}",
|
|
876
|
-
level=ErrorLevel.MEDIUM,
|
|
877
|
-
error=e,
|
|
878
|
-
operation="set_instrument_leverage",
|
|
879
|
-
instrument=instrument,
|
|
880
|
-
)
|
|
881
|
-
)
|
|
882
|
-
)
|
|
908
|
+
self._report_leverage_failure(instrument, leverage, e)
|
|
883
909
|
return
|
|
884
910
|
# - adopt what we just set, so the next call for the same value is skipped without
|
|
885
911
|
# waiting for the poller; the poller corrects it if the venue disagrees
|
|
@@ -950,6 +976,7 @@ class CcxtConnector(ChannelEmitter):
|
|
|
950
976
|
configured: dict[str, float] = {}
|
|
951
977
|
notionals: dict[str, float] = {}
|
|
952
978
|
maxima: dict[str, float] = {}
|
|
979
|
+
configured_read = True
|
|
953
980
|
# - annotated locals: ccxt's BASE Exchange declares both methods as an unconditional
|
|
954
981
|
# `raise NotSupported`, so their inferred return type is NoReturn. Only the venue
|
|
955
982
|
# subclasses return dicts, and `ex` is typed as the base. A venue without the
|
|
@@ -963,6 +990,7 @@ class CcxtConnector(ChannelEmitter):
|
|
|
963
990
|
if max_notional is not None:
|
|
964
991
|
notionals[symbol] = max_notional
|
|
965
992
|
except Exception as e: # noqa: BLE001
|
|
993
|
+
configured_read = False
|
|
966
994
|
logger.debug(f"[{self.exchange_name}] configured-leverage read failed: {type(e).__name__}: {e}")
|
|
967
995
|
try:
|
|
968
996
|
tiers_by_symbol: dict[str, Any] = await ex.fetch_leverage_tiers()
|
|
@@ -995,8 +1023,7 @@ class CcxtConnector(ChannelEmitter):
|
|
|
995
1023
|
VenueSettingsUpdate(instrument, leverage=float(value), max_notional=notionals.get(symbol))
|
|
996
1024
|
)
|
|
997
1025
|
)
|
|
998
|
-
|
|
999
|
-
self._leverage_cache = {
|
|
1026
|
+
rebuilt = {
|
|
1000
1027
|
symbol: _LeverageInfo(
|
|
1001
1028
|
configured=configured.get(symbol),
|
|
1002
1029
|
maximum=maxima.get(symbol),
|
|
@@ -1004,6 +1031,21 @@ class CcxtConnector(ChannelEmitter):
|
|
|
1004
1031
|
)
|
|
1005
1032
|
for symbol in configured.keys() | maxima.keys() | notionals.keys()
|
|
1006
1033
|
}
|
|
1034
|
+
if configured_read:
|
|
1035
|
+
# rebuilt wholesale, so a symbol the venue stopped reporting leaves the cache with it
|
|
1036
|
+
self._leverage_cache = rebuilt
|
|
1037
|
+
else:
|
|
1038
|
+
# The `configured` read failed (bybit has no fetch_leverages), so this sweep cannot
|
|
1039
|
+
# speak for it: a wholesale rebuild would erase what the write path adopted and evict
|
|
1040
|
+
# every symbol the tier read left out — on bybit, everything past its pagination cap.
|
|
1041
|
+
# max_notional rides the same failed read, so it is preserved too.
|
|
1042
|
+
for symbol, info in rebuilt.items():
|
|
1043
|
+
held = self._leverage_cache.get(symbol)
|
|
1044
|
+
self._leverage_cache[symbol] = (
|
|
1045
|
+
replace(info, configured=held.configured, max_notional=held.max_notional)
|
|
1046
|
+
if held is not None
|
|
1047
|
+
else info
|
|
1048
|
+
)
|
|
1007
1049
|
logger.info(
|
|
1008
1050
|
f"[{self.exchange_name}] leverage cache refreshed: {len(configured)} configured, "
|
|
1009
1051
|
f"{len(maxima)} maxima, {len(notionals)} notional caps"
|
|
@@ -161,8 +161,11 @@ def _okx_config() -> ExchangeRateLimitConfig:
|
|
|
161
161
|
pools={
|
|
162
162
|
"ccxt_rest": PoolConfig("ccxt_rest", "ip", 4, 8.0, cooldown=15.0),
|
|
163
163
|
"orders": PoolConfig("orders", "account", 60, 30.0, cooldown=10.0),
|
|
164
|
+
# set-leverage is 20 req/2s per user id, its own budget. ccxt_rest already paced it;
|
|
165
|
+
# this pool exists so a refusal closes its own gate, not the order gate.
|
|
166
|
+
"leverage": PoolConfig("leverage", "account", 10, 5.0, cooldown=10.0),
|
|
164
167
|
},
|
|
165
|
-
endpoint_map=_default_endpoint_costs(),
|
|
168
|
+
endpoint_map={**_default_endpoint_costs(), "set_leverage": EndpointCosts([("leverage", 1)])},
|
|
166
169
|
default_costs=EndpointCosts([("ccxt_rest", 1)]),
|
|
167
170
|
)
|
|
168
171
|
|
|
@@ -193,8 +196,12 @@ def _bybit_config() -> ExchangeRateLimitConfig:
|
|
|
193
196
|
pools={
|
|
194
197
|
"ccxt_rest": PoolConfig("ccxt_rest", "ip", 100, 100.0, cooldown=15.0),
|
|
195
198
|
"orders": PoolConfig("orders", "account", 10, 10.0, cooldown=10.0),
|
|
199
|
+
# set-leverage is its own 10 req/s per-UID bucket, not part of the order group —
|
|
200
|
+
# pooling it with orders would let a boot-time leverage burst delay real orders.
|
|
201
|
+
# capacity + 1*refill <= 10 bounds the worst rolling second.
|
|
202
|
+
"leverage": PoolConfig("leverage", "account", 5, 5.0, cooldown=10.0),
|
|
196
203
|
},
|
|
197
|
-
endpoint_map=_default_endpoint_costs(),
|
|
204
|
+
endpoint_map={**_default_endpoint_costs(), "set_leverage": EndpointCosts([("leverage", 1)])},
|
|
198
205
|
default_costs=EndpointCosts([("ccxt_rest", 1)]),
|
|
199
206
|
)
|
|
200
207
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/exchanges/binance/connector.py
RENAMED
|
File without changes
|
{qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/exchanges/binance/exchange.py
RENAMED
|
File without changes
|
{qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/exchanges/bitfinex/bitfinex.py
RENAMED
|
File without changes
|
{qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/exchanges/bitfinex/connector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/exchanges/hyperliquid/__init__.py
RENAMED
|
File without changes
|
{qubx-3.17.2.dev1 → qubx-3.17.3.dev1}/src/qubx/connectors/ccxt/exchanges/hyperliquid/hyperliquid.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|