Overtime V2 user history
Get a user history. It returns all tickets grouped by status.
REST API
GET
https://overtimemarketsv2.xyz/overtime-v2/networks/{{network}}/users/{{userAddress}}/history
See the user history API endpoint with request/response examples under Postman documentation.
Example Request
Example Response
Response Parameters
Name | Type | Description |
---|---|---|
open | Ticket[] | Open tickets |
claimable | Ticket[] | Claimable tickets |
closed | Ticket[] | Closed tickets |
Ticket
Name | Type | Description |
---|---|---|
id | string | Ticket address |
timestamp | number | Ticket created timestamp |
collateral | string | Collateral used for ticket |
account | string | Ticket owner address |
buyInAmount | number | Ticket buy-in amount |
fees | number | Ticket fees (paid by LP) |
totalQuote | number | Ticket total quote |
payout | number | Ticket payout |
numOfMarkets | number | Number of markets on the ticket |
expiry | number | Ticket expiry timestamp (90 days from creation) |
isResolved | boolean | Is ticket resolved (exercised): |
isPaused | boolean | Is ticket paused: |
isCancelled | boolean | Is ticket cancelled (all markets on the ticket are cancelled): |
isLost | boolean | Is ticket lost (by user): |
isUserTheWinner | boolean | Is user the winner: |
isExercisable | boolean | Is ticket exercisable (all markets are resolved): |
isClaimable | boolean | Is ticket claimable (by user - user is the winner and not resolved): |
isOpen | boolean | Is ticket open: |
finalPayout | number | Final payout (set only for resolved tickets, otherwise is 0) |
isLive | boolean | Is live ticket (ticket with live market): |
sportMarkets | Selected markets on the ticket |
TicketMarket
Name | Type | Description |
---|---|---|
gameId | string | Game ID |
sport | string | Game sport. See Overtime V2 sports. |
leagueId | number | Game league ID. See Overtime V2 sports. |
leagueName | string | Game league name. See Overtime V2 sports. |
subLeagueId | number | Game subleague ID. It is used for some sports (tennis and UFC) to separate different levels and rounds of tournaments. (needed on the contract side, not used on UI). |
typeId | number | Type ID of the market. 0 for parent market (moneyline/winner). For other types see Overtime V2 market types. |
type | string | Type of the market. See Overtime V2 market types. |
line | number | Market line (if available). |
maturity | number | Game start timestamp |
maturityDate | date | Game start date and time |
homeTeam | string | The name of the home team |
awayTeam | string | The name of the away team |
isOpen | boolean | Is market open: |
isResolved | boolean | Is market resolved: |
isCancelled | boolean | Is market cancelled: |
isWinning | boolean | Is winning market for the user: |
isOneSideMarket | boolean | Is one-side market (motosport, golf winner...): |
isPlayerPropsMarket | boolean | Is player props market: |
isOneSidePlayerPropsMarket | boolean | Is one-side player props market (who will score first/last touchdown...): |
isYesNoPlayerPropsMarket | boolean | Is YES/NO player props market (double-double, triple-double...): |
playerProps | Player info (if player props market) | |
selectedCombinedPositions | Selected combined positions if the market is that type (half-time/full-time, winner+total...) | |
position | number | Selected position on the market |
odd | Market odds | |
gameStatus | string | Current game status |
isGameFinished | boolean | Is game finished: |
homeScore | number | string | Home team score or player score if the market is player props market |
awayScore | number | string | Away team score or 0 if the market is player props market |
homeScoreByPeriod | number[] | Home team score by period |
awayScoreByPeriod | number[] | Away team score by period |
PlayerProps
Name | Type | Description |
---|---|---|
playerId | number | Player ID |
playerName | string | The name of the player |
playerScore | number | string | Player score |
CombinedPosition
Name | Type | Description |
---|---|---|
typeId | number | The type ID of single market |
position | number | The position on the single market |
line | number | Single market line |
Odds
Name | Type | Description |
---|---|---|
american | number | American format of the odds |
decimal | number | Decimal format of the odds |
normalizedImplied | number | Normalized Implied format of the odds |
Last updated