GMX_API_V2_URLS

Documentation for eth_defi.gmx.constants.GMX_API_V2_URLS data.

GMX_API_V2_URLS: dict[str, str] = {'arbitrum': 'https://arbitrum.gmxapi.io/v1', 'avalanche': 'https://avalanche.gmxapi.io/v1'}

REST API v2 endpoint URLs for GMX protocol services by blockchain network.

These endpoints are the officially documented GMX REST API base URLs (https://docs.gmx.io/docs/api/overview/). Two independent peer regions are available per chain: gmxapi.io (primary, listed here) and gmxapi.ai (fallback, stored in GMX_API_URLS_FALLBACK_3).

Endpoint paths are appended directly to the base URL (e.g. /positions, /orders).

Note

The previous DigitalOcean host (gmx-api-arbitrum-2nlbk.ondigitalocean.app) used the wrong /api/v1 path prefix and is no longer referenced here.

Note

v1 endpoints (GMX_API_URLS) remain the primary source for tickers, signed prices, markets, and APY data. v2 endpoints expose additional surfaces not available in v1.