DeFi Router — CryptoForge

Aggregator API

REST API wrapping multiple DEX aggregators with your fee.
Contract Details
Categoryapi
Files23
Price$14.99
Tech Stack
Python FastAPI httpx Redis Docker
Chains
Ethereum Optimism Polygon Arbitrum Base
Description
REST API template wrapping multiple DEX aggregators (1inch, 0x, Paraswap, CowSwap) with your own fee layer. FastAPI backend that aggregates quotes, compares across providers, selects the best route, and injects your protocol fee before returning swap calldata.
Features
aggregator-api.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

/// @title Aggregator API
/// @notice REST API wrapping multiple DEX aggregators with your fee.
contract AggregatorApi {
    address public immutable owner;
    uint256 public constant VERSION = 1;

    event Initialized(address indexed deployer);

    constructor() {
        owner = msg.sender;
        emit Initialized(msg.sender);
    }

    // ... full implementation in purchased package
}
$14.99
Buy Now — $14.99