# DeFi API

**What it is:**\
Smart routing for decentralized trades. Baltex searches across DEXs and liquidity sources to aim for great prices and dependable execution.

**Highlights:**

* **Best-price routing**: Finds competitive routes across multiple DEXs.
* **Speed vs. price**: You can prioritize faster settlement or better pricing.
* **Clear previews**: Know expected output and fees upfront.
* **Reliable outcomes**: Built to reduce failed or stale trades in changing markets.

**Common use cases:**

* One-tap swaps in wallets
* In-app trading for DeFi dashboards
* Price-sensitive strategies that still value reliability

**What users experience:**

* Pick token in → token out
* See a preview with expected output
* Confirm and receive the result—no extra steps

**Why it’s useful:**

* Less time stitching together many DEXs
* More consistent results for end users
* Easy to explain and support


---

# Agent Instructions: 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:

```
GET https://docs.baltex.io/defi-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
