Overtime V2 quote data

Get quote data for a ticket.

Users placing trades with THALES will get 1% extra payouts for each game they have on their ticket.

REST API

POST https://overtimemarketsv2.xyz/overtime-v2/networks/{{network}}/quote

See quote API endpoint with request/response examples under Postman documentation.

Example Request

https://overtimemarketsv2.xyz/overtime-v2/networks/10/quote

Request body

{
    "buyInAmount": 20,
    "tradeData": [
        {
            "gameId": "0x3430343338353300000000000000000000000000000000000000000000000000",
            "sportId": 50,
            "typeId": 0,
            "maturity": 1719342000,
            "status": 0,
            "line": 0,
            "playerId": 0,
            "odds": [
                0.740740740741,
                0.102249488753,
                0.208768267223
            ],
            "merkleProof": [
                "0xc4788d799bccce5adea24c9a3088da1072ba0a4e7405184cf164cd8bc8dc715e",
                "0x8f2f3a9252434ac2320a8b9833608ef0bd382a145880216e28fc16048bbdf8b2",
                "0x7fd099566663a5ebede7a59fef79a517fba1d3d41e387393347d7c6934f9d284",
                "0x2673a92127311f5da209b213b893a2593355c8e3861dc58972ce6481a61cdc6e",
                "0x34fb69550251ccd91c37fe74fde3e871edec0cc72b34cf8f81dc062a9576e4e4",
                "0xba41529042360b755dc63ee09acc6e666eeae346d945a1b4067aef22b7e7e2b8"
            ],
            "position": 1,
            "combinedPositions": [
                [],
                [],
                []
            ],
            "live": false
        }
    ],
    "collateral": "THALES"
}

Request Parameters

NameTypeDescription

buyInAmount*

number

(Required) Buy-in amount

tradeData*

(Required) Markets data obtained from Markets API.

collateral

string

(Optional) Collateral used for trade. If omitted, default collateral will be used for quote.

TradeData

NameTypeDescription

gameId

string

Game ID from Markets API response.

sportId

number

Subleague ID from Markets API response.

typeId

number

Type ID from Markets API response.

maturity

number

Maturity from Markets API response.

status

number

line

number

playerId

number

Player ID from Markets API response.

odds

number[]

Normalized Implied odds from Markets API response.

merkleProof

string[]

position

number

Selected position on the market.

combinedPositions

Combined positions from Markets API response.

live

boolean

Always false. The quote endpoint is not used for live markets.

Example Response

{
  "quoteData": {
    "totalQuote": {
      "american": 887.8787878745005,
      "decimal": 9.878787878745005,
      "normalizedImplied": 0.10122699386547
    },
    "payout": {
      "THALES": 197.5757575749001,
      "usd": 49.08809212099907,
      "payoutCollateral": "THALES"
    },
    "potentialProfit": {
      "THALES": 177.5757575749001,
      "usd": 44.11905212099907,
      "percentage": 8.878787878745005
    },
    "buyInAmountInUsd": 4.96904
  },
  "liquidityData": {
    "ticketLiquidityInUsd": 1187
  }
}

Response Parameters

NameTypeDescription

quoteData

Ticket quote data

liquidityData

Ticket liquidity data

QuoteData

NameTypeDescription

totalQuote

Ticket total quote

payout

Ticket payout data

potentialProfit

Ticket profit data

buyInAmountInUsd

number

Buy-in amount in default collateral

PayoutData

NameTypeDescription

[collateral]

number

Potential payout in collateral. Available only for THALES, ETH, or WETH. More about the V2 collateral upgrade in the Medium article.

usd

number

Potential payout in default collateral

payoutCollateral

string

Default payout collateral. For THALES, ETH, or WETH only available payout collateral is the one used for trade. More about the V2 collateral upgrade in the Medium article.

ProfitData

NameTypeDescription

[collateral]

number

Potential profit in collateral. Available only for THALES, ETH, or WETH. More about the V2 collateral upgrade in the Medium article.

usd

number

Potential profit in default collateral

percentage

number

Potential profit in percentage

LiquidityData

NameTypeDescription

ticketLiquidityInUsd

number

Available liquidity for the ticket in default collateral

Last updated