feat: Add Decibel Perpetual Connector#377
Open
flowerjunjie wants to merge 1812 commits intoCoinAlpha:masterfrom
Open
feat: Add Decibel Perpetual Connector#377flowerjunjie wants to merge 1812 commits intoCoinAlpha:masterfrom
flowerjunjie wants to merge 1812 commits intoCoinAlpha:masterfrom
Conversation
…requests-plain-text (fix) Handle plain text responses in RESTRequest.json()
Instead of querying wallet balance (which may be stale after position close), use the actual amounts returned from the closed position for sizing new rebalance positions. This prevents order failures when impermanent loss reduces the available balance below total_amount_quote. - Capture base/quote amounts + fees from terminated executor - For BUY rebalance: clamp quote to closed position's quote + quote_fee - For SELL rebalance: clamp base to closed position's base + base_fee - Clear cached amounts after use Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Update tests to use auto_close_above_range_seconds and auto_close_below_range_seconds instead of the removed auto_close_out_of_range_seconds field. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The test was mocking get_position_info to return None, but since the executor has a position_address, control_task calls _update_position_info which requires a proper position object to set _current_price. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
feat / add fix to exit command
…_sdk_v1_13 feat/upgrade_injective_sdk_v1_13
…2-base feat: LP Executor and Controller for StrategyV2
…ca-connector feat/ Pacifica Finance connector implementation
Change LPExecutorConfig to use direct connector_name and trading_pair fields instead of nested market: ConnectorPair, matching the pattern used by PositionExecutorConfig, GridExecutorConfig, DCAExecutorConfig, and other executors. This simplifies the API and removes special-case handling needed for LP executor in services that extract connector/trading_pair from configs. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Shorten long lines to comply with stricter linting rules. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…uid-update Update hyperliquid perpetual constants and refactor DEX market handling due to Hyperliquid api update for all hip-3 perp
…2-base feat / LP executor strategy v2 with config alignment
sync / Client development -> staging 2.13.0
feat/ update controller config
sync/ development to staging with 8090
fix/ Update setup.py date
sync / Client staging -> master for Hummingbot version 2.13.0
Implements a full-featured connector for Decibel perpetual derivatives exchange. ## Features ### Core Components - Authentication (HMAC-SHA256) - REST API integration - WebSocket support - Order book management - User data streaming ### Trading Capabilities - Limit and market orders - Position management (one-way and hedge modes) - Real-time order book updates - Account balance tracking ## Files Added - decibel_perpetual_auth.py - decibel_perpetual_constants.py - decibel_perpetual_derivative.py - decibel_perpetual_web_utils.py - decibel_perpetual_api_order_book_data_source.py - decibel_perpetual_api_user_stream_data_source.py - Configuration templates and documentation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements a full-featured connector for Decibel perpetual derivatives exchange, enabling Hummingbot users to trade on Decibel.
Features
Core Components
Trading Capabilities
Configuration & Documentation
Files Added
decibel_perpetual_auth.py- API authentication and request signingdecibel_perpetual_constants.py- Exchange constants, endpoints, and rate limitsdecibel_perpetual_derivative.py- Main connector implementation (1,080 lines)decibel_perpetual_web_utils.py- REST/WS utilities and helpersdecibel_perpetual_api_order_book_data_source.py- Order book data sourcedecibel_perpetual_api_user_stream_data_source.py- User data stream sourceconf/connectors/decibel_perpetual.yml- Configuration templateDECIBEL_CONNECTOR_README.md- User documentationTechnical Implementation
PerpetualDerivativePyBaseclassCode Statistics
Testing
The connector is ready for integration testing with:
Bounty
This implementation is submitted for the Decibel Perpetual Connector bounty (3,000 USDC).
Co-authored-by: Atlas bounty-hunter@hummingbot.org