Skip to main content
POST
Trigger settlement

Authorizations

Authorization
string
header
required

Admin token set via the ADMIN_TOKEN environment variable.

Body

application/json
expiration
integer
required

Expiration to settle (Unix seconds)

Example:

1740729600

twap_prices
object
required

TWAP prices per asset in dollars (e.g., {"SOL": 180.25})

Example:
next_expiration
integer

Optional — if set, creates instruments for the next round and requires BTC, ETH, and SOL entries in twap_prices

Example:

1740816000

Response

Settlement completed

settled_instruments
integer
required
Example:

30

settled_positions
integer
required
Example:

42

cancelled_orders
integer
required
Example:

15

created_instruments
integer
required
Example:

30

settlements
object[]
required