v1

latestOpenAPI 3.0.12026-07-26251295.9 KB
Trades

Get consolidated trades

This endpoint retrieves past consolidated trades on the exchange via pagination. If a trade fills multiple orders, it will show up as one entry here per bettor. Requests must include at least one of bettor or marketHash; requests with neither are rejected with a 400 error.

get/trades/consolidated

Query parameters

bettorstring

Only get trades placed by this bettor. Requests must include at least one of bettor or marketHash.

settledboolean required

If true only get settled trades

pageinteger required

Page number for pagination

perPageinteger required

Amount of records to fetch per page

sortBy'totalStake' | 'totalBetTimeValue' | 'weightedAverageOdds' | 'netReturn' | 'netReturnBetTimeValue' | 'settleNetReturnValue' | 'outcome' | 'gameLabel' | 'bettingOutcome' | 'gameTime' | 'leagueLabel' | 'bettingOutcomeLabel' | 'betTime' | 'settleDate' | 'totalReturn'

Which field to sort by

sortAscboolean required

If true, sorts in ascending order

makerboolean

If true, only gets trades where the bettor was a market maker

sportXeventIdstring

Only gets trades for this event ID

tradeStatusstring

Filter trades to see only those with SUCCESS or FAILED status

marketHashstring

Only get trades for this market hash. Requests must include at least one of bettor or marketHash.

hideQuarterLineParentsboolean

If true, omits the synthetic parent consolidated trades of quarter-line bets, leaving only the underlying leg entries.

hideQuarterLineLegsboolean

If true, omits the leg consolidated trades of quarter-line bets, leaving only the parent entries. Recommended for user-facing P&L views.

Response

statusstring

success or failure if the request succeeded or not