gmx-liquidity

Automate GMX V2 liquidity deposits, withdrawals, and shifts across Arbitrum, Avalanche, and Botanix.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provide liquidity on GMX V2 — deposit into GM pools and GLV vaults, withdraw, shift between pools, and query pool data across Arbitrum, Avalanche, and Botanix.

Core Features & Use Cases

  • GM Pools: deposit into single-market liquidity pools, mint GM tokens, withdraw to retrieve long/short tokens.
  • GLV Vaults: deposit GM tokens into multi-market GLV vaults with auto-rebalance, withdraw GLV tokens to retrieve underlying assets.
  • Data & SDK Access: read pool data via the SDK, REST/GraphQL endpoints for markets, pools, and vaults; manage liquidity across chains.
  • Cross-chain & Execution: two-step asynchronous execution model with ExchangeRouter/GlvRouter and keeper execution; supports deposits, withdrawals, and shifts.

Quick Start

Start by approving tokens and using ExchangeRouter.multicall or GlvRouter.multicall to deposit into GM pools or GLV vaults across Arbitrum, Avalanche, and Botanix.

Frequently Asked Questions about gmx-liquidity

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

FAQPage Schema
How do I deposit liquidity into GMX V2 GM pools?

Depositing liquidity into GMX V2 GM pools requires approving tokens to SyntheticsRouter and calling ExchangeRouter.multicall to mint GM tokens across Arbitrum, Avalanche, or Botanix.

What is the difference between GM pools and GLV vaults on GMX V2?

GM pools are single-market liquidity pools minting GM tokens, while GLV vaults are multi-market vaults accepting GM tokens with auto-rebalancing. Withdrawing from GLV vaults retrieves underlying long and short assets.

Does GMX V2 liquidity management support Arbitrum, Avalanche, and Botanix?

Yes, GMX V2 liquidity management supports Arbitrum, Avalanche, and Botanix. The system coordinates deposits, withdrawals, and shifts across these chains using a two-step asynchronous execution model.

How do I handle slippage and execution fees for GMX V2 withdrawals?

Handle slippage for GMX V2 withdrawals by configuring minMarketTokens or minGlvTokens parameters. Execution fees are calculated automatically via the SDK using a gas-based model to compensate keeper execution.

What is the two-step asynchronous execution model for GMX V2 shifts?

The two-step asynchronous execution model for GMX V2 shifts separates request submission from keeper execution. Users initiate the shift via ExchangeRouter or GlvRouter multicall, then a keeper executes the transaction.

Can I query GMX V2 pool data and vault metrics using the SDK?

Yes, you can query GMX V2 pool data and vault metrics using the SDK. The system provides access to REST and GraphQL endpoints for reading market, pool, and vault data across supported networks.