> For the complete documentation index, see [llms.txt](https://docs.thesports.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thesports.com/thesports-docs/odds-data/real-time-odds.md).

# Real-time odds

## Real-time odds

> Returns real-time changing odds data,and matches without odds changing will not return\<br/>Only return the odds data changed in the last 60 seconds,and the customer needs to record the change data by himself\<br/>\<br/>Range:Initial,Instant,Rolling Ball\<br/>The first handicap of each odds of each company is the initial market; the initial market to the kick-off is the instant market; after the kick-off is the in-play market (judging by the state)\<br/>\<br/>Suggested request frequency:3 seconds/time

```json
{"openapi":"3.0.1","info":{"title":"Football API","version":"1.0.251028"},"tags":[{"name":"ODDS DATA","description":"ODDS DATA"}],"servers":[{"url":"https://api.thesports.com"}],"paths":{"/v1/football/odds/live":{"get":{"tags":["ODDS DATA"],"description":"Returns real-time changing odds data,and matches without odds changing will not return<br/>Only return the odds data changed in the last 60 seconds,and the customer needs to record the change data by himself<br/><br/>Range:Initial,Instant,Rolling Ball<br/>The first handicap of each odds of each company is the initial market; the initial market to the kick-off is the instant market; after the kick-off is the in-play market (judging by the state)<br/><br/>Suggested request frequency:3 seconds/time","summary":"Real-time odds","operationId":"getOddsLive","parameters":[{"$ref":"#/components/parameters/User"},{"$ref":"#/components/parameters/Secret"}],"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer"},"results":{"type":"object","description":"Odds list","properties":{"Company id":{"type":"array","description":"The key is the odds company id,see status code -> Odds Company id for details","items":{"$ref":"#/deps/schemas/OddsLive"}}}}}}}}},"404":{"$ref":"#/components/responses/404NotFound"}}}}},"components":{"parameters":{"User":{"name":"user","in":"query","description":"Username,please contact business","required":true,"schema":{"type":"string"}},"Secret":{"name":"secret","in":"query","description":"Key,please contact business","required":true,"schema":{"type":"string"}}},"responses":{"404NotFound":{"description":"Resource does not exist","content":{"application/json":{"schema":{"$ref":"#/common/schemas/ErrorMsg"}}}}}},"deps":{"schemas":{"OddsLive":{"type":"array","description":"Odds data field description(Asian handicap: if it is positive, the home team will let the away team; if it is negative, the away team will let the home team)<br/>example:[\"kp3glrw7hwqdyjv\",\"asia\",[1578294410,\"2\",\"0.68,-1.25,1.15,0\",1],\"0-0\"]\n\n**Field definitions**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `0` | Match id | String |\n| `1` | Odds type:\"asia\"-Asia compensation,\"eu\"-Euro compensation,\"bs\"-Size ball,\"cr\"-Corner kick | String |\n| `2` | Nested array; see details below | Array |\n| `3` | Goal Score/Corner Ratio,home team-away team | String |\n\n**Index `2` details**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `2[0]` | Change time | Integer |\n| `2[1]` | Time of the match,empty before start | String |\n| `2[2]` | Home win/Over, Draw/Handicap, Away win/Under, whether the match is closed (1-closed,0-unclosed) | String |\n| `2[3]` | Match status,please refer to Status Code -> Match Status | Integer |\n","items":""}}},"common":{"schemas":{"ErrorMsg":{"type":"object","description":"abnormal","properties":{"code":{"type":"integer","description":"status code"},"msg":{"type":"string","description":"Error message"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.thesports.com/thesports-docs/odds-data/real-time-odds.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
