Agg Trade

The all-in-one Trading Terminal for Defi. We give you CEX-like features with DEX-like security

Agg Trade

Created At

Unite Defi

Project Description

AggTrade gives you CEX-level features and experience with underlying Dex-level security and decentralization. We use 1Inch APIs to power your trades allowing you to place limit orders among other ways of executing trades on-chain.

We have also implemented a chart and account feature which lets you see historical transactions, equity balance change with time, and asset allocation across various tokens.

How it's Made

Core Technology Stack Frontend Architecture: Next.js 14+ with App Router - Modern React framework providing server-side rendering, static site generation, and optimized performance TypeScript - Type-safe development ensuring code reliability and better developer experience Tailwind CSS - Utility-first CSS framework for rapid UI development with consistent design system Material-UI (MUI) - React component library for professional UI components with custom theming

Web3 Integration: Wagmi - React hooks library for Ethereum interactions, providing type-safe wallet connections and contract interactions Viem - Low-level Ethereum library used by Wagmi for blockchain operations React Query (TanStack Query) - Powerful data fetching library with caching, background updates, and optimistic updates

Key Integrations & Partner Technologies 1inch API Integration: The project integrates comprehensive 1inch API functionality including classic swaps, Fusion swaps (gasless trading), cross-chain bridging, and limit orders. Additionally implements portfolio management features through 1inch's data APIs for token fetching, estimated balance calculations, token distribution analytics, recent transaction parsing, and equity trend tracking - providing users with optimal DeFi trading experiences and complete portfolio visibility across multiple decentralized exchanges.

Custom Proxy Architecture: Built custom API proxy endpoints (/api/proxy/1inch/) to handle cross-origin requests and add authentication layers Implemented rate limiting and error handling for production-ready API interactions

Multi-Chain Support: Ethereum mainnet, Polygon, BSC, Base, etc Dynamic chain switching with automatic RPC configuration Gas optimization across different networks

background image mobile

Join the mailing list

Get the latest news and updates