gmx-trading

Trade GMX V2 perpetuals and swaps programmatically via SDK and REST API.

11|3|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/gmx-io/gmx-ai --skill gmx-trading
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gmx-trading
Source: https://github.com/gmx-io/gmx-ai/tree/main/plugins/gmx-io/skills/gmx-trading
Command: npx skills add https://github.com/gmx-io/gmx-ai --skill gmx-trading

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

GMX traders need a programmable, unified interface to open, modify, and monitor GMX V2 perpetuals and token swaps across Arbitrum, Avalanche, and Botanix, enabling automation and integration into custom workflows.

Core Features & Use Cases

  • Programmatic access to markets, orders, and accounts via the TypeScript SDK or REST API.
  • Automate trading strategies, monitoring, and data retrieval across supported chains.
  • Use cases include algorithmic trading, risk management, and on-chain liquidity interactions.

Quick Start

Open a long position on Arbitrum using the SDK and fetch live market data.

Frequently Asked Questions about gmx-trading

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate GMX V2 perpetual trading strategies across multiple chains?

Automate GMX V2 perpetual trading strategies by using the TypeScript SDK for write operations like opening positions and the REST API for reading live market data across Arbitrum, Avalanche, and Botanix.

What's the best way to fetch live GMX market prices and trade history programmatically?

Fetch live GMX market prices and trade history programmatically by querying the REST API, which provides read-only access to real-time market data, oracle-based pricing, and past account activity.

Does the GMX SDK support different order types for algorithmic trading?

The GMX SDK supports algorithmic trading by enabling multiple order types including market, limit, and stop orders, utilizing big-integer amounts and fresh oracle-based pricing for execution.

Can I use the GMX SDK for backtesting and risk management workflows?

Use the GMX SDK and REST API for backtesting and risk management by retrieving historical trade data and monitoring open positions to integrate on-chain liquidity interactions into custom workflows.

Do I need fresh market data to execute swaps and orders on GMX V2?

Fresh market data is required to execute swaps and orders on GMX V2 because the protocol relies on oracle-based pricing to ensure accurate execution for both swaps and perpetual positions.

What limitations exist when using REST API versus the SDK for GMX trading automation?

The REST API is limited to read-only data retrieval such as prices and market info, whereas the full TypeScript SDK is required for write-enabled operations like executing trades and modifying orders.