Skip to main content
POST

Authorizations

X-Api-Key
string
header
required

API key created from the magic-markets website

Body

application/json
sport
string

Only close orders on this sport - see "Sports & bet types" in the introduction.

Maximum string length: 12
event_id
string

Only close orders on this event (requires sport)

Response

Cancellation accepted. data is a list of the order-id lists being cancelled; an empty result is [[]].