Skip to main content

Overview

MEXC CLI is a command-line tool for querying market data, account information, placing trades, and managing financial products and activities from the terminal. It can also integrate with AI agents, which assemble commands and parameters from natural-language instructions.

There are 307 capabilities in total: 127 spot, 117 contract, 51 financial, 8 activity, and 4 futures market data. Among them, 63 do not require an API Key, including 37 public contract market endpoints, 18 public spot marketv2 queries, 3 public real-time spot streams, 2 spot kline endpoints that do not require a key, and 3 public real-time futures streams.

Two Ways to Use

Direct terminal useAI agent integration
Use caseQuery data, write scripts, batch operationsIssue instructions in natural language
PrerequisitesInstall and configure credentialsInstall and configure credentials
SeeTerminal UsageAI Agent Integration

Both approaches share the same installation and credential setup and can be used at the same time. Verify commands in the terminal before integrating an agent. Operations involving funds use the same confirmation mechanism; see Security.