Skip to main content
POST
/
mm
/
quotes
Submit Quote
curl --request POST \
  --url https://api.totalis.com/mm/quotes \
  --header 'Content-Type: application/json' \
  --header 'UCALLEDIT_API_KEY: <api-key>' \
  --data '
{
  "rfq_id": "550e8400-e29b-41d4-a716-446655440000",
  "payout_odds": 4,
  "valid_for_seconds": 60,
  "leg_prices": [
    {
      "leg_id": "leg-uuid-1",
      "odds": 2
    },
    {
      "leg_id": "leg-uuid-2",
      "odds": 2
    }
  ]
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "parlay_ticket_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "market_maker_id": "<string>",
  "payout_odds": 500.505,
  "total_cost": 123,
  "total_payout": 123,
  "mm_payout": 123,
  "valid_until": "2023-11-07T05:31:56Z",
  "status": "pending",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "leg_prices": [
    {
      "leg_id": "<string>",
      "leg_odds": 123
    }
  ]
}

Authorizations

UCALLEDIT_API_KEY
string
header
required

API key for programmatic access. Format: api_live_xxxxxxxxxxxxxxxxxxxxx. Supported for REST API and WebSocket.

Body

application/json
rfq_id
string<uuid>
required

ID of the RFQ to quote

payout_odds
number
required

Payout multiplier (e.g., 4.0 means 4x return)

Required range: 1.01 <= x <= 1000
valid_for_seconds
integer
default:60

Quote validity duration in seconds

leg_prices
object[] | null

Optional per-leg price breakdown

Response

Quote submitted successfully

id
string<uuid>
required
parlay_ticket_id
string<uuid>
required
market_maker_id
string
required
payout_odds
number
required

Multiplier applied to bet_amount for total payout

Required range: 1.01 <= x <= 1000
total_cost
number
required

User's bet amount (same as RFQ bet_amount)

total_payout
number
required

Total payout if user wins (bet_amount * payout_odds)

mm_payout
number
required

Market maker's risk (total_payout - total_cost)

valid_until
string<date-time>
required
status
enum<string>
required

Lifecycle status of a quote

Available options:
pending,
accepted,
confirmed,
executed,
rejected,
expired,
withdrawn
created_at
string<date-time>
required
updated_at
string<date-time>
required
leg_prices
object[] | null