gmx-trading

gmx-trading is a skill for Claude Code, Codex from gmx-io/gmx-ai. It costs 62 tokens per session (5,473 once invoked), scanned A, original, MIT.

A connection to GMX V2, a decentralized exchange for trading tokens and perpetual contracts on several blockchains. Perpetuals are leveraged contracts with no expiry date.

In plain words
What is it for?
Use it to read prices, markets, positions, and trade history, or to create market, limit, and stop orders and manage leveraged positions through the SDK.
Why use it?
It lets software read market and position data and place or manage trades on GMX through code. It removes the need to perform every trading action manually.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to read prices, markets, positions, and trade history, or to create market, limit, and stop orders and manage leveraged positions through the SDK.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gmx-io/gmx-ai/gmx-trading
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add gmx-io/gmx-ai --skill gmx-trading
Clone the repo
git clone --depth 1 https://github.com/gmx-io/gmx-ai

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gmx-trading

README.md
[![agentmods](https://agentmods.dev/badge/skills/gmx-io/gmx-ai/gmx-trading/github.svg)](https://agentmods.dev/skills/gmx-io/gmx-ai/gmx-trading)
Your own site
<a href="https://agentmods.dev/skills/gmx-io/gmx-ai/gmx-trading"><img src="https://agentmods.dev/badge/skills/gmx-io/gmx-ai/gmx-trading/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gmx-trading

Your own site · 80×15
<a href="https://agentmods.dev/skills/gmx-io/gmx-ai/gmx-trading"><img src="https://agentmods.dev/badge/skills/gmx-io/gmx-ai/gmx-trading.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,473 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00062 $0.05473
Opus 5 $0.00031 $0.02736
Sonnet 5 $0.00012 $0.01095
Haiku 4.5 $0.00006 $0.00547

Measured 12d ago against content hash 402d37bfd6cc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

gmx-trading scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.well-known/skills/gmx-trading/SKILL.md · 518 lines

How it starts

The opening of the file, as written. The whole thing — 518 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GMX Trading Skill

Overview

GMX V2 is a decentralized perpetual and spot exchange using oracle-based pricing (Chainlink Data Streams) instead of AMM curves. Traders get CEX-like execution with onchain settlement.

Supported chains:

Chain Chain ID Native Token
Arbitrum 42161 ETH
Avalanche 43114 AVAX
Botanix 3637 BTC

Two integration paths:

  • SDK (@gmx-io/sdk) — Full read + write: fetch markets, create orders, manage positions
  • REST API — Read-only: prices, markets, positions, trade history

Trading modes:

  • Classic — User signs each transaction directly
  • Express — Gelato relay pays gas, user signs EIP-712 message (frontend only)
  • Express + One-Click — Subaccount delegates signing for instant execution (frontend only)

SDK Quick Start

Install the SDK:

npm install @gmx-io/sdk viem

Import note: The SDK's ESM build has broken imports (missing file extensions). Use CommonJS require or configure your bundler to resolve extensionless imports. In Node.js scripts, use const { GmxSdk } = require("@gmx-io/sdk").

Create an SDK instance:

const { GmxSdk } = require("@gmx-io/sdk");

const sdk = new GmxSdk({
  chainId: 42161,
  rpcUrl: "https://arb1.arbitrum.io/rpc",
  oracleUrl: "https://arbitrum-api.gmxinfra.io",
  subsquidUrl: "https://gmx.squids.live/gmx-synthetics-arbitrum:prod/api/graphql",
});

Chain configuration:

Chain chainId oracleUrl subsquidUrl
Arbitrum 42161 https://arbitrum-api.gmxinfra.io https://gmx.squids.live/gmx-synthetics-arbitrum:prod/api/graphql
Avalanche 43114 https://avalanche-api.gmxinfra.io https://gmx.squids.live/gmx-synthetics-avalanche:prod/api/graphql
Botanix 3637 https://botanix-api.gmxinfra.io https://gmx.squids.live/gmx-synthetics-botanix:prod/api/graphql

Set up a wallet for write operations:

Read the full file on GitHub · 518 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 518 lines · 62 tokens per session scan A 402d37bfd6cc

Subscribe to this mod's changes

gmx-trading is a skill published in the GitHub repository gmx-io/gmx-ai (11 stars, last pushed 5mo ago), licensed MIT. It adds 62 tokens to every session and 5,473 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

awaken-agent-skills

Awaken DEX trading and market data operations for agents.

Awaken-Finance/awaken-agent-skills · 18 tokens

SunSwap DEX Trading

Execute token swaps, manage liquidity, and query market data on SunSwap DEX via the sun-cli.

BofAI/skills · 27 tokens

ct-alpha

Crypto Twitter intelligence and alpha research. Search X/Twitter for real-time crypto narratives, trending tokens, yield strategies, smart money signals, and protocol research. Features TweetRank (PageRank-inspired credibility scoring), multi-signal token detection, coordinated raid detection, and dynamic tool…

sendaifun/skills · 71 tokens

crypto-token-analysis

Deep-dive framework for analyzing crypto tokens — market data, liquidity health, tokenomics, unlock schedules, and risk assessment. Combines on-chain data, API queries, and multi-source validation to generate actionable investment verdicts.

kevinnft/ai-agent-skills · 49 tokens

portkey-eoa-agent-skills

Portkey EOA wallet lifecycle and asset operations for creating, importing, listing, backing up, selecting, and deleting wallets; querying tokens, NFTs, prices, balances, and history; and performing transfers, approvals, bridge, view, send, and fee estimation operations on AElf. Use by default for direct EOA wallets…

Portkey-Wallet/eoa-agent-skills · 93 tokens

eforest-agent-skills

Skill "eforest-agent-skills" from eforest-finance/eforest-agent-skills, covering eforest agent skill, when to use, capabilities, safe usage rules and command recipes.

eforest-finance/eforest-agent-skills · 17 tokens