Betslips

Create betslip

Create a new betslip. For normal/lay bets supply sport, event_id, and bet_type. For parlays supply a legs array instead.

The response carries no prices: quotes are gathered asynchronously. Poll GET /v2/betslips/{betslip_id}/ until price_list populates (typically a couple of seconds; watch expiry_ts), or read the quote off the stream.

post/v2/betslips/

Request

  • Base URL: https://magicmarkets.com (the document declares no server; this is the origin it was published from)
  • URL: https://magicmarkets.com/v2/betslips/
  • Auth: API key in header X-Api-Key

Request body

sportstring

Sport code (required for normal/lay) - see "Sports & bet types" in the introduction.

event_idstring

Event ID (required for normal/lay)

bet_typestring

Bet type string (required for normal/lay) - see "Sports & bet types" in the introduction.

betslip_type'normal' | 'lay' | 'parlay'
equivalent_betsboolean
user_datastring nullable
exclude_dangerboolean

When true, only liquidity sources that do not hold bets in danger status are used. When false or omitted, all available liquidity sources are used.

Response

Betslip created

status'ok'

Changes

No recorded changes to this operation across all 1 revision of this API.