---
title: "Obtain latest odds for a selection based on market key, outcome and params."
method: POST
path: "/v2/odds/lines"
tags: ["API-Version-2.0"]
---

# Obtain latest odds for a selection based on market key, outcome and params.

`POST /v2/odds/lines`

## Request body

- PostLine — LineRequest presents the line fetch request JSON body
  - `eventId` string, required — Event ID for which the line fetch is requested
  - `marketUrl` string, required — `marketUrl` is composed from the initial Feed API selection response as `marketKey/outcome?params`. If no params (empty string) were present in the initial Feed API response, then omit the `params` query string format the `marketUrl` as `marketKey/outcome` Special Note about handicap markets: For handicap markets a line is identified by the same params. Selections can be grouped by market key and params alone. Home and away outcomes then have the same market URL for the same handicap lines. The handicap value is dictated by the home team value and inverted on the away side.

## Response `200`

LineResponse

- LineResponse — LineResponse presents a selection for a given market key, outcome and params
  - `maxStake` number, double — maximum stake in EUR which can be placed in bets on this Selection; market liability = selection max stake * (price - 1);
  - `minStake` number, double — minimum stake in EUR which can be placed in bets on this Selection
  - `outcome` string — outcome of this Selection
  - `params` string — parameters to be sent by the client during bet placement on this selection, such as handicap, period etc. Special Note about handicap markets: For handicap markets a line is identified by the same params. Selections can be grouped by market key and params alone. Home and away outcomes then have the same market URL for the same handicap lines. The handicap value is dictated by the home team value and inverted on the away side.
  - `marketUrl` string — Providing a market URL for betting, it is composed from the initial Feed API selection response as `marketKey/outcome?params`
  - `price` number, double — price at which bets can be placed on this Selection
  - `probability` number, double — probability of this Selection's outcome
  - `side` 'BACK' | 'LAY' — Side of a selection signals whether a selection is available for back or lay side betting
  - `status` 'SELECTION_DISABLED' | 'SELECTION_ENABLED' — SelectionStatus presents the current status for a given selection

## Other responses

- `400` — Error
- `401` — Error
- `404` — Error
- `500` — Error

---

[API](https://skmtc.net/cloudbet/apis/cloudbet-feed-api.md) · [All operations](https://skmtc.net/cloudbet/apis/cloudbet-feed-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cloudbet/cloudbet-feed-api/versions/304403f067b1/schema)
