> For the complete documentation index, see [llms.txt](https://hakifi.gitbook.io/Hakifi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hakifi.gitbook.io/Hakifi/welcome-to-hakifi/protocol-overview.md).

# Protocol Overview

Hakifi is a next-generation on-chain trading platform built on Monad, focused on delivering a unified experience across Swap Aggregation and Perpetual (Perp) Trading - with a growing suite of companion products such as DefAI Agents, Smart Trading, and new primitives like RCoin.<br>

Instead of being “just a DEX” or “just a perp exchange,” Hakifi is designed as a Trading Hub: users can discover the best execution route for swaps, trade perps with deep liquidity and strong risk controls, and automate strategies through AI-driven and rule-based tooling—all in one ecosystem.

***

#### What Hakifi solves

On-chain traders today face fragmented liquidity and fragmented tools:

* Swaps require jumping between multiple DEXs and routes to get best price
* Perp trading is often separated from spot liquidity, UX, and automation tooling
* Strategy execution is manual, slow, and hard to manage (especially across multiple positions)
* New users struggle with complexity: too many apps, too many steps, too many risks

Hakifi solves this by combining best execution, derivatives trading, and automation layers under one protocol and one UX.

#### Why Monad

Hakifi is built on Monad to deliver a trading UX that is fast enough for active users while remaining fully on-chain:

* smoother routing and multi-step executions,
* faster order lifecycle in perps,
* better user experience for automation agents that require frequent actions,
* scalable foundation for future products.

#### Core Products

**1) Aggregator (Best Execution Swap)**

Hakifi Aggregator sources liquidity across supported venues and computes optimal routes to deliver:

* Best price / lowest slippage
* Route optimization (single-hop / multi-hop / split routes)
* Fast settlement leveraging Monad performance
* User protection controls (slippage limits, price impact checks, fail-safe routing)<br>

This module acts as the spot execution engine and a foundation for other products (automation, strategies, portfolio actions).

**2) Perpetual Trading (Perps)**

Hakifi Perp Trading provides leveraged exposure with a focus on:

* Stable execution & risk engine (margin, liquidation, position management)
* Trader-first UX (fast order placement, clear PnL, margin health)
* Liquidity-aware controls to reduce market impact during closes/liquidations
* Composable integrations for automation and advanced strategies<br>

Perps are positioned as the second core pillar alongside aggregation—covering both “spot routing” and “derivatives trading” in one place.

***

#### Companion Products (Ecosystem Layer)

**DefAI Agent**

Hakifi DefAI Agents enable users to interact with trading in a more automated and intelligent way:

* Execute strategies based on user-defined goals and risk preferences
* Monitor market conditions and positions in real time
* Assist with decision support (signals, alerts, suggested actions)
* Automate multi-step workflows (swap → open hedge → manage TP/SL)

**RCOIN (Soon)**

**Smart Trading (Soon)**
