> For the complete documentation index, see [llms.txt](https://docs.swivel.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.swivel.finance/swivel-v2.0.0/developers/exchange.md).

# Exchange API

The endpoints under the Exchange API section all share the same base URL <https://api.swivel.exchange> no matter on the environment that is being used.

There are two active, live environments so base URL should be changed accordingly:

* Testnet base URL **<https://api-dev.swivel.exchange>**
* Mainnet base URL **<https://api-main.swivel.exchange>.**

## &#x20;<a href="#update-variant" id="update-variant"></a>
