> ## Documentation Index
> Fetch the complete documentation index at: https://docs.struct.to/llms.txt
> Use this file to discover all available pages before exploring further.

# DEX Trading API

> Quote, build, submit, and track non-custodial DEX swaps.

Trading endpoints quote swaps and liquidity actions, build unsigned transactions, submit signed raw transactions, and track status. They are **API-key only**. JWT public keys are rejected.

Struct does not custody keys. You quote, build, sign in your wallet, then submit.

## Flow

**1. Check capabilities**

[Trading capabilities](https://docs.struct.to/api-reference/dex-trading/trading-capabilities.md) lists supported chains and protocols.

**2. Quote**

[Quote a swap](https://docs.struct.to/api-reference/dex-trading/quote-a-swap.md) or [quote a liquidity action](https://docs.struct.to/api-reference/dex-trading/quote-a-liquidity-action.md).

**3. Build**

[Build a swap transaction](https://docs.struct.to/api-reference/dex-trading/build-a-swap-transaction.md) or [build a liquidity transaction](https://docs.struct.to/api-reference/dex-trading/build-a-liquidity-transaction.md). The response is an unsigned payload for your wallet to sign.

**4. Submit and track**

[Submit signed transactions](https://docs.struct.to/api-reference/dex-trading/send-signed-swap-transactions.md), then [track](https://docs.struct.to/api-reference/dex-trading/track-signed-swap-transactions.md) or [list trades](https://docs.struct.to/api-reference/dex-trading/list-swaps.md).

## Example

```bash theme={null}
curl https://staging-api.struct.to/v1/trading/capabilities \
  -H "X-API-Key: YOUR_API_KEY"
```

## Related

* [Token prices](https://docs.struct.to/api-reference/token-market/token-price.md)
* [Uniswap](https://docs.struct.to/api-reference/uniswap/overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.