Skip to main content
GET
A market's trades, oldest first, paged by block

Path Parameters

market
string
required

Market address, or "latest" for the newest market.

Pattern: ^(latest|0x[0-9a-fA-F]{40})$

Query Parameters

fromBlock
integer

First block to scan. Defaults to the start of the market.

Required range: x >= 0
limit
integer

Target trades per page, default 200.

Required range: 1 <= x <= 1000

Response

One page of trades.

market
string
required

0x-prefixed 20-byte address.

Pattern: ^0x[0-9a-fA-F]{40}$
fromBlock
integer
required
Required range: -9007199254740991 <= x <= 9007199254740991
toBlock
integer
required

Last block this page covers, inclusive.

Required range: -9007199254740991 <= x <= 9007199254740991
trades
object[]
required

Oldest first.

hasMore
boolean
required

More blocks can be scanned right now. Request again with fromBlock = nextFromBlock.

complete
boolean
required

The market is closed and every block has been scanned. No more trades will appear.

nextFromBlock
integer | null
required

Where the next page starts. Null once complete. For an open market that has caught up, poll this later.

Required range: -9007199254740991 <= x <= 9007199254740991