The Bulk Order API allows a client to submit and manage multiple limit orders (both bids and asks) in a single atomic transaction. Eac account can have at most one Bulk Order per market. This API cancels all existing resting liquidity for the market provided and replaces it with the new bulk set of orders (bids and asks). Partial failures (e.g., an order that cannot be posted due to aDocumentation Index
Fetch the complete documentation index at: https://docs.decibel.trade/llms.txt
Use this file to discover all available pages before exploring further.
PostOnly violation) do not revert the transaction — that particular order will simply
be skipped or partially placed. Cancelled price levels and sizes will be returned explicitly in the
update event.
** NOTE **
- Bulk Order Placements with a non-increasing
sequence_numberwill be rejected. - Order updates that reduce size will maintain its position in the matching queue, order updates that increase size will be moved to the end of the matching queue.
signer- The account signersubaccount- The Trading Account objectmarket- The PerpMarket objectsequence_number- The monotonically increasing number associated with this orderbid_prices-`vector<u64>`- Array of bid prices in chain unitsbid_sizes-`vector<u64>`- Array of bid sizes in chain unitsask_prices-`vector<u64>`- Array of ask prices in chain unitsask_sizes-`vector<u64>`- Array of ask sizes in chain unitsbuilder_address- Optional builder address`<Option<address>>`builder_fees- Optional builder fee`<Option<u64>>`

