Skip to main content
PUT
Replace all limit orders on a market

Authorizations

X-API-Key
string
header
required

Body

application/json

Replace every resting limit order on one market with orders.

market
string
default:u8tnfCb1JSSghuNFquQ2beStYgAN1kmd1f1Lhxbaec4
required
orders
object[]
required

The complete intended set. Empty cancels every resting order.

signer
string
default:GLKCuotKSjPtQhxHmf6q8GUkw6tUZnzs8W5vEbxdaBdK
required

The wallet that signs: the book's maker, or with accountOwner the account's owner or delegate. Existing clients may keep sending it as owner; send one name only.

accountOwner
string | null

The wallet that owns the ArcherAccount this request acts through. With platform it derives the account PDA server-side — you never handle a PDA. Omit for a plain wallet-owned book. Replaces the earlier archerAccount field, which is no longer read.

crossSpread
boolean
default:false

Allow levels that cross a registered maker's quote. Default false sends the write post-only.

platform
enum<string> | null
default:self

Platform namespace for accountOwner. Ignored unless accountOwner is set.

Available options:
self,
treadfi
withInstructions
boolean | null
default:false

Also return the unsigned instructions under instructions, for composing your own transaction instead of signing ours. Omitted or false leaves the response exactly as it was.

Response

Unsigned transaction built (limit order, or a market order when swapIfReject fired).

Result of placing a limit order. When orderKind='limit', all LimitOrderActionResponse fields are present at the top level. When the price crossed the spread and swapIfReject was set, orderKind='market' and all BuildOrderResponse fields are present at the top level instead.

addressLookupTables
string[]
required
anchorMidTicks
integer<int64>
required

The book's mid anchor in ticks. Always 0 for limit-order books: a level's offset is its absolute price tick.

depositBaseLots
integer<int64>
required
depositQuoteLots
integer<int64>
required
expiresAt
integer<int64>
required
includesDeposit
boolean
required
nextSequenceNumber
integer<int64>
required

The maker-book sequence number this tx writes.

orderIds
string[]
required
requiredBaseLots
integer<int64>
required

Total base lots the resulting book state requires as collateral (the program's update_book solvency check).

requiredQuoteLots
integer<int64>
required

Total quote lots required, including the positive-maker-fee buffer.

transaction
string
required

Base64 unsigned VersionedTransaction in its wire encoding: a v0 message when the write fits 1232 bytes, otherwise a v1 (SIMD-0385) message, which a full maker registry needs. A v1 transaction must be sent base64-encoded and signed by a wallet that supports version 1.

orderKind
enum<string>
required

Which kind of order was built. 'market' only when a spread-crossing price triggered the swapIfReject fallback.

Available options:
limit,
market
instructions
object | null

Unsigned instructions, present only when the request set withInstructions.

price
string | null

Human price (quote per base) the order rests/rested at. Absent for cancel-all.

side
enum<string> | null

Side this action targets. Absent for cancel-all.

Available options:
buy,
sell
size
string | null

Human base-token size the action targets — placed size (place), new size (modify), or canceled size (cancel-one). Absent for cancel-all.