Skip to main content
PUT
Set your builder fee rules

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.

Body

application/json
upserts
object[] | null

Rules to create or change, each by its scope.

deletes
object[] | null

Scopes of your rules to delete. Your default rule (no wallet, every market, both tracks) is set with SetBuilderFee and cannot be changed or deleted here; nor can an upsert name it.

note
string | null

A note saved with every rule this call writes.

Response

OK

changes
object[] | null

Every rule this call changed; empty when it changed nothing.

changesRemaining
integer<uint32> | null

Changes this application can still make in the current rolling 24 hours.

Required range: x <= 500
Example:

49

nextChangeAllowedAt
string<date-time> | null

RFC 3339 time at which the next change becomes allowed, or null while changesRemaining is above 0.