> 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/single-match-odds.md).

# Single match odds

## Single match odds

> Return the full odd change data of the match (used as a supplement)\<br/>Request limit:Matches within 30 days before today\<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/>Request times:120 times/min\<br/>\<br/>Remarks:\<br/>The odds change data are all obtained in the real-time odds interface,and the real-time odds interface returns the odds data of all competitions in the last 60s,which needs to be recorded locally\<br/>If the odds data acquisition is missing or not acquired,check the gaps through the single match odds interface

```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/history":{"get":{"tags":["ODDS DATA"],"description":"Return the full odd change data of the match (used as a supplement)<br/>Request limit:Matches within 30 days before today<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/>Request times:120 times/min<br/><br/>Remarks:<br/>The odds change data are all obtained in the real-time odds interface,and the real-time odds interface returns the odds data of all competitions in the last 60s,which needs to be recorded locally<br/>If the odds data acquisition is missing or not acquired,check the gaps through the single match odds interface","summary":"Single match odds","operationId":"getOddsHistory","parameters":[{"$ref":"#/components/parameters/User"},{"$ref":"#/components/parameters/Secret"},{"name":"uuid","in":"query","description":"Match id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer"},"results":{"$ref":"#/components/schemas/OddsHistory"}}}}}},"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"}}},"schemas":{"OddsHistory":{"type":"object","properties":{"Company id":{"type":"object","description":"The key is the odds company id,see status code -> Odds Company id for details","properties":{"asia":{"type":"array","description":"Asia compensation","items":{"$ref":"#/deps/schemas/OddsHistoryAs"}},"eu":{"type":"array","description":"Euro compensation","items":{"$ref":"#/deps/schemas/OddsHistoryEu"}},"bs":{"type":"array","description":"Size ball","items":{"$ref":"#/deps/schemas/OddsHistoryBs"}},"cr":{"type":"array","description":"corner","items":{"$ref":"#/deps/schemas/OddsHistoryCr"}}}}}}},"responses":{"404NotFound":{"description":"Resource does not exist","content":{"application/json":{"schema":{"$ref":"#/common/schemas/ErrorMsg"}}}}}},"deps":{"schemas":{"OddsHistoryAs":{"type":"array","description":"Asia Compensation Data Description(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:[1523242579,\"75\",1.06,0.75,0.86,4,0,\"0-0\"]\n\n**Field definitions**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `0` | Change time | Integer |\n| `1` | Time of the match,empty before start | String |\n| `2` | Home win | Float |\n| `3` | Handicap | Float |\n| `4` | Away win | Float |\n| `5` | Match status,please refer to Status Code -> Match Status | Integer |\n| `6` | Whether to seal the disk:0-No,1-Yes | Integer |\n| `7` | Score,home team-away team | String |\n","items":""},"OddsHistoryEu":{"type":"array","description":"Euro Compensation Data Description<br/>example:[1523242579,\"75\",4.75,3.0,1.83,1,0,\"0-0\"]\n\n**Field definitions**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `0` | Change time | Integer |\n| `1` | Time of the match,empty before start | String |\n| `2` | Home win | Float |\n| `3` | Draw | Float |\n| `4` | Away win | Float |\n| `5` | Match status,please refer to Status Code -> Match Status | Integer |\n| `6` | Whether to seal the disk:0-No,1-Yes | Integer |\n| `7` | Score,home team-away team | String |\n","items":""},"OddsHistoryBs":{"type":"array","description":"Size Ball Data Description<br/>example:[1523242579,\"75\",0.88,2.5,1.02,4,0,\"0-0\"]\n\n**Field definitions**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `0` | Change time | Integer |\n| `1` | Time of the match,empty before start | String |\n| `2` | Over | Float |\n| `3` | Handicap | Float |\n| `4` | Under | Float |\n| `5` | Match status,please refer to Status Code -> Match Status | Integer |\n| `6` | Whether to seal the disk:0-No,1-Yes | Integer |\n| `7` | Score,home team-away team | String |\n","items":""},"OddsHistoryCr":{"type":"array","description":"Corner kick Data Description<br/>example:[1523242579,\"75\",0.88,7.5,1.02,4,0,\"0-0\"]\n\n**Field definitions**\n\n| Index | Field | Type |\n| --- | --- | --- |\n| `0` | Change time | Integer |\n| `1` | Time of the match,empty before start | String |\n| `2` | Over | Float |\n| `3` | Handicap | Float |\n| `4` | Under | Float |\n| `5` | Match status,please refer to Status Code -> Match Status | Integer |\n| `6` | Whether to seal the disk:0-No,1-Yes | Integer |\n| `7` | Corner Ratio,home team-away team | String |\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/single-match-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.
