Skip to main content
GET
List TWAP order slices

Authorizations

X-Monaco-Signature
string
header
required

Ed25519 session-key request signing. Every authenticated request carries three headers: X-Monaco-PublicKey (64-char lowercase-hex session public key), X-Monaco-Timestamp (Unix milliseconds, within 30s of server time), and X-Monaco-Signature (hex ed25519 signature). The signature is over METHOD\npath?query\ntimestamp_ms\nSHA256_hex(body), where the body hash is the SHA-256 of the empty byte string when there is no body. Obtain the session keypair from POST /api/v1/auth/challenge followed by POST /api/v1/auth/verify.

Path Parameters

twapOrderId
string
required

Query Parameters

pageSize
integer<uint32>
default:20

Items per page (max 1000)

Required range: 1 <= x <= 1000
orderBy
enum<string>
default:ASC

Sort direction for createdAt: ASC (oldest slice first) or DESC

Available options:
ASC,
DESC
Minimum string length: 1
pageToken
string

Pagination cursor with two states:

  • Omitted or empty string (""): start a cursor walk from the first slice in order_by order.
  • Non-empty: an opaque cursor from a previous response's next_page_token; results resume immediately after that position.

Pages are keyset seeks on (createdAt, id). The TWAP order id and order_by must match the request that produced the token; a token replayed against a different parent or direction is rejected.

Response

OK

slices
object[] | null

The parent's child orders, each as GetOrder returns it; every one carries the parent's id in parentOrderId.

pageSize
integer<uint32> | null

Items per page

Example:

20

nextPageToken
string | null

Cursor for the next page, minted only when a further page exists — the read over-fetches one row to decide. Empty on the final page; that empty token is the definitive end of the walk. Do not feed the empty token back as page_token — an empty input page_token restarts the walk.