Skip to main content
The pages in this section are generated from the OpenAPI 3.1 spec that MagicMarkets publishes at https://magicmarkets.com/v2/openapi.yaml. Each endpoint page shows the request, every response shape, and an interactive playground.

Base URL

Every path also works behind the /magic-api prefix.

Authentication

Send your API key in the X-Api-Key header on every request. See Authentication.

Envelope

Check status before reading data. Branch on code. See Errors and rate limits.

Endpoint groups

The playground sends real requests to the production API with the key you enter. POST /v2/orders/ places a real order with real USDT. POST /v2/orders/close_all/ with an empty body closes every open order on the account.

Versions

The spec carries info.version, currently 0.1.0. The changelog records dated changes to the API, the tools and these docs.