GRVT Exchange CLI for Openclaw

A professional-grade command-line interface and Node.js library for trading perpetuals, futures, and options on the GRVT exchange.

madeinusmate
v1.0.0
Feb 22, 2026
0
1.3k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install grvt-markets-agent-skill

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install grvt-markets-agent-skill using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is GRVT Exchange CLI?

The GRVT Exchange CLI provides a robust bridge between your local development environment and Gravity Markets, a high-performance crypto derivatives exchange. By leveraging this tool within Openclaw Skills, developers and traders can gain programmatic control over their trading activities, from simple market orders to complex portfolio management across multiple sub-accounts. It is designed to handle the nuances of derivative trading, including instrument discovery, margin rules, and funding rates.

This skill is built for those who prioritize efficiency and automation in their trading workflows. It supports multiple environments such as testnet for safe strategy testing and production for live execution. By integrating Openclaw Skills with this CLI, you can build sophisticated agents that react to market movements, manage risk via automated derisking, and maintain a clear audit trail of all transactions through structured JSON logging.

GRVT Exchange CLI Use Cases

  • Execute limit, market, and post-only orders for various crypto perpetuals and futures.
  • Stream real-time market data including orderbooks, candles, and tickers for analysis.
  • Manage sub-account liquidity with automated internal transfers and Ethereum-based withdrawals.
  • Monitor open positions, funding payments, and account history across different trading pairs.
  • Automate risk management tasks like setting leverage levels or setting up cancel-on-disconnect protection.

How GRVT Exchange CLI Works

  1. The user configures the desired environment and sub-account details using the local configuration manager.
  2. Secure authentication is established via API keys and EIP-712 private key signing for authorized operations.
  3. The skill queries market data endpoints to fetch current prices, instruments, and orderbook depth.
  4. Trading commands are processed locally, signed if necessary, and transmitted to the GRVT API for execution.
  5. The system returns structured responses in formats like JSON or table for immediate verification or further processing.

GRVT Exchange CLI Setup

To begin using this skill, install the CLI package globally using pnpm:

pnpm add -g @madeinusmate/grvt-cli

For automated environments and Openclaw Skills integration, perform the manual setup to configure your environment and credentials:

grvt config set env testnet
grvt auth login --api-key YOUR_API_KEY --private-key 0xYOUR_PRIVATE_KEY
grvt config set subAccountId YOUR_SUB_ACCOUNT_ID

Verify that your configuration and authentication are active:

grvt auth status
grvt config list

GRVT Exchange CLI Data Schema & Taxonomy

The skill manages sensitive data and configurations using a secure local filesystem approach.

Component Description
Configuration Stored in ~/.config/grvt/config.toml with 0600 permissions.
Secret Management API and private keys are stored locally and redacted in standard configuration outputs.
Output Formats Supports table for humans, and json or ndjson for programmatic consumption.
Instrument Naming Follows a strict {BASE}_{QUOTE}_{TYPE} pattern, e.g., BTC_USDT_Perp.
Timestamps Accepts and returns data in Unix (seconds, ms, ns) or ISO 8601 formats.

GRVT Exchange CLI Advanced Features

  • Utilize NDJSON output with the --all flag to stream and process massive historical datasets without memory bottlenecks.
  • Perform dry-run executions to preview signed payloads and validate logic before committing funds to the exchange.
  • Implement fail-safes using the cancel-on-disconnect feature to protect positions during network instability.
  • Leverage the underlying Node.js library to build custom trading bots or deeply integrated financial applications.
  • Use dot-notation configuration to fine-tune HTTP timeouts, retries, and exponential backoff settings for high-frequency environments.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*