@gmx-io/gmx-public-api
GMX API overview with Swagger/OpenAPI links and base URLs.
GMX API (Swagger)
- Swagger/OpenAPI spec: GMX API Swagger
- Human-readable API docs: GMX API Docs
Base URLs
The GMX API is deployed per chain across two independent peer base URLs (.io and .ai). Neither is primary; both receive the same data and accept the same requests. Integrations that hit the API directly should use either base URL, or rotate across both.
| Network | Peer A (.io) | Peer B (.ai) |
|---|---|---|
| Arbitrum | https://arbitrum.gmxapi.io/v1 | https://arbitrum.gmxapi.ai/v1 |
| Avalanche | https://avalanche.gmxapi.io/v1 | https://avalanche.gmxapi.ai/v1 |
| Botanix | https://botanix.gmxapi.io/v1 | https://botanix.gmxapi.ai/v1 |
| MegaETH | https://megaeth.gmxapi.io/v1 | https://megaeth.gmxapi.ai/v1 |