{"id":26432289,"url":"https://github.com/tar-ser/defi-anti-liquidation-bot","last_synced_at":"2025-03-18T06:09:29.009Z","repository":{"id":276992901,"uuid":"930967948","full_name":"tar-ser/DeFi-Anti-Liquidation-Bot","owner":"tar-ser","description":"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.","archived":false,"fork":false,"pushed_at":"2025-03-17T10:14:13.000Z","size":277,"stargazers_count":474,"open_issues_count":0,"forks_count":47,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T10:43:59.163Z","etag":null,"topics":["automated-trading","bitcoin","blockchain","btc","cryptocurrency","curve","defi","eth","ethereum","flash-loan","twap","uniswap","vwap"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tar-ser.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-11T14:07:00.000Z","updated_at":"2025-03-17T10:42:04.000Z","dependencies_parsed_at":"2025-03-03T07:26:40.206Z","dependency_job_id":null,"html_url":"https://github.com/tar-ser/DeFi-Anti-Liquidation-Bot","commit_stats":null,"previous_names":["tar-ser/whale-dex-trading-tool","tar-ser/dex-trading-tool","tar-ser/liquid-staking-bot-cross-chain-rwa-optimizer","tar-ser/automated-liquidity-management-and-security-for-solana-projects","tar-ser/solana-liquidity-guard","tar-ser/automated-liquid-staking-tool-cross-chain-rwa-optimizer","tar-ser/defi-anti-liquidation-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tar-ser%2FDeFi-Anti-Liquidation-Bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tar-ser%2FDeFi-Anti-Liquidation-Bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tar-ser%2FDeFi-Anti-Liquidation-Bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tar-ser%2FDeFi-Anti-Liquidation-Bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tar-ser","download_url":"https://codeload.github.com/tar-ser/DeFi-Anti-Liquidation-Bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244166743,"owners_count":20409179,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automated-trading","bitcoin","blockchain","btc","cryptocurrency","curve","defi","eth","ethereum","flash-loan","twap","uniswap","vwap"],"created_at":"2025-03-18T06:09:27.736Z","updated_at":"2025-03-18T06:09:29.004Z","avatar_url":"https://github.com/tar-ser.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Anti-Liquidation Bot for Hyperliquid: DeFi Margin Trading, Cross-Protocol Hedging \u0026 Dynamic Collateral Management\n\nDeFi 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.\n\n# Documentation + Install \n### [Documentation](https://selenium-finance.gitbook.io/mev-fortress-documentation)\n### **Install** [Windows](https://selenium-finance.gitbook.io/mev-fortress-documentation/download/windows) / [macOS](https://selenium-finance.gitbook.io/mev-fortress-documentation/download/macos)\n\n[![License](https://img.shields.io/badge/License-MIT-green)](https://github.com/yourusername/defi-algo-bot)\n[![Python](https://img.shields.io/badge/Python-3.10%2B-blue)](https://www.python.org)\n[![Web3](https://img.shields.io/badge/Web3.py-6.0+-brightgreen)](https://web3py.readthedocs.io)\n\n# Key Features\n1. Dynamic Collateral Rebalancer\n\n- Auto-shifts collateral from stablecoin pools (e.g., Hyperliquid LP) to margin accounts during liquidation threats.\n- Supports cross-chain collateral (Aave, Compound) via LayerZero bridges.\n\n2. Volatility-Adjusted Leverage (VAL)\n\n- Auto-reduces leverage during high volatility (using Chainlink data).\n- Optimizes positions using funding rate arbitrage.\n\n3. Flash Loan Hedging Engine\n\n- Zero-loss hedging via DEX/CEX arbitrage using flash loans (Aave, dYdX).\n- Seamless integration with Binance/Bitget APIs for 1-3 second opposite position execution.\n\n4. Liquidity-Aware Stop-Loss\n\n- Sets trailing stop-loss orders outside low-liquidity zones in Hyperliquid’s order book.\n- Prevents slippage and market manipulation.\n\n5. Cross-Protocol Risk Dashboard\n\n- Monitors collateral in DeFi pools (Uniswap, Curve) and auto-withdraws liquidity during critical risks.\n\n# Benefits\n- For $100K+ Traders:\n\n  - Maintain positions even during 15-20% market drops via collateral rebalancing.\n  - Maximize profits with 20x leverage while avoiding margin calls.\n\n- For DeFi Developers:\n\n  - Ready-to-use scripts for Hyperliquid API, Aave, LayerZero.\n  - Code examples using Pyth Network and Chainlink oracles.\n\n # Configuration\n Set risk parameters in ```risk_config.json```:\n\n- ```max_leverage```: 20x (for perpetual contracts).\n\n- ```volatility_threshold```: 5% (auto-leverage reduction).\n\nSelect DeFi protocols for collateral: Aave, Compound, Hyperliquid LP.\n\nEnable flash loan hedging via CEX (requires Binance/Bybit API keys).\n\n# Key inquiries\nhyperliquid 100x leverage bot github, auto-trading high leverage crypto, multi-exchange emergency hedge bot,\nvolatility-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\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftar-ser%2Fdefi-anti-liquidation-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftar-ser%2Fdefi-anti-liquidation-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftar-ser%2Fdefi-anti-liquidation-bot/lists"}