Core
Shared exceptions, transport helpers, validation helpers, and common type aliases.
User code should import supported package exceptions from mexc directly:
Root Exceptions
These exceptions are part of the package-root public surface:
Error: base package exception.NetworkError: connection failures, timeouts, and transport errors.AuthError: missing credentials, invalid signatures, or rejected authentication.BadRequest: invalid request parameters or malformed payloads rejected locally or remotely.RateLimited: provider-side rate limiting.ApiError: the remote API returned an error payload or unsuccessful response.ValidationError: the response shape did not match the expected schema.LogicError: incorrect local usage of the client.
Core Types
These aliases live under mexc.core and are used by generated method signatures:
Timestamp: accepted timestamp input type for request parameters that may bedatetime, numeric timestamps, or numeric timestamp strings.OrderSide: shared spot order side literal.OrderType: shared spot order type literal.OrderStatus: shared spot order status literal.TimeInForce: shared spot time-in-force literal.
Validation And Transport
These helpers are mostly used by generated modules and advanced integrations:
mexc.core.ValidationMixin: response validation and output parsing mixin.mexc.core.HttpClient: async HTTP transport client.mexc.core.HttpMixin: request helper mixin used by REST endpoint groups.mexc.core.validator: pydantic adapter factory used by generated response models.mexc.core.timestamp: timestamp conversion helper used by generated request encoders.