QuantLink AI-Driven Trading Tools is our suite of modular, extensible Python utilities for DeFi market data aggregation, smart order routing, and automated execution strategies (TWAP, DCA, Arbitrage) with built-in risk management.
- Real-time Price Feeds Fetch live price data from DEX aggregators (1inch, OpenOcean, etc.).
- Liquidity Monitoring
Track pool liquidities across chains and venues. - Volatility Calculation Compute historical volatility metrics on assets.
- Arbitrage Detection Identify cross-exchange and cross-chain arbitrage opportunities.
- Path Finding Algorithm
Determine optimal multi-hop swap routes. - Gas Optimization
Minimize on-chain transaction costs. - Slippage Minimization Avoid price impact by splitting and routing orders intelligently.
- Multi-hop Routing
Support complex, multi-step swap paths for deeper liquidity.
- TWAP Strategy Execute large orders at the Time-Weighted Average Price.
- Arbitrage Bot Continuously scan for and execute profitable arbitrage trades.
- DCA Strategy
Implement Dollar Cost Averaging over configurable intervals. - Risk Management
Built-in stop-loss, take-profit, and dynamic position sizing.
git clone https://github.com/Quant-link/ai-driven-trading-tools.git
cd ai-driven-trading-tools
pip install -r requirements.txtCopy and edit the sample config:
cp config.sample.yaml config.yaml- price_sources: DEX/APIs to query
- routing: IOR parameters (max_hops, gas_limit)
- strategies: TWAP, DCA, Arbitrage settings
- risk: stop_loss_pct, take_profit_pct, position_size
PYTHONPATH=. python3 <path_to_script>/<script_name>.py# Create a virtual environment
python -m venv .venv
source .venv/bin/activate
# Install dependencies
pip install -r requirements-dev.txt# Run all tests
pytest
# Linting
flake8 .
# Formatting
black .
# Type checking
mypy .This project is licensed under the MIT License. See the LICENSE file for details.