v1

latestOpenAPI 3.0.12026-07-26251295.9 KB
Trades

Get trades

This endpoint retrieves past trades on the exchange split up by order. This is a paginated endpoint. For example, if a trade fills more than one order at once, it will show up as two entries for the bettor. If bettor is not provided, results are limited to trades placed within the last 12 months.

get/trades

Query parameters

startDateinteger

Only get trades placed after this time in UNIX seconds

endDateinteger

Only get trades placed before this time in UNIX seconds

bettorstring

Only get trades placed by this bettor (regardless if maker or taker)

settledboolean

If true, only get settled trades

marketHashesstring[]

Only get trades for particular markets. Comma separated. Maximum 100 market hashes per request; requests exceeding this are rejected with a 400 error

baseTokenstring

Only get trades placed for a particular token

makerboolean

If true, only get trades where the bettor is the maker

affiliatestring

Only get trades under this affiliate

pageSizeinteger

Requested page size. Each call will only return up to this amount of records. Default is 100.

paginationKeystring

Used for pagination. Pass the nextKey returned from the previous request to retrieve the next set of records.

tradeStatusstring

Filter trades to see only those with SUCCESS or FAILED status

sportXeventIdstring

Only get trades for this event ID

Response

statusstring

success or failure if the request succeeded or not