Skip to main content
GET
List market trades

Authorizations

Authorization
string
header
required

Scoped API key (ttk_...), created in the Totalis app or by a wallet-session user through the API keys routes with a fresh wallet signature; those routes never accept a key. Each key acts for one account, yours or a maker's, and holds only scopes that account can use. Each operation lists the scopes it requires. Send no Origin.

Path Parameters

outcome_id
string
required

HIP-4 outcome ID of the market, as a decimal string.

Maximum string length: 10
Pattern: ^(0|[1-9][0-9]{0,8}|[1-3][0-9]{9}|4[01][0-9]{8}|42[0-8][0-9]{7}|429[0-3][0-9]{6}|4294[0-8][0-9]{5}|42949[0-5][0-9]{4}|429496[0-6][0-9]{3}|4294967[0-1][0-9]{2}|42949672[0-8][0-9]|429496729[0-5])$

Query Parameters

cursor
string

Omit for the first page; then send the previous response's next_cursor unchanged. Opaque list cursor. Send a previous response's next_cursor back unchanged; never build or parse one.

Required string length: 1 - 2048
limit
integer
default:50

Maximum items per page, 1 to 200, default 50. A page may hold fewer, even none, while has_more is true. Maximum items in one page. A page may hold fewer, even none, while has_more is true.

Required range: 1 <= x <= 200
before_height
integer

First page only, instead of cursor: start below this HyperCore height, such as a tradesSnapshot's complete_from_height. Without both, the page starts at the newest order the account index holds, which trails our node by about a second (through_height). A height above the index's through_height + 1 answers 503 DEPENDENCY_STALE, never stored, until the index reaches it: the heights between are in neither the stream nor the index yet, so retry after Retry-After. One at or below the index's floor, below which it holds nothing, answers 400 INVALID_QUERY naming before_height.

Required range: 1 <= x <= 9007199254740991

Response

A page of taker orders in whole blocks, at most limit unless its first block alone holds more

items
object[]
required

Taker orders of both tokens of the outcome, newest block first and each block's orders in execution order, as trades frames carry them.

next_cursor
string | null
required

Cursor for the next page, or null when the index holds no older order it can tell.

Required string length: 1 - 2048
has_more
boolean
required

Whether older indexed fills follow: the next page then holds at least one order, or names unknown_through_height when the next block cannot be told yet.

unknown_through_height
integer | null
required

Set when the page stopped above fills indexed before the index recorded which side crossed the book: taker orders at and below this height cannot be told until an import fills that in. Null otherwise.

Required range: 0 <= x <= 9007199254740991
through_height
integer
required

The account index's height: every taker order at or below it, outside gaps, is indexed.

Required range: 0 <= x <= 9007199254740991
gaps
MarketTradesGap · object[]
required

Heights in the span this page answers for (down to its oldest block while has_more, else to unknown_through_height + 1 or the index's floor) that the account index does not hold yet: orders there may be missing until it is repaired.