The bot is designed to execute a delta neutral strategy using Aave and Hyperliquid.
Main steps:
- Starting from a wallet with an amount of native USDC on Arbitrum
- Set the config variables in .env file (see .env.example)
- To make the strategy executable, you need to start with no positions (i.e. no ETH supplied and no USDC borrowed) on Aave
- Run
main.py
- 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
- The bot will continue to monitor the positions and the expected annualized profitability
Here a screenshot of the bot in action:
- 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)
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.