Keep offers in play

Matchbook now allows you to keep an unmatched offer active when an event goes in play. This will give you more time to have your offer matched.

Matchbook will still ensure that your offer is flushed for any other circumstance that Matchbook would normally flush all offers in a market, such as a horse being withdrawn from a race or a material event occurring in a soccer match.
This ensures that a user does not get matched at an unfavourable price after such an event occurs.

In order to make use of this feature a new boolean parameter (keep-in-play) was added to the submit offer/s request and response, as well as to the GET offers response. Code examples for this changes are provided in the following sections.

{
    "odds-type": "DECIMAL",
    "exchange-type": "back-lay",
    "offers": [
        {
            "side": "back",
            "odds": 2.0000,
            "stake": "50",
            "runner-id": "1083520157090024",
            "keep-in-play": true
        }
    ]
}
{
    "currency": "EUR",
    "exchange-type": "back-lay",
    "odds-type": "DECIMAL",
    "offers": [
        {
            "id": 1089391137760027,
            "event-id": 1089380982710024,
            "event-name": "Udinese vs Sassuolo",
            "market-id": 1089381020310024,
            "market-name": "Match Odds",
            "market-type": "one_x_two",
            "runner-id": 1083520157090024,
            "runner-name": "Udinese",
            "exchange-type": "back-lay",
            "side": "back",
            "odds": 2,
            "odds-type": "DECIMAL",
            "decimal-odds": 2,
            "stake": 50,
            "remaining": 50,
            "potential-profit": 50,
            "remaining-potential-profit": 50,
            "commission-type": "VOLUME",
            "originator-commission-rate": 0.01,
            "acceptor-commission-rate": 0.01,
            "commission-reserve": 1,
            "currency": "EUR",
            "created-at": "2019-04-10T11:33:05.206Z",
            "status": "open",
            "in-play": false,
            "keep-in-play": true
        }
    ]
}
{
    "id": 1089391137760027,
    "event-id": 1089380982710024,
    "event-name": "Udinese vs Sassuolo",
    "market-id": 1089381020310024,
    "market-name": "Match Odds",
    "market-type": "one_x_two",
    "runner-id": 1083520157090024,
    "runner-name": "Udinese",
    "exchange-type": "back-lay",
    "side": "back",
    "odds": 2,
    "odds-type": "DECIMAL",
    "decimal-odds": 2,
    "stake": 50,
    "remaining": 50,
    "potential-profit": 50,
    "remaining-potential-profit": 50,
    "commission-type": "VOLUME",
    "originator-commission-rate": 0.01,
    "acceptor-commission-rate": 0.01,
    "commission-reserve": 1,
    "currency": "EUR",
    "created-at": "2019-04-10T11:33:05.206Z",
    "status": "open",
    "in-play": false,
    "keep-in-play": true
}
{
    "id": 1089391137760027,
    "event-id": 1089380982710024,
    "event-name": "Udinese vs Sassuolo",
    "market-id": 1089381020310024,
    "market-name": "Match Odds",
    "market-type": "one_x_two",
    "runner-id": 1083520157090024,
    "runner-name": "Udinese",
    "exchange-type": "back-lay",
    "side": "back",
    "odds": 2,
    "odds-type": "DECIMAL",
    "decimal-odds": 2,
    "stake": 50,
    "remaining": 50,
    "potential-profit": 50,
    "remaining-potential-profit": 50,
    "commission-type": "VOLUME",
    "originator-commission-rate": 0.01,
    "acceptor-commission-rate": 0.01,
    "commission-reserve": 1,
    "currency": "EUR",
    "created-at": "2019-04-10T11:33:05.206Z",
    "status": "open",
    "in-play": false,
    "keep-in-play": false
}
{
    "id": 1089391137760027,
    "event-id": 1089380982710024,
    "event-name": "Udinese vs Sassuolo",
    "market-id": 1089381020310024,
    "market-name": "Match Odds",
    "market-type": "one_x_two",
    "runner-id": 1083520157090024,
    "runner-name": "Udinese",
    "exchange-type": "back-lay",
    "side": "back",
    "odds": 2,
    "odds-type": "DECIMAL",
    "decimal-odds": 2,
    "stake": 50,
    "remaining": 50,
    "potential-profit": 50,
    "remaining-potential-profit": 50,
    "commission-type": "VOLUME",
    "originator-commission-rate": 0.01,
    "acceptor-commission-rate": 0.01,
    "commission-reserve": 1,
    "currency": "EUR",
    "created-at": "2019-04-10T11:33:05.206Z",
    "status": "open",
    "in-play": false
}