> For the complete documentation index, see [llms.txt](https://docs.cod3x.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cod3x.org/introduction/trading-with-hyperliquid.md).

# Trading With Hyperliquid

### Trading Infrastructure & Hyperliquid

Cod3x executes all perpetual trades **directly on Hyperliquid**.\
Every long or short your agent opens, every limit order, every liquidation—\
all of it ultimately routes through Hyperliquid’s high-performance matching engine.

> **Why it matters**\
> Understanding Hyperliquid’s orderbook mechanics helps you anticipate fills, liquidity behavior, funding, and execution quality. The Cod3x terminal simplifies trading, but the underlying rules remain Hyperliquid’s.

***

<figure><img src="/files/qFR9PuVN9Kf0Fha73Y04" alt=""><figcaption></figcaption></figure>

Make sure to select Hyperliquid as your preferred exchange in the tools section in order to trade on Hyperliquid.

***

### What You Should Know

Even though Cod3x abstracts the complexity of interacting with an orderbook, your trades inherit Hyperliquid’s:

* **Orderbook Mechanics** – Orders interact with real bids/asks; liquidity depth determines fills.
* **Funding Payments** – Longs and shorts pay or receive funding based on market imbalance.
* **Maker/Taker Fees** – Taker orders consume liquidity; maker orders provide it and can earn rebates.
* **Liquidation Rules** – Positions are liquidated when margins fall below Hyperliquid’s thresholds.
* **Execution Behavior** – Fill quality depends on volatility, liquidity, and order type.
* **Oracle & Mark Price** – Hyperliquid uses its own oracle and index system to determine PnL, funding, and liquidation points.

***

### Learn the Hyperliquid Details

For a deep dive into fee schedules, orderbook mechanics,\
and all other protocol rules, start here:

👉 [**Hyperliquid Documentation**](https://hyperliquid.gitbook.io/hyperliquid-docs)

This is the authoritative reference on:

* Maker/taker fees and funding rate calculations
* Margin requirements, mark price, and risk parameters
* Orderbook behavior and matching engine
* Liquidation logic and guardrails
* Market specifications and contract details

***

### Bottom line

Cod3x gives you a streamlined AI trading experience,\
but **your trades still follow Hyperliquid’s rules**.\
Reading the Hyperliquid docs ensures you know exactly how costs, risks, and execution work behind the scenes.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.cod3x.org/introduction/trading-with-hyperliquid.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
