Skip to content

Add SwapExecutor support and use it for swap execution#20

Open
fengtality wants to merge 1 commit intomainfrom
feature/swap-executor
Open

Add SwapExecutor support and use it for swap execution#20
fengtality wants to merge 1 commit intomainfrom
feature/swap-executor

Conversation

@fengtality
Copy link
Contributor

Summary

  • Add swap_executor guide with full documentation
  • Update manage_gateway_swaps execute action to use swap_executor instead of direct gateway calls
  • Add swap_executor to executor types and preferences template
  • Add account_name parameter to GatewaySwapRequest schema

Key Changes

Gateway Swap Execute → SwapExecutor

The execute action now creates a swap_executor instead of calling the gateway swap endpoint directly. This provides:

  • Retry logic: Automatic retries for transaction timeouts and price movement
  • Tracking: Executor shows in executor list with status, tx_hash, executed_price
  • Consistency: Same pattern as other executor types

Connector Format

Updated documentation to use jupiter/router format for Gateway router connectors.

Dependencies

Test plan

  • Execute swap via MCP tool
  • Verify swap_executor is created
  • Verify custom_info contains tx_hash, executed_price

🤖 Generated with Claude Code

- Add swap_executor guide with documentation
- Update gateway_swap execute action to use swap_executor instead of
  direct gateway calls (provides retry logic and tracking)
- Add swap_executor to executor types and preferences
- Add account_name parameter to GatewaySwapRequest schema
- Update connector format documentation (jupiter/router)

Requires: hummingbot/hummingbot#8117, hummingbot/hummingbot-api#136

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant