Skip to content

Sample Strategies

Note

This documentation is a work in progress and will be updated frequently as the Gateway connectors and strategies evolve. The examples shown here may change as new features are added or existing ones are modified.

This page provides examples of Hummingbot strategies and scripts that utilize the Gateway New connectors.

Swap schema

The Swap schema defines standardized endpoints for basic token swapping functionality. Connectors that implement this schema allow Hummingbot to query prices and execute trades on DEXs. The following strategies can utilize connectors that implement the Swap schema:

Strategy Strategy Type Notes
AMM Price Example Script Fetches current price from a Gateway connector
AMM Trade Example Script Triggers a swap execution when prices reach a certain level
AMM Data Feed Example Script Creates a price feed using a Gateway connector
Arbitrage Controller V2 Creates ArbitrageExecutors between two markets
AMM Arbitrage V1
Cross Exchange Market Making V1

AMM schema

The AMM schema defines standardized endpoints for managing liquidity positions on Automated Market Maker (AMM) DEXs like Raydium Standard and Uniswap V2 pools. Sample strategies demonstrating AMM functionality will be available soon.

CLMM schema

The CLMM schema defines standardized endpoints for managing concentrated liquidity positions on DEXs like Raydium Concentrated and Uniswap V3 pools. The following strategies can utilize connectors that implement the CLMM schema:

Strategy Strategy Type Notes
CLMM Manage Position Script Demonstrates how to manage concentrated liquidity positions