Skip to content

The bot is designed to execute a delta neutral strategy using Aave and Hyperliquid.

Notifications You must be signed in to change notification settings

fabrizioff/aave-hl-funding-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Delta Neutral Strategy Bot

Overview

The bot is designed to execute a delta neutral strategy using Aave and Hyperliquid.

Main steps:

  1. Starting from a wallet with an amount of native USDC on Arbitrum
  2. Set the config variables in .env file (see .env.example)
  3. To make the strategy executable, you need to start with no positions (i.e. no ETH supplied and no USDC borrowed) on Aave
  4. Run main.py
  5. If the MIN_GLOBAL_PROFITABILITY is met, the bot will start borrowing USDC and supplying ETH on Aave, and then open a short on ETH on Hyperliquid
  6. The bot will continue to monitor the positions and the expected annualized profitability

Here a screenshot of the bot in action:

alt text

Todo

  • better tracking of PnL in terms of fees, delta price pnl, etc.
  • automate exit if negative expected annualized return or partial exit if risk of liquidation
  • reorganize the codebase (e.g. move classes in main.py to separate files)

Key Components

  • main.py: Initializes configurations and starts the bot.
  • exchanges/aave.py & exchanges/hyperliquid.py: Handle interactions with Aave and Hyperliquid.
  • strategies/delta_neutral_executor.py: delta neutral strategy logic.
  • utils/calculations.py: functions for calculating APY, costs, etc.
  • utils/monitoring.py: functions for monitoring on-chain and DEX positions, checking profitability, and risk management, etc.

About

The bot is designed to execute a delta neutral strategy using Aave and Hyperliquid.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages