# Trade API for Custom Bots

The Lethean Trade DEX provides a REST API for building trading bots and custom integrations.

## Resources
- [Lethean Trade DEX](https://trade.lthn.io)
- [Lethean Documentation](https://testnet-docs.lthn.io)
- [Ionic Swaps Overview](/docs/build/confidential-assets/ionic-swaps)

## REST API Endpoints

**Testnet Base URL:** `https://trade.lthn.io/api/`

**Local development:** `http://127.0.0.1:3336/api/`

### Get config (currencies)

```bash
curl https://trade.lthn.io/api/config
```

Returns available currencies and their asset IDs. The native LTHN currency is auto-detected from the blockchain.

> **Verified:** Trade API running on testnet, returns `LTHN` currency with asset_id `d6329b5b...` and `decimal_point: 12`.
