gdex-perp-trading

Trade HyperLiquid perpetual futures with GDEX managed-custody.

4|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/GemachDAO/gdex-skill --skill gdex-perp-trading
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gdex-perp-trading
Source: https://github.com/GemachDAO/gdex-skill/tree/main/skills/gdex-perp-trading
Command: npx skills add https://github.com/GemachDAO/gdex-skill --skill gdex-perp-trading

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Perpetual futures trading on HyperLiquid can be complex and error-prone, requiring careful management of leverage, order types, and risk controls across platforms. This skill provides a unified interface for GDEX managed-custody to open/close perpetual positions, adjust leverage, and place market or limit orders with take-profit and stop-loss protections.

Core Features & Use Cases

  • Open/Close Perp Positions: Initiate and exit long or short positions with configurable leverage.
  • Advanced Order Types: Place market or limit HL orders with take-profit and stop-loss safeguards.
  • Account & Position Discovery: Query current positions, mark prices, and overall account state to inform decisions.
  • Use Case: A trader wants to open a BTC perpetual long with 5x leverage and TP/SL to manage risk automatically.

Quick Start

Open a BTC perpetual long with 5x leverage and a take-profit at 110000.

Frequently Asked Questions about gdex-perp-trading

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

FAQPage Schema
How do I trade perpetual futures on HyperLiquid with managed custody?▼

To trade perpetual futures on HyperLiquid, you can use GDEX managed-custody to open and close perp positions, adjust leverage, and place market or limit orders with take-profit and stop-loss protections. It requires the @gdexsdk/gdex-skill library and API key authentication.

Can I place market and limit orders with take-profit and stop-loss on HyperLiquid perps?▼

Yes, you can place both market and limit orders with take-profit and stop-loss safeguards on HyperLiquid perpetual futures. This functionality is executed through GDEX managed-custody using the loginWithApiKey() authentication method.

Do I need USDC deposited to HyperLiquid to open perp positions?▼

Yes, USDC deposited to HyperLiquid is required to open perpetual positions. You also need to authenticate via loginWithApiKey() and use the @gdexsdk/gdex-skill library to manage your trades through GDEX custody.

How do I query my current perpetual positions and account state?▼

You can query current positions, mark prices, and overall account state to inform trading decisions. This position and account discovery is handled directly through the GDEX managed-custody interface for HyperLiquid perpetual futures.

What's the best way to manage risk when opening a BTC perpetual long?▼

The best way to manage risk on a BTC perpetual long is to configure leverage and attach take-profit and stop-loss orders. GDEX managed-custody allows you to set these parameters automatically when initiating positions on HyperLiquid.

Why use GDEX managed-custody instead of directly trading on HyperLiquid?▼

GDEX managed-custody provides a unified interface for HyperLiquid that simplifies opening and closing positions, adjusting leverage, and placing orders with risk controls. It reduces errors by handling API authentication and position management through a single library.