gmx

Automate GMX V2 trading workflows with batched multicall interactions.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/labsaistudio/AABC-Labs --skill gmx-labsaistudio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gmx
Source: https://github.com/labsaistudio/AABC-Labs/tree/main/backend/agent/skills/catalog/gmx
Command: npx skills add https://github.com/labsaistudio/AABC-Labs --skill gmx-labsaistudio

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

GMX V2 integration involves complex multi-step on-chain operations (token transfers, vault interactions, and order creation). This Skill encapsulates the multicall pattern and the token routing required to place market orders and deposits in a repeatable, testable way.

Core Features & Use Cases

  • Demonstrates encoding and batching on-chain calls (sendWnt, sendTokens, createOrder) for GMX V2.
  • Provides example workflows for opening positions, performing swaps, and managing GM tokens across Arbitrum and Avalanche.
  • Use Case: A developer wants to script a leveraged ETH position on GMX V2 with a single multicall payload.

Quick Start

Use the GMX V2 multicall workflow to place a basic MarketIncrease order for ETH/USD.

Frequently Asked Questions about gmx

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

FAQPage Schema
How do I open a leveraged GMX V2 position using a single multicall transaction?

Opening a leveraged GMX V2 position with a multicall requires batching sendWnt, sendTokens, and createOrder calls into a single payload. This automates token routing, vault deposits, and order placement atomically across Arbitrum and Avalanche.

What is the multicall pattern for GMX V2 on-chain trading workflows?

The multicall pattern for GMX V2 trading workflows encapsulates complex multi-step on-chain operations into a single transaction. It combines token transfers, vault interactions, and order creation, enabling repeatable and testable execution for market orders and deposits.

Can I use multicall to perform spot swaps and manage GM token liquidity on GMX V2?

Yes, you can use multicall to perform spot swaps and manage GM token liquidity on GMX V2. The workflow supports batching deposits, swaps, and GM token liquidity actions across Arbitrum and Avalanche within a single transaction.

How do I handle execution fees and slippage protection when placing GMX V2 orders?

Handling execution fees and slippage protection when placing GMX V2 orders requires encoding specific parameters within the createOrder payload. The multicall workflow ensures these protections are configured correctly during batched transaction construction.

Does the GMX V2 multicall workflow support both Arbitrum and Avalanche networks?

Yes, the GMX V2 multicall workflow supports both Arbitrum and Avalanche networks. It applies to opening leveraged positions, executing spot swaps, and managing GM token liquidity actions across these supported chains.