GMX API - Perpetual DEX

Decentralized perpetual futures and spot trading

What is GMX?

GMX is a decentralized spot and perpetual exchange that supports low fees and zero price impact trades. It runs on Arbitrum and Avalanche with the GLP index token for liquidity.

Trading Features

SDK Integration

import { GMX } from '@gmx/sdk'

const gmx = new GMX('arbitrum')

// Get market data
const btcPrice = await gmx.getPrice('BTC')

// Execute trade
const tx = await gmx.openPosition({
  indexToken: 'WBTC',
  sizeDelta: web3.utils.toWei('1'),
  isLong: true,
  collateralToken: 'USDC'
})

Build on GMX

Create trading bots and DeFi integrations with GMX.

Start Building