OpenViSTAI · Agents · Blockchain · Crypto
Menu
Exchanges & Trading

Pymexc

Pymexc is an unofficial Python library for interacting with the MEXC cryptocurrency exchange. It provides spot and futures HTTP and WebSocket clients for exchange requests and streams.

Independent OpenViST project profile, based on linked sources.

Pymexc — OpenViST project profile in Exchanges & Trading.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use Pymexc when building Python software that needs the documented MEXC spot or futures client patterns, especially HTTP requests or WebSocket streams.

Who it is for

  • Python developers integrating MEXC exchange interactions into applications
  • Developers building command-line utilities for supported MEXC requests
  • Programmers retrieving market data or working with documented account and order examples

Documented uses

  • Retrieve spot prices, 24-hour statistics, order-book data and recent trades
  • Subscribe to documented spot or futures WebSocket streams
  • Use example patterns for account balances and spot order placement, status queries and cancellation
  • Request futures index-price data
Before you choose

Requirements & limits

  • The library is unofficial and points developers to MEXC API documentation.
  • HTTP and WebSocket are separate client classes with different interaction patterns.
  • The README uses API key and secret values in authenticated examples, while showing a public spot ticker request without them.
  • The futures web-client order example is separately labeled as a bypass and uses a user ID.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Install Pymexc and initialize an exchange client

Set up the library and initialize an HTTP client or WebSocket client for spot or futures interactions.

Before you start

  • Python environment with pip
  • MEXC API key and secret for the authenticated client examples

Steps

  1. Install the package with the command below.

    Documented command
    pip install pymexc
  2. Import spot or futures from pymexc.

  3. Initialize the relevant HTTP class for requests, or the WebSocket class for streams.

  4. For the authenticated examples, pass the API key and secret to the client.

Expected outcome

A spot or futures client object is initialized for the selected HTTP or WebSocket interaction pattern.

Guide limitations

  • The guide covers client initialization, not verification of a live exchange connection or a completed operation.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
8 October 2026
Original website title
makarworld/pymexc · Official homepage title · retained in its source language