{"id":26600692,"url":"https://github.com/arec1b0/hedged-lp-bot","last_synced_at":"2025-03-23T18:33:36.719Z","repository":{"id":283571090,"uuid":"948179346","full_name":"arec1b0/hedged-lp-bot","owner":"arec1b0","description":"A Nim-based trading bot for delta-neutral hedging of impermanent loss on Uniswap V2 using Binance perpetual futures.","archived":false,"fork":false,"pushed_at":"2025-03-13T23:13:10.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-20T23:33:58.421Z","etag":null,"topics":["binance","defi","nim","perpetuals","uniswap"],"latest_commit_sha":null,"homepage":"https://github.com/dkrizhanovskyi/hedged-lp-bot","language":"Nim","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/arec1b0.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-03-13T22:08:23.000Z","updated_at":"2025-03-13T23:15:04.000Z","dependencies_parsed_at":"2025-03-21T16:47:14.690Z","dependency_job_id":null,"html_url":"https://github.com/arec1b0/hedged-lp-bot","commit_stats":null,"previous_names":["arec1b0/hedged-lp-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arec1b0%2Fhedged-lp-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arec1b0%2Fhedged-lp-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arec1b0%2Fhedged-lp-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arec1b0%2Fhedged-lp-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arec1b0","download_url":"https://codeload.github.com/arec1b0/hedged-lp-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245149949,"owners_count":20569006,"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":["binance","defi","nim","perpetuals","uniswap"],"created_at":"2025-03-23T18:33:30.041Z","updated_at":"2025-03-23T18:33:36.711Z","avatar_url":"https://github.com/arec1b0.png","language":"Nim","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hedged Liquidity Provision Bot\n\nA Nim-based trading bot designed to hedge impermanent loss in Uniswap V2 ETH/USDC pools by utilizing perpetual futures on Binance.\n\n**Author:** [Daniil Krizhanovskyi](https://github.com/dkrizhanovskyi)\n\n## Overview\nThe bot maintains a delta-neutral position by dynamically adjusting ETH short positions on Binance futures, aiming to mitigate impermanent loss.\n\n## Repository Structure\n\n```\nhedged-lp-bot/\n├── LICENSE\n├── README.md\n├── data/\n│   └── sample_data.csv\n├── docs/\n│   └── architecture_overview.md\n├── src/\n│   ├── main.nim\n│   ├── backtest.nim\n│   ├── generate_data.nim\n│   └── utils.nim\n└── tests/\n    └── test_backtest.nim\n```\n\n## Key Features\n- Delta-neutral hedging strategy\n- Synthetic data generation for robust backtesting\n- Comprehensive performance metrics (fees, PnL, returns)\n\n## Quick Start\n\n```bash\n# Clone the repository\ngit clone https://github.com/dkrizhanovskyi/hedged-lp-bot\ncd hedged-lp-bot\n\n# Compile and run backtest\nnim c -r src/main.nim\n\n# Run unit tests\nnim c -r tests/test_backtest.nim\n```\n\n## Results\nExample backtest results:\n```\nInitial Investment: $20137.04\nFinal Value:        $20748.52\nNet Return:         3.04%\n```\n\n## Documentation\nDetailed architecture and workflow can be found [here](docs/architecture_overview.md).\n\n## Future Enhancements\n- Live market data integration (Uniswap, Binance APIs)\n- Advanced rebalancing strategies\n- Multi-chain and multi-pool support\n\n## License\n[MIT License](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farec1b0%2Fhedged-lp-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farec1b0%2Fhedged-lp-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farec1b0%2Fhedged-lp-bot/lists"}