# OnMarketCancellation

This message would be responsible in updating the status of the market to "Cancelled".

*MessageType: onmarketcancellation*

Properties:

| Name              | Type          | Description                                                                |
| ----------------- | ------------- | -------------------------------------------------------------------------- |
| sportId           | int           | Unique id of a sport.                                                      |
| fixtureSpecifier  | string        | Unique id of the fixture.                                                  |
| markets           | List\<Market> | See [Market](#market-model) for more details                               |
| timeStampSent     | long          | epoch timestamp on when the message was sent by the provider               |
| timeStampReceived | long          | epoch timestamp on when our service received the message from the provider |

### Market Model

| Name             | Type   | Description                   |
| ---------------- | ------ | ----------------------------- |
| marketTemplateId | string | Template id of the market     |
| marketSpecifier  | string | Unique market specifier       |
| startTime        | long   | Start epoch timestamp         |
| endTime          | long   | End epoch timestamp           |
| voidReason       | string | Reason why the bet was voided |


---

# Agent Instructions: 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:

```
GET https://flyingcockatoo.gitbook.io/odds-feed-documentation/odds-feed-integration/message-types/onmarketcancellation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
