This callback is sent when a Betfair-style exchange market receives real-time price updates. It includes up to 3 levels of back/lay prices and their respective volumes per runner.
Received Response (from SDK)
{
"data": [
{
"room": "1.245405949",
"data": {
"eid": 34484327,
"mid": "1.245405949",
"ip": true,
"tm": 72.74,
"r": [
{
"rid": 37302,
"s": "ACTIVE",
"b1": 180.00,
"b2": 140.00,
"b3": 110.00,
"l1": 630.00,
"l2": 900.00,
"l3": 940.00,
"br1": 148,
"br2": 400,
"br3": 984,
"lr1": 129,
"lr2": 100,
"lr3": 574
},
{
"rid": 37303,
"s": "ACTIVE",
"b1": 0,
"b2": 0,
"b3": 0,
"l1": 1.01,
"l2": 3.00,
"l3": 0,
"br1": 0,
"br2": 0,
"br3": 0,
"lr1": 404566,
"lr2": 1915,
"lr3": 0
}
],
"res": "",
"s": "OPEN",
"sb": null,
"t": 1752150270234,
"go": 0
}
}
]
}
Glossary of Keys (Betfair Market)
| Key | Description |
|---|---|
room | Unique identifier for the Betfair-style market |
eid | Event ID |
mid | Market ID |
ip | In-play status (true = live, false = pre-match) |
tm | Total matched volume |
res | Result (if declared) |
s | Betfair status (OPEN, SUSPENDED, etc.) |
go | Game over flag (Boolean Value) |
t | Timestamp (epoch ms) |
r[] | Array of runners with full ladder info |
sb | Status (S = Suspended, null = Active) |
Runner Object (r[])
| Key | Description |
|---|---|
rid | Runner ID |
s | Runner status (e.g., ACTIVE) |
b1-3 | Back (level 1–3) |
l1-3 | Lay (level 1–3) |
br1-3 | Back rate (level 1–3) |
lr1-3 | Lay rate (level 1–3) |
Usage Notes:
- Show betting ladders using
b1-b3andl1-l3with respective volumes - In exchange-style UIs, this allows showing market depth and liquidity
- Listen to
s: "SUSPENDED"orgo: 1for disabling the market