GMX, CCXT and FreqTrade

This tutorial shows how to use a CCXT-compatible exchange adapter for GMX, a decentralised perpetual futures exchange, with FreqTrade, an algorithmic trading framework for Python.

  • Run automated trading strategies on GMX using FreqTrade

  • Backtest strategies against historical GMX data

  • Execute live trades on Arbitrum with self-custodial wallets

  • Use a CCXT-compatible interface to GMX’s onchain trading

  • Trading vaults for user-investable trading strategies and copy trading on GMX

This project is funded by an Arbitrum DAO grant.

The adapter is provided by the web3-ethereum-defi Python package, which provides the low-level primitives for RPC, smart contract interaction and onchain data ingestion. These are mapped to CCXT/FreqTrade transparently via monkey patching.

For the full tutorial, installation instructions, backtesting guide and live trading setup, see the gmx-ccxt-freqtrade repository on GitHub.