Skip to content

Environment Variables

This page lists the environment variables currently used by the MEXC client constructors.

Used Variables

MEXC_ACCESS_KEY=
MEXC_SECRET_KEY=

Guidance

  • MEXC.new(), Spot.new(), Futures.new(), and both stream constructors read these names when credentials are not passed explicitly
  • public-only calls can use MEXC.public(), Spot.public(), or Futures.public()
  • keep local values in an untracked .env file if needed
  • load them explicitly in scripts and notebooks