Properties
| Name | Type | Description |
|---|---|---|
| status | string | |
| data | array |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/magicmarkets-com/json-schema/magicmarkets-com-order-list-envelope-schema.json",
"title": "OrderListEnvelope",
"x-generated": "2026-11-17",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/magicmarkets-com-openapi.yaml#/components/schemas/OrderListEnvelope",
"type": "object",
"required": [
"status",
"data"
],
"properties": {
"status": {
"type": "string",
"enum": [
"ok"
]
},
"data": {
"type": "array",
"items": {
"$ref": "#/$defs/OrderResponse"
}
}
},
"$defs": {
"BetResponse": {
"type": "object",
"description": "Individual bet within an order",
"required": [
"bet_id",
"order_id",
"order_ccy_rate",
"status",
"sport",
"event_id",
"bet_type",
"ccy_rate",
"want_price",
"got_price",
"want_stake",
"got_stake",
"profit_loss",
"reconciled",
"exchange_role"
],
"properties": {
"bet_id": {
"type": "integer"
},
"order_id": {
"type": "integer"
},
"order_ccy_rate": {
"type": "number"
},
"status": {
"type": "object",
"description": "Bet status",
"required": [
"code"
],
"properties": {
"code": {
"type": "string",
"description": "e.g. matched, failed, settled"
},
"reason": {
"type": "string",
"description": "Human-readable failure reason; present only when `code` is `failed`"
},
"response_pmm": {
"oneOf": [
{
"$ref": "#/$defs/PriceLevel"
},
{
"type": "null"
}
]
}
}
},
"sport": {
"type": "string",
"description": "Sport code - see \"Sports & bet types\" in the introduction."
},
"event_id": {
"type": [
"string",
"null"
]
},
"bet_type": {
"type": "string",
"description": "Bet type string - see \"Sports & bet types\" in the introduction."
},
"ccy_rate": {
"type": "number"
},
"want_price": {
"type": "number"
},
"got_price": {
"type": [
"number",
"null"
]
},
"want_stake": {
"$ref": "#/$defs/StakeTuple"
},
"got_stake": {
"$ref": "#/$defs/StakeTuple"
},
"profit_loss": {
"oneOf": [
{
"$ref": "#/$defs/StakeTuple"
},
{
"type": "null"
}
]
},
"reconciled": {
"type": [
"boolean",
"null"
]
},
"exchange_role": {
"type": [
"string",
"null"
],
"enum": [
"maker",
"taker",
null
]
}
}
},
"EventInfo": {
"type": "object",
"required": [
"event_type",
"event_id",
"event_name"
],
"properties": {
"event_type": {
"type": "string",
"enum": [
"normal",
"multirunner",
"parlay"
]
},
"event_id": {
"type": [
"string",
"null"
],
"description": "null for parlay orders"
},
"event_name": {
"type": [
"string",
"null"
]
},
"home_id": {
"type": [
"integer",
"null"
],
"description": "Normal events only"
},
"home_team": {
"type": [
"string",
"null"
]
},
"away_id": {
"type": [
"integer",
"null"
],
"description": "Normal events only"
},
"away_team": {
"type": [
"string",
"null"
]
},
"competition_id": {
"type": [
"integer",
"null"
]
},
"competition_name": {
"type": [
"string",
"null"
]
},
"competition_country": {
"type": [
"string",
"null"
],
"description": "ISO country code (e.g. XE for England)"
},
"start_time": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"date": {
"type": [
"string",
"null"
],
"format": "date"
},
"result": {
"description": "Match or race result. The shape depends on the sport - see the `EventResult*` schemas. Null while the result is unknown.",
"oneOf": [
{
"$ref": "#/$defs/EventResultMatch"
},
{
"$ref": "#/$defs/EventResultTennis"
},
{
"$ref": "#/$defs/EventResultHockey"
},
{
"$ref": "#/$defs/EventResultTableTennis"
},
{
"$ref": "#/$defs/EventResultMultirunner"
},
{
"type": "null"
}
]
},
"teams": {
"description": "Runner list (multirunner events only)",
"oneOf": [
{
"type": "array",
"items": {
"type": "object",
"required": [
"team_id",
"name"
],
"properties": {
"team_id": {
"type": "integer"
},
"name": {
"type": "string"
}
}
}
},
{
"type": "null"
}
]
},
"end_time": {
"type": [
"string",
"null"
],
"format": "date-time",
"description": "Race end time (multirunner events only)"
},
"leg_event_infos": {
"type": [
"array",
"null"
],
"description": "Sub-event info for each leg (parlay orders only)",
"items": {
"$ref": "#/$defs/EventInfo"
}
}
}
},
"EventResultHockey": {
"type": "object",
"description": "Ice hockey. `tpN_*` are the three period scores; `tall_*` the regulation total; `pen_*` the penalty-shootout score.",
"required": [
"tp1_home",
"tp1_away",
"tp2_home",
"tp2_away",
"tp3_home",
"tp3_away",
"tall_home",
"tall_away",
"pen_home",
"pen_away"
],
"properties": {
"tp1_home": {
"type": [
"integer",
"null"
]
},
"tp1_away": {
"type": [
"integer",
"null"
]
},
"tp2_home": {
"type": [
"integer",
"null"
]
},
"tp2_away": {
"type": [
"integer",
"null"
]
},
"tp3_home": {
"type": [
"integer",
"null"
]
},
"tp3_away": {
"type": [
"integer",
"null"
]
},
"tall_home": {
"type": [
"integer",
"null"
]
},
"tall_away": {
"type": [
"integer",
"null"
]
},
"pen_home": {
"type": [
"integer",
"null"
]
},
"pen_away": {
"type": [
"integer",
"null"
]
}
}
},
"EventResultMatch": {
"type": "object",
"description": "Football and other two-half sports. `ht_*` are the half-time score and are omitted for single-period sports; `ft_*` are the full-time score.",
"required": [
"ft_home",
"ft_away"
],
"properties": {
"ht_home": {
"type": [
"integer",
"null"
]
},
"ht_away": {
"type": [
"integer",
"null"
]
},
"ft_home": {
"type": [
"integer",
"null"
]
},
"ft_away": {
"type": [
"integer",
"null"
]
}
}
},
"EventResultMultirunner": {
"type": "object",
"description": "Multirunner (outright) events.",
"required": [
"runner_results"
],
"properties": {
"runner_results": {
"type": "array",
"description": "Finishing positions per runner",
"items": {
"type": "object",
"required": [
"team_id",
"position"
],
"properties": {
"team_id": {
"type": "integer"
},
"position": {
"type": "integer",
"description": "1=first, 2=second, 0=unknown, -1=void, -2=non-runner, -3=eliminated"
}
}
}
},
"non_runner_count": {
"type": "integer"
}
}
},
"EventResultTableTennis": {
"type": "object",
"description": "Table tennis. `gameN_*` is the point score in game N (up to 7 games).",
"required": [
"game1_home",
"game1_away",
"game2_home",
"game2_away",
"game3_home",
"game3_away",
"game4_home",
"game4_away",
"game5_home",
"game5_away",
"game6_home",
"game6_away",
"game7_home",
"game7_away"
],
"properties": {
"game1_home": {
"type": [
"integer",
"null"
]
},
"game1_away": {
"type": [
"integer",
"null"
]
},
"game2_home": {
"type": [
"integer",
"null"
]
},
"game2_away": {
"type": [
"integer",
"null"
]
},
"game3_home": {
"type": [
"integer",
"null"
]
},
"game3_away": {
"type": [
"integer",
"null"
]
},
"game4_home": {
"type": [
"integer",
"null"
]
},
"game4_away": {
"type": [
"integer",
"null"
]
},
"game5_home": {
"type": [
"integer",
"null"
]
},
"game5_away": {
"type": [
"integer",
"null"
]
},
"game6_home": {
"type": [
"integer",
"null"
]
},
"game6_away": {
"type": [
"integer",
"null"
]
},
"game7_home": {
"type": [
"integer",
"null"
]
},
"game7_away": {
"type": [
"integer",
"null"
]
}
}
},
"EventResultTennis": {
"type": "object",
"description": "Tennis. `setN_pM` is player M's game count in set N.",
"required": [
"set1_p1",
"set1_p2",
"set2_p1",
"set2_p2",
"set3_p1",
"set3_p2",
"set4_p1",
"set4_p2",
"set5_p1",
"set5_p2",
"who_retired"
],
"properties": {
"set1_p1": {
"type": [
"integer",
"null"
]
},
"set1_p2": {
"type": [
"integer",
"null"
]
},
"set2_p1": {
"type": [
"integer",
"null"
]
},
"set2_p2": {
"type": [
"integer",
"null"
]
},
"set3_p1": {
"type": [
"integer",
"null"
]
},
"set3_p2": {
"type": [
"integer",
"null"
]
},
"set4_p1": {
"type": [
"integer",
"null"
]
},
"set4_p2": {
"type": [
"integer",
"null"
]
},
"set5_p1": {
"type": [
"integer",
"null"
]
},
"set5_p2": {
"type": [
"integer",
"null"
]
},
"who_retired": {
"type": [
"integer",
"null"
],
"description": "1 or 2 if a player retired, else 0 or null"
}
}
},
"LiveScore": {
"type": "object",
"description": "In-running score at a point in time, `{home, away}`.",
"required": [
"home",
"away"
],
"properties": {
"home": {
"type": "integer",
"minimum": 0,
"maximum": 1024,
"description": "Home-team score"
},
"away": {
"type": "integer",
"minimum": 0,
"maximum": 1024,
"description": "Away-team score"
}
}
},
"OrderResponse": {
"type": "object",
"required": [
"order_id",
"order_type",
"bet_type",
"bet_type_description",
"sport",
"want_price",
"want_stake",
"ccy_rate",
"placement_time",
"expiry_time",
"closed",
"close_reason",
"event_info",
"user_data",
"status",
"keep_open_ir",
"exchange_mode",
"price",
"stake",
"profit_loss"
],
"properties": {
"order_id": {
"type": "integer"
},
"order_type": {
"type": "string",
"description": "Order type. `normal`, `lay` and `parlay` are the types placed through this API; `brokerage`, `cashout` and `custom` can appear on orders created by other channels. Treat it as an open set.",
"enum": [
"normal",
"lay",
"parlay",
"brokerage",
"cashout",
"custom"
]
},
"bet_type": {
"type": "string",
"description": "Bet type string - see \"Sports & bet types\" in the introduction."
},
"bet_type_description": {
"type": "string"
},
"sport": {
"type": "string",
"description": "Sport code, or `parlay` for accumulators - see \"Sports & bet types\" in the introduction."
},
"want_price": {
"type": "number"
},
"want_stake": {
"$ref": "#/$defs/StakeTuple"
},
"ccy_rate": {
"type": "number",
"description": "Exchange rate at order time"
},
"placement_time": {
"type": "string",
"format": "date-time"
},
"expiry_time": {
"type": "string",
"format": "date-time"
},
"closed": {
"type": "boolean"
},
"close_reason": {
"type": [
"string",
"null"
],
"description": "Reason the order closed, e.g. order_filled, timed_out; null while open"
},
"event_info": {
"oneOf": [
{
"$ref": "#/$defs/EventInfo"
},
{
"type": "null"
}
]
},
"bets": {
"type": "array",
"items": {
"$ref": "#/$defs/BetResponse"
}
},
"user_data": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string",
"description": "Order lifecycle status: open, pending, failed, partial_void, full_void, done, or reconciled"
},
"keep_open_ir": {
"type": "boolean"
},
"exchange_mode": {
"type": [
"string",
"null"
],
"enum": [
"make_and_take",
"take_only",
"dark",
null
],
"description": "Exchange interaction mode as passed at creation; null on older orders"
},
"price": {
"type": [
"number",
"null"
],
"description": "Achieved price (null while open)"
},
"stake": {
"oneOf": [
{
"$ref": "#/$defs/StakeTuple"
},
{
"type": "null"
}
],
"description": "Aggregate stake across matched bets"
},
"profit_loss": {
"oneOf": [
{
"$ref": "#/$defs/StakeTuple"
},
{
"type": "null"
}
]
},
"bet_bar_values": {
"type": [
"object",
"null"
]
},
"current_score": {
"oneOf": [
{
"type": "array",
"prefixItems": [
{
"type": "integer",
"description": "Home score"
},
{
"type": "integer",
"description": "Away score"
}
],
"items": {
"type": "integer",
"minimum": 0,
"maximum": 32767
},
"minItems": 2,
"maxItems": 2
},
{
"type": "null"
}
],
"description": "The in-running score the exchange held for the event when the order was placed, `[home, away]`; null for pre-match orders and for events without a running score."
},
"legs": {
"oneOf": [
{
"$ref": "#/$defs/ParlayLegList"
},
{
"type": "null"
}
]
}
}
},
"ParlayLeg": {
"type": "object",
"required": [
"id",
"sport",
"event_id",
"bet_type",
"bet_type_description",
"price",
"outcome"
],
"properties": {
"id": {
"type": "integer"
},
"sport": {
"type": "string",
"description": "Sport code - see \"Sports & bet types\" in the introduction."
},
"event_id": {
"type": "string"
},
"bet_type": {
"type": "string",
"description": "Bet type string - see \"Sports & bet types\" in the introduction."
},
"live_score": {
"oneOf": [
{
"$ref": "#/$defs/LiveScore"
},
{
"type": "null"
}
],
"description": "In-running score this leg was selected against, or null"
},
"bet_type_description": {
"type": "string"
},
"price": {
"type": [
"number",
"null"
]
},
"outcome": {
"type": [
"string",
"null"
],
"enum": [
"w",
"l",
"v",
"v/w",
"l/v",
"l/w",
"unknown",
null
],
"description": "Leg settlement: `w` won, `l` lost, `v` void, `v/w` win-void, `l/v` void-loss, `l/w` loss-win (half outcomes), `unknown`, or null before settlement."
}
}
},
"ParlayLegList": {
"type": "array",
"items": {
"$ref": "#/$defs/ParlayLeg"
}
},
"PriceLevel": {
"type": "object",
"required": [
"effective"
],
"properties": {
"effective": {
"type": "object",
"required": [
"price",
"min",
"max"
],
"properties": {
"price": {
"type": "number",
"description": "Decimal price"
},
"min": {
"oneOf": [
{
"$ref": "#/$defs/StakeTuple"
},
{
"type": "null"
}
],
"description": "Minimum stake at this price level, or null"
},
"max": {
"oneOf": [
{
"$ref": "#/$defs/StakeTuple"
},
{
"type": "null"
}
],
"description": "Maximum stake at this price level, or null"
}
}
}
}
},
"StakeTuple": {
"type": "array",
"description": "[currency, amount] - e.g. [\"USDT\", 115.38]",
"prefixItems": [
{
"type": "string",
"description": "Currency code (always USDT in responses)"
},
{
"type": "number",
"description": "Amount"
}
],
"items": {
"type": [
"string",
"number"
]
},
"minItems": 2,
"maxItems": 2
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/magicmarkets-com-order-list-envelope"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.