working version, before optimalization
This commit is contained in:
@ -8,7 +8,9 @@ STATUS_FILE = os.environ.get("STATUS_FILE", f"{TARGET_DEX}_status.json")
|
||||
|
||||
# --- DEFAULT STRATEGY ---
|
||||
DEFAULT_STRATEGY = {
|
||||
"MONITOR_INTERVAL_SECONDS": 60, # How often the Manager checks for range status
|
||||
"MONITOR_INTERVAL_SECONDS": 300, # Manager loop & sync interval
|
||||
"LOG_INTERVAL_SECONDS": 300, # Hedger console logging interval
|
||||
"RANGE_MODE": "AUTO", # Options: "AUTO" (BB-based), "FIXED" (RANGE_WIDTH_PCT)
|
||||
"CLOSE_POSITION_ENABLED": True, # Allow the bot to automatically close out-of-range positions
|
||||
"OPEN_POSITION_ENABLED": True, # Allow the bot to automatically open new positions
|
||||
"REBALANCE_ON_CLOSE_BELOW_RANGE": True, # Strategy flag for specific closing behavior
|
||||
@ -19,22 +21,22 @@ DEFAULT_STRATEGY = {
|
||||
"VALUE_REFERENCE": "USD", # Base currency for all calculations
|
||||
|
||||
# Range Settings
|
||||
"RANGE_WIDTH_PCT": Decimal("0.01"), # LP width (e.g. 0.05 = +/- 5% from current price)
|
||||
"SLIPPAGE_TOLERANCE": Decimal("0.02"), # Max allowed slippage for swaps and minting
|
||||
"RANGE_WIDTH_PCT": Decimal("0.03"), # LP width (e.g. 0.05 = +/- 5% from current price)
|
||||
"SLIPPAGE_TOLERANCE": Decimal("0.05"), # Max allowed slippage for swaps and minting
|
||||
"TRANSACTION_TIMEOUT_SECONDS": 30, # Timeout for blockchain transactions
|
||||
|
||||
# Hedging Settings
|
||||
"HEDGE_STRATEGY": "ASYMMETRIC", # Options: "STANDARD" (Full Range Hedge), "ASYMMETRIC" (Edge-Only Reduction)
|
||||
"HEDGE_STRATEGY": "ASYMMETRIC", # Options: "STANDARD" (Full Range Hedge), "ASYMMETRIC" (Edge-Only Reduction), "FIXED" (Initial Delta)
|
||||
"MIN_HEDGE_THRESHOLD": Decimal("0.012"), # Minimum delta change (in coins) required to trigger a trade
|
||||
|
||||
# Unified Hedger Settings
|
||||
"CHECK_INTERVAL": 1, # Loop speed for the hedger (seconds)
|
||||
"LEVERAGE": 2, # Leverage to use on Hyperliquid
|
||||
|
||||
"LEVERAGE": 5, # Leverage to use on Hyperliquid
|
||||
"ZONE_BOTTOM_HEDGE_LIMIT": Decimal("1.0"), # Multiplier limit at the bottom of the range
|
||||
"ZONE_CLOSE_START": Decimal("10.0"), # Distance (pct) from edge to start closing logic
|
||||
"ZONE_CLOSE_END": Decimal("11.0"), # Distance (pct) from edge to finish closing logic
|
||||
"ZONE_TOP_HEDGE_START": Decimal("10.0"), # Distance (pct) from top edge to adjust hedging
|
||||
"PRICE_BUFFER_PCT": Decimal("0.0015"), # Buffer for limit order pricing (0.15%)
|
||||
"PRICE_BUFFER_PCT": Decimal("0.0025"), # Buffer for limit order pricing (0.15%)
|
||||
"MIN_ORDER_VALUE_USD": Decimal("10.0"), # Minimum order size allowed by Hyperliquid
|
||||
"DYNAMIC_THRESHOLD_MULTIPLIER": Decimal("1.2"), # Expansion factor for thresholds
|
||||
"MIN_TIME_BETWEEN_TRADES": 60, # Cooldown (seconds) between rebalance trades
|
||||
@ -73,8 +75,9 @@ CLP_PROFILES = {
|
||||
"TOKEN_B_ADDRESS": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831", # USDC
|
||||
"WRAPPED_NATIVE_ADDRESS": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
|
||||
"POOL_FEE": 500,
|
||||
"TARGET_INVESTMENT_AMOUNT": 1000,
|
||||
"HEDGE_STRATEGY": "BOTTOM",
|
||||
"TARGET_INVESTMENT_AMOUNT": 3000,
|
||||
"HEDGE_STRATEGY": "FIXED",
|
||||
"RANGE_WIDTH_PCT": Decimal("0.0075"),
|
||||
},
|
||||
"UNISWAP_wide": {
|
||||
"NAME": "Uniswap V3 (Arbitrum) - ETH/USDC Wide",
|
||||
@ -127,6 +130,34 @@ CLP_PROFILES = {
|
||||
"TARGET_INVESTMENT_AMOUNT": 200,
|
||||
"VALUE_REFERENCE": "USD",
|
||||
"RANGE_WIDTH_PCT": Decimal("0.10")
|
||||
},
|
||||
"AERODROME_BASE_CL": {
|
||||
"NAME": "Aerodrome SlipStream (Base) - WETH/USDC",
|
||||
"COIN_SYMBOL": "ETH",
|
||||
"RPC_ENV_VAR": "BASE_RPC_URL",
|
||||
"NPM_ADDRESS": "0x827922686190790b37229fd06084350E74485b72",
|
||||
"ROUTER_ADDRESS": "0xcF77a3Ba9A5CA399B7c97c74d54e5b1Beb874E43",
|
||||
"TOKEN_A_ADDRESS": "0x4200000000000000000000000000000000000006", # WETH
|
||||
"TOKEN_B_ADDRESS": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", # USDC
|
||||
"WRAPPED_NATIVE_ADDRESS": "0x4200000000000000000000000000000000000006",
|
||||
"POOL_FEE": 100, # TickSpacing 100 pool (0xb2cc...)
|
||||
"RANGE_WIDTH_PCT": Decimal("0.075"),
|
||||
"TARGET_INVESTMENT_AMOUNT": 200,
|
||||
"HEDGE_STRATEGY": "FIXED",
|
||||
},
|
||||
"AERODROME_WETH-USDC_008": {
|
||||
"NAME": "Aerodrome SlipStream (Base) - WETH/USDC Stable",
|
||||
"COIN_SYMBOL": "ETH",
|
||||
"RPC_ENV_VAR": "BASE_RPC_URL",
|
||||
"NPM_ADDRESS": "0x827922686190790b37229fd06084350E74485b72",
|
||||
"ROUTER_ADDRESS": "0xcF77a3Ba9A5CA399B7c97c74d54e5b1Beb874E43",
|
||||
"TOKEN_A_ADDRESS": "0x4200000000000000000000000000000000000006", # WETH
|
||||
"TOKEN_B_ADDRESS": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", # USDC
|
||||
"WRAPPED_NATIVE_ADDRESS": "0x4200000000000000000000000000000000000006",
|
||||
"POOL_FEE": 1, # TickSpacing 1 pool (0xdbc6...)
|
||||
"RANGE_WIDTH_PCT": Decimal("0.0075"),
|
||||
"TARGET_INVESTMENT_AMOUNT": 3000,
|
||||
"HEDGE_STRATEGY": "FIXED",
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user