An open API service indexing awesome lists of open source software.

https://github.com/tar-ser/defi-anti-liquidation-bot

Algorithmic trading software for automated trading with 20x-100x leverage on Hyperliquid. Integration with Chainlink/Pyth, dynamic risk management, multi-exchange hedging. Halborn auditing, MPC-wallet support.
https://github.com/tar-ser/defi-anti-liquidation-bot

automated-trading bitcoin blockchain btc cryptocurrency curve defi eth ethereum flash-loan twap uniswap vwap

Last synced: 2 months ago
JSON representation

Algorithmic trading software for automated trading with 20x-100x leverage on Hyperliquid. Integration with Chainlink/Pyth, dynamic risk management, multi-exchange hedging. Halborn auditing, MPC-wallet support.

Awesome Lists containing this project

README

        

# Anti-Liquidation Bot for Hyperliquid: DeFi Margin Trading, Cross-Protocol Hedging & Dynamic Collateral Management

DeFi Algo Trading Bot is an open-source anti-liquidation bot for the decentralized exchange Hyperliquid, designed for traders and investors using high leverage (up to 20x-100x) and perpetual contracts. The bot automatically rebalances collateral across DeFi protocols and margin accounts, reducing liquidation risk by 90% without closing positions. It integrates flash loan hedging via CEX (Binance, Bybit) and dynamic leverage adjustments based on market volatility.

# Documentation + Install
### [Documentation](https://selenium-finance.gitbook.io/mev-fortress-documentation)
### **Install** [Windows](https://selenium-finance.gitbook.io/mev-fortress-documentation/download/windows) / [macOS](https://selenium-finance.gitbook.io/mev-fortress-documentation/download/macos)

[![License](https://img.shields.io/badge/License-MIT-green)](https://github.com/yourusername/defi-algo-bot)
[![Python](https://img.shields.io/badge/Python-3.10%2B-blue)](https://www.python.org)
[![Web3](https://img.shields.io/badge/Web3.py-6.0+-brightgreen)](https://web3py.readthedocs.io)

# Key Features
1. Dynamic Collateral Rebalancer

- Auto-shifts collateral from stablecoin pools (e.g., Hyperliquid LP) to margin accounts during liquidation threats.
- Supports cross-chain collateral (Aave, Compound) via LayerZero bridges.

2. Volatility-Adjusted Leverage (VAL)

- Auto-reduces leverage during high volatility (using Chainlink data).
- Optimizes positions using funding rate arbitrage.

3. Flash Loan Hedging Engine

- Zero-loss hedging via DEX/CEX arbitrage using flash loans (Aave, dYdX).
- Seamless integration with Binance/Bitget APIs for 1-3 second opposite position execution.

4. Liquidity-Aware Stop-Loss

- Sets trailing stop-loss orders outside low-liquidity zones in Hyperliquid’s order book.
- Prevents slippage and market manipulation.

5. Cross-Protocol Risk Dashboard

- Monitors collateral in DeFi pools (Uniswap, Curve) and auto-withdraws liquidity during critical risks.

# Benefits
- For $100K+ Traders:

- Maintain positions even during 15-20% market drops via collateral rebalancing.
- Maximize profits with 20x leverage while avoiding margin calls.

- For DeFi Developers:

- Ready-to-use scripts for Hyperliquid API, Aave, LayerZero.
- Code examples using Pyth Network and Chainlink oracles.

# Configuration
Set risk parameters in ```risk_config.json```:

- ```max_leverage```: 20x (for perpetual contracts).

- ```volatility_threshold```: 5% (auto-leverage reduction).

Select DeFi protocols for collateral: Aave, Compound, Hyperliquid LP.

Enable flash loan hedging via CEX (requires Binance/Bybit API keys).

# Key inquiries
hyperliquid 100x leverage bot github, auto-trading high leverage crypto, multi-exchange emergency hedge bot,
volatility-based leverage adjustment, institutional crypto trading framework, hyperliquid anti-liquidation bot github, defi margin trading automation, flash loan hedging bot, open-source crypto risk management, aave compound collateral rebalance, hyperliquid, anti-liquidation, defi-trading-bot, leverage-automation, perpetual-contracts, flash-loan-hedging, margin-trading, decentralized-exchange, risk-management, open-source-crypto-bot, hyperliquid anti-liquidation bot, defi margin trading automation, perpetual contracts risk management, cross-protocol collateral bot github, flash loan hedging hyperliquid, crypto liquidation prevention bot, dynamic leverage adjustment dex, volatility-based trading bot, hyperliquid stop-loss optimizer, automated defi hedging strategies, leverage trading on hyperliquid, how to avoid liquidation in defi, best tools for perpetual traders, hyperliquid api integration example, open-source crypto trading bots