Get order
curl --request GET \
--url https://magicmarkets.com/v2/orders/{order_id}/ \
--header 'X-Api-Key: <api-key>'import requests
url = "https://magicmarkets.com/v2/orders/{order_id}/"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://magicmarkets.com/v2/orders/{order_id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://magicmarkets.com/v2/orders/{order_id}/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"status": "ok",
"data": {
"order_id": 5001,
"order_type": "normal",
"bet_type": "for,h",
"bet_type_description": "Home",
"sport": "fb",
"want_price": 3.2,
"want_stake": [
"USDT",
115.38
],
"ccy_rate": 1,
"placement_time": "2026-06-15T12:00:00+00:00",
"expiry_time": "2026-06-15T12:05:00+00:00",
"closed": true,
"close_reason": "order_filled",
"status": "done",
"keep_open_ir": false,
"exchange_mode": "make_and_take",
"price": 3.2,
"stake": [
"USDT",
115.38
],
"profit_loss": [
"USDT",
253.84
],
"bet_bar_values": null,
"current_score": null,
"legs": null,
"event_info": {
"event_type": "normal",
"event_id": "2026-06-15,1001,2002",
"event_name": "Arsenal vs. Chelsea",
"home_id": 1001,
"home_team": "Arsenal",
"away_id": 2002,
"away_team": "Chelsea",
"competition_id": 1,
"competition_name": "England Premier League",
"competition_country": "XE",
"start_time": "2026-06-15T15:00:00+00:00",
"date": "2026-06-15",
"result": {
"ht_home": 0,
"ht_away": 0,
"ft_home": 2,
"ft_away": 1
}
},
"bets": [
{
"bet_id": 1,
"order_id": 5001,
"order_ccy_rate": 1,
"status": {
"code": "success"
},
"sport": "fb",
"event_id": "2026-06-15,1001,2002",
"bet_type": "for,h",
"ccy_rate": 1,
"want_price": 3.2,
"got_price": 3.2,
"want_stake": [
"USDT",
115.38
],
"got_stake": [
"USDT",
115.38
],
"profit_loss": [
"USDT",
253.84
],
"reconciled": true,
"exchange_role": "taker"
}
],
"user_data": null
}
}{
"status": "error",
"code": "auth_error",
"data": {
"detail": "Authentication credentials were not provided."
}
}{
"status": "error",
"code": "forbidden",
"data": null
}{
"status": "error",
"code": "not_found",
"data": null
}{
"status": "error",
"code": "throttled",
"data": {
"message": "Request was throttled. Expected available in 12 seconds.",
"retry_after": 12
}
}{
"status": "error",
"code": "server_error",
"data": [
"An error has occurred, token:",
"ABC123abc456DEF789gh"
]
}Get order
Returns a single order by ID with all stakes in USDT.
GET
/
v2
/
orders
/
{order_id}
/
Get order
curl --request GET \
--url https://magicmarkets.com/v2/orders/{order_id}/ \
--header 'X-Api-Key: <api-key>'import requests
url = "https://magicmarkets.com/v2/orders/{order_id}/"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://magicmarkets.com/v2/orders/{order_id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://magicmarkets.com/v2/orders/{order_id}/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"status": "ok",
"data": {
"order_id": 5001,
"order_type": "normal",
"bet_type": "for,h",
"bet_type_description": "Home",
"sport": "fb",
"want_price": 3.2,
"want_stake": [
"USDT",
115.38
],
"ccy_rate": 1,
"placement_time": "2026-06-15T12:00:00+00:00",
"expiry_time": "2026-06-15T12:05:00+00:00",
"closed": true,
"close_reason": "order_filled",
"status": "done",
"keep_open_ir": false,
"exchange_mode": "make_and_take",
"price": 3.2,
"stake": [
"USDT",
115.38
],
"profit_loss": [
"USDT",
253.84
],
"bet_bar_values": null,
"current_score": null,
"legs": null,
"event_info": {
"event_type": "normal",
"event_id": "2026-06-15,1001,2002",
"event_name": "Arsenal vs. Chelsea",
"home_id": 1001,
"home_team": "Arsenal",
"away_id": 2002,
"away_team": "Chelsea",
"competition_id": 1,
"competition_name": "England Premier League",
"competition_country": "XE",
"start_time": "2026-06-15T15:00:00+00:00",
"date": "2026-06-15",
"result": {
"ht_home": 0,
"ht_away": 0,
"ft_home": 2,
"ft_away": 1
}
},
"bets": [
{
"bet_id": 1,
"order_id": 5001,
"order_ccy_rate": 1,
"status": {
"code": "success"
},
"sport": "fb",
"event_id": "2026-06-15,1001,2002",
"bet_type": "for,h",
"ccy_rate": 1,
"want_price": 3.2,
"got_price": 3.2,
"want_stake": [
"USDT",
115.38
],
"got_stake": [
"USDT",
115.38
],
"profit_loss": [
"USDT",
253.84
],
"reconciled": true,
"exchange_role": "taker"
}
],
"user_data": null
}
}{
"status": "error",
"code": "auth_error",
"data": {
"detail": "Authentication credentials were not provided."
}
}{
"status": "error",
"code": "forbidden",
"data": null
}{
"status": "error",
"code": "not_found",
"data": null
}{
"status": "error",
"code": "throttled",
"data": {
"message": "Request was throttled. Expected available in 12 seconds.",
"retry_after": 12
}
}{
"status": "error",
"code": "server_error",
"data": [
"An error has occurred, token:",
"ABC123abc456DEF789gh"
]
}
