private/* call and works over both WebSocket and HTTP POST. See
Authentication for session login and Endpoints for
endpoints.
Taker
Initiates the RFQ, collects incoming quotes, and signs the execution that fills the block.
Maker
Discovers open RFQs, prices them, and submits signed quotes that the taker can execute.
Legs and packages
An RFQ is defined by its legs. Each leg names an instrument, an amount, and a side: A single-leg RFQ is a simple block; multi-leg RFQs let you price spreads, straddles, and delta-hedged option structures as one package that fills all-or-nothing at a singletotal_cost.
Instrument naming conventions are covered on the market-data reference. Resolve exact, currently-tradeable names with
public/get_all_live_instruments before submitting an RFQ.Signed actions and scopes
The RFQ request itself is an unsigned intent — it does not move funds. The state-changing steps are EIP-712 signed actions under the RFQ module:- The maker signs each quote (
private/send_quote,private/replace_quote). - The taker signs the execution (
private/execute_quote).
signer, signature, nonce, signature_expiry_sec, and max_fee,
and are re-verified by the protocol. See Action signing for the Action
struct, the RFQ module address, and the nonce/expiry conventions.
Each RFQ method requires the trade:rfq:<asset> protocol scope for every asset type its
legs touch (trade:rfq:option, trade:rfq:perp, trade:rfq:spot, or trade:rfq:all).
Cancel methods only require any one RFQ trade scope. See Access scopes.
Taker flow
1
Submit the RFQ
Call
private/send_rfq with the package legs. Leave counterparties empty to open the RFQ to all makers, or list
wallet addresses to direct it privately.2
Collect quotes
Poll
private/poll_quotes for quotes received on your RFQs, or subscribe to the {subaccount_id}.quotes and {subaccount_id}.best.quotes channels for live updates. Track your RFQ’s own status on {wallet}.rfqs.3
Pick the best quote
Call
private/rfq_get_best_quote with your legs and direction to get the best executable quote for the package.4
Execute
Sign and submit
private/execute_quote with the chosen quote_id. The engine re-reads the RFQ and maker quote and
settles the block atomically.Example: private/send_rfq
An RFQ is quotable only for a bounded window after creation (
valid_until). The default window is 30 minutes.The exact window is deployment-specific and may differ per environment; confirm it for your target environment.
send_rfq params: label, counterparties, min_total_cost, max_total_cost
(see Cost limits), partial_fill_step (minimum fill increment, default 1),
client, extra_fee, and referral_code.
Cost limits
max_total_cost and min_total_cost filter the best quote. They do not limit execution.
Total cost is in USD for the full RFQ size, from the taker’s side. A positive cost means you
pay. A negative cost means you receive. A quote for part of the RFQ is scaled to the full size.
Both limits use the same sign. To set the smallest amount you will receive on a sale, send it as
a negative number. For example,
"min_total_cost": "-180" hides quotes that pay you less than
180. A positive value such as "180" hides only quotes that cost you more than 180.
Makers do not see either limit.
Maker flow
1
Discover RFQs
Poll
private/poll_rfqs for RFQs visible to you (open-to-all, or those naming your wallet in counterparties), or
subscribe to the {wallet}.rfqs channel. private/poll_rfqs returns open RFQs only. For filled, cancelled and
expired RFQs, use private/get_maker_rfq_history.2
Quote
Sign and submit
private/send_quote with priced legs (each leg adds a price to the RFQ’s instrument_name /
amount / direction), a direction, and max_fee. Set mmp to opt the quote into market-maker
protection.3
Update or pull
Use
private/replace_quote to atomically cancel and re-submit a quote (provide one of quote_id_to_cancel or
nonce_to_cancel), or private/cancel_quote / private/cancel_batch_quotes to withdraw quotes. Track your quotes
on {subaccount_id}.quotes.Subscription channels
RFQ workflows are event-driven; prefer the WebSocket channels over repeated polling.
See Subscriptions for the channel envelope and payload formats.
Block trades
private/execute_block_trade settles a multi-leg trade that two parties agree off the platform, directly or through
a broker. There is no RFQ and no order book step: both sides trade the agreed legs at the agreed prices, in one
atomic step.
1
Agree the terms
The parties agree the priced legs and which party takes the maker side. The maker side trades the legs in the
agreed
direction. The taker side trades the opposite direction. Before it signs, a party can get its fee and
margin from private/simulate_block_trade.2
Each party signs its own side
Each party signs its own side, with its own key, from the agreed terms. A party does not need the other side’s
signature to sign.
3
Each party verifies its side
Each party checks its signed side with
private/verify_block_trade. The call checks the
side as private/execute_block_trade would, and returns its fee, its margin and the last second it can execute.4
Share the signed side
Each party gives its signed side only to the submitter: the other party or a broker.
5
Submit
Anyone who holds both signed sides, a party or a broker, calls
private/execute_block_trade with maker_params
and taker_params. The submitter needs no access to either subaccount. Its key needs the block_trade scope.What each side signs
Each side is a signed action under the RFQ module, with its ownsubaccount_id, signer, nonce,
signature_expiry_sec and max_fee:
- The maker side signs the same payload as a quote (
private/send_quote): its ownmax_feeand the legs in the maker’sdirection. - The taker side signs the same payload as an execution (
private/execute_quote): the hash of the legs in the maker’sdirection, and its ownmax_fee. The maker’smax_feeis not part of it.
legs. The taker’s direction is the opposite of the maker’s. See
Action signing for the Action struct and the RFQ module address.
A side’s nonce is a UTC timestamp in nanoseconds. private/execute_block_trade accepts a side from 1 minute
before to 5 minutes after its nonce time, and while its signature_expiry_sec is at least 60 seconds away. The
agreed price can be older than that. The nonce does not have to be the time of signing, so a party can date it for a
planned submit time: a side signed at 10:00 with a nonce dated 11:00 can execute from 10:59 to 11:05. By default, the
TypeScript SDK sets the nonce to the time of signing and the expiry to 6 minutes after the nonce time. A maker side
sent as a block proposal can execute for longer: until 59 minutes after its nonce time.
Fees
Both sides pay the RFQ fees of a taker, whatever their role:- the taker notional fee rate, with the multi-leg discounts, and
- the base fee, once per side.
extra_fee and referral_code (see
Builder fees). These fields are not signed. The signer caps them with its
side’s max_fee: a side is rejected if its total fee, extra_fee included, is more than its signed max_fee.
Sign a max_fee no higher than the fees you agreed to pay, because whoever submits can charge any room below it
as a broker fee.
Rules
- Vault subaccounts cannot take part in a block trade.
- A session key needs the off-chain
block_tradescope to sign a side, and alsotrade:rfq:<asset>for every leg. RFQ scopes alone do not cover block trades. A key withoutblock_tradefails withunauthorized_key_scope(14031). See Access scopes. - If the session key that signed a side has an IP whitelist, the
submitter’s IP must be on it. Otherwise the block fails with
ip_not_whitelisted(14021). To let only your broker submit your sides, sign them with a key that whitelists only the broker’s IPs.private/verify_block_tradedoes not check the submitter’s IP. - The two sides must belong to different owners. To move positions between your own subaccounts, use
private/transfer_positions. - An account with RFQ trading disabled cannot take part.
- Each side must have enough margin for its trade and its fees.
- Each leg must be at least 100 times its instrument’s
minimum_amount, aspublic/get_instrumentreturns it. A smaller leg fails withinvalid_amount(11012), inprivate/simulate_block_tradeandprivate/verify_block_tradetoo. - The total cost must be inside the currency’s RFQ price band for both sides: neither
side can pay more than the band allows. Check
within_price_bandfromprivate/simulate_block_tradeorprivate/verify_block_tradebefore you submit. A price outside the band fails withblock_trade_outside_price_band(11123). A currency with no RFQ price band does not accept block trades, and fails withblock_trades_not_available_for_currency(11124). - Block trades do not count toward market maker protection limits, and an MMP freeze does not stop them.
block_trade_id: in the response, on the trade channels, and in
private/get_trade_history and public/get_trade_history. Other trades have block_trade_id: null. Block trades
appear in trade feeds and trade history at once, but not in public/get_tradingview_chart_data candles.
Public data does not show who traded a block. On the public trade channels and in public/get_trade_history, a block
trade has the zero address as wallet, and 0 as subaccount_id, realized_pnl and realized_pnl_excl_fees. The
subaccount_id filter of public/get_trade_history does not return block trades. Each party sees its own side in full on its private channels and in its private history.
Example: private/execute_block_trade
Simulate a side
private/simulate_block_trade returns the fee and margin of one side of a block trade for your subaccount, from the
agreed terms, before the side is signed. You need access to the subaccount and the block_trade scope.
This side’s direction,
buy or sell. The taker side trades the opposite direction of the maker side.private/simulate_block_trade and private/verify_block_trade:
false if the side does not have enough margin for its trade and fees, or if the trade takes the subaccount over its maximum asset count. Neither case is an error.The subaccount’s initial margin after the trade and its fees. The side is valid if this is not negative, or if the
trade reduces the subaccount’s risk.
The side’s total fee in USD,
extra_fee included. See Fees.The last second at which the signed side can execute with
private/execute_block_trade: 5 minutes after its nonce
time, or 60 seconds before its signature_expiry_sec, whichever is first. A maker side sent as a
block proposal can execute until 59 minutes after its nonce time. null from
private/simulate_block_trade.true if the total cost is inside the currency’s RFQ price band for both sides:
neither side pays more than the band allows. null if the currency has no RFQ price band.
private/execute_block_trade needs true.The lowest total cost at which this side is inside the RFQ price band, in USD. Total cost is for all legs, from
this side: a positive cost means the side pays, and a negative cost means it receives.
null if the currency has
no RFQ price band.The highest total cost at which this side is inside the RFQ price band, in USD.
null if the currency has no RFQ
price band.Verify a signed side
private/verify_block_trade checks a signed side of your subaccount as private/execute_block_trade would check it
now: its signature, its nonce and its window. It also returns the side’s fee and margin. You need access to the
subaccount and the block_trade scope. The call does not use the side, so the side can still execute.
Send the signed side in the same shape as maker_params or taker_params of private/execute_block_trade, with
one more param:
maker if the side signed the maker payload, taker if it signed the taker payload. See
What each side signs.non_unique_nonce (11017). A side whose
signature or nonce is not valid fails with the same error as private/execute_block_trade.
Invalidate a signed side
To stop a side that you signed from executing, callprivate/invalidate_block_trade_signature with the side’s
subaccount_id and nonce. You need access to that subaccount and the block_trade scope, so a broker that
holds your signed side cannot invalidate it. The nonce can be at most one hour ahead of the server clock.
- The call fails with
non_unique_nonce(11017) if the side has already executed, or if a block trade with it is executing. - An invalidated side also cannot execute through a block proposal.
- In rare cases, an invalidated side can still execute until its window ends: 5 minutes after its nonce time, or 59 minutes for a maker side sent as a block proposal.
Block trade history
private/get_block_trades returns your block trades, newest first, a page of blocks at a time.
private/get_block_trade returns one block by its block_trade_id. Both need the same access as
private/get_trade_history: give a wallet or a subaccount_id that you have access to. A session key restricted to
some subaccounts sees only their blocks.
A block holds your side only: your trades in it, one per leg. A block can take a few seconds to appear after it
executes.
private/get_block_trades also takes these optional filters. A filter selects blocks, not trades: a block that matches
returns with all of its trades.
private/get_block_trade takes the block’s id in place of the filters:
The
block_trade_id of the block’s trades. If none of the trades of the wallet or subaccount_id has it, the call
fails with block_trade_not_found (11116).private/get_block_trade returns one block. private/get_block_trades returns block_trades, a list of blocks, and
pagination, with the count of blocks and num_pages. A block has these fields:
Your trades in the block, one per leg, with the same fields as in
private/get_trade_history. batch_status and
tx_hash show each trade’s settlement.Block proposals
A block proposal lets a maker propose a block trade without giving its signed side to the counterparty. The maker signs the maker side, as forprivate/execute_block_trade, and sends it to the exchange with
private/send_block_proposal. A taker accepts the proposal with
private/accept_block_proposal and its own signed taker side. The
block trade then executes at once, at the prices of the proposal.
The exchange keeps the maker’s signature, and no other user can see it. With private/execute_block_trade, anyone
who holds a signed side can take that trade. With a block proposal, the signed side never leaves the exchange, and
the maker chooses who can accept:
A proposal cannot have both
listed: true and a recipient_wallet. The proposal_id is a random id. For a proposal
with neither param, the id is the only protection, so give it only to the intended counterparty. If more than one
taker accepts a proposal, the first valid accept wins.
1
The maker signs the maker side
The maker signs the maker side from the terms. See What each side signs. Before it signs,
it can get its fee and margin from
private/simulate_block_trade. The signed
signature_expiry_sec sets the lifetime of the proposal.2
The maker sends the proposal
The maker calls
private/send_block_proposal with the signed side. The response is the proposal, with status
open and its proposal_id. If the proposal has no recipient_wallet and is not listed, the maker gives the
proposal_id to the counterparty.3
The taker reads the proposal
The taker reads the proposal by its
proposal_id, from the public list, or as its recipient_wallet. See
Read proposals. direction is the maker’s direction. The taker trades the opposite direction,
and can get its fee and margin from private/simulate_block_trade.4
The taker accepts
The taker signs the taker side over the
legs of the proposal, with the proposal’s direction as the maker’s
direction. Then it calls private/accept_block_proposal with the proposal_id and its signed fields. The params
have no legs or direction: the exchange uses those of the proposal. The response is the proposal, with status
executed and its block_trade_id.open, the maker can cancel it and the recipient_wallet can decline it, both with
private/cancel_block_proposal. After that, the proposal can never
execute.
private/send_block_proposal takes the signed fields of the maker side (subaccount_id, nonce, signer,
max_fee, signature_expiry_sec, direction, legs and signature) and these optional params:
Proposal lifetime
A taker can accept a proposal until itsexpires_at_sec, which is in the response of private/send_block_proposal.
The signed side sets it. It is the earlier of these times:
- 60 seconds before the
signature_expiry_secof the signed side, and - 59 minutes after the nonce time of the signed side.
signature_expiry_sec that is 60 seconds after the time at which
the proposal must end. By default, the TypeScript SDK signs an expiry 6 minutes after the nonce time, which keeps a
proposal open for about 5 minutes.
A proposal must stay open for at least 60 seconds. If it would end sooner, private/send_block_proposal fails with
invalid_params (-32602).
The 59 minutes apply only to the maker side of a block proposal. In private/execute_block_trade, and for the taker
side of an accept, a side executes only from 1 minute before to 5 minutes after its nonce time.
Proposal rules
private/send_block_proposalchecks the maker side asprivate/verify_block_tradedoes: its signature, its scopes, the size of each leg, its fee againstmax_feeand its margin. But the nonce time can be up to 59 minutes old, and a side without enough margin fails withinsufficient_funds(11000).- The total cost must be inside the currency’s RFQ price band, both when the proposal
is sent and when it is accepted. Outside the band, the call fails with
block_trade_outside_price_band(11123). An accept that fails for this reason leaves the proposal open, and a taker can accept it again when the price is back inside the band. A currency with no RFQ price band does not accept proposals (block_trades_not_available_for_currency, 11124). - The exchange checks the maker’s margin when the proposal is sent and again when it is accepted. It reserves no margin in between.
- A wallet can have at most 3 open proposals. The next
private/send_block_proposalfails withrate_limit_exceeded(-32000), and itsdatacarriesmax_open_block_proposals. See Rate limits. - A signed side can be in only one open proposal. A second proposal with the same
subaccount_idandnoncefails withnon_unique_nonce(11017). Sign a new side for each proposal. - Both sides pay the fees of a block trade. A proposal trades with no broker fee, referral code, label or client tag.
- The rules of every block trade also apply. For example, vault subaccounts cannot take part, and the maker
and the taker must be different owners (
block_trade_same_owner, 11115). - The four private methods need the off-chain
block_tradescope. A session key that signs a side also needstrade:rfq:<asset>for every leg. - If the session key that signed a side has an IP whitelist, the
caller’s IP must be on it: the maker’s IP when it sends the proposal, and the taker’s IP when it accepts. Otherwise
the call fails with
ip_not_whitelisted(14021). private/send_block_proposalandprivate/accept_block_proposalare not available from a restricted region, like the other trading methods.private/send_block_proposalandprivate/accept_block_proposaleach have their own limit of 1 request per second per wallet.private/cancel_block_proposalhas a limit of 2 requests per second per wallet. See Rate limits.
Failed accepts
A failed accept leaves the proposalopen, and a taker can accept it again before it expires. The exception is a
maker side that can no longer execute: for example, the maker no longer has the margin, or it invalidated the side
with private/invalidate_block_trade_signature. The proposal then becomes cancelled,
and the accept fails with block_proposal_not_open (11118).
The error of a failed accept has no data, so it shows nothing about the maker. Check your own side with
private/simulate_block_trade or private/verify_block_trade.
If the outcome of an accept is not known, the proposal stays executing until it expires.
private/get_block_trades shows whether the block trade executed.
Block proposals have two errors of their own:
A caller cannot use a proposal in these cases:
public/get_block_proposalreads a proposal that has arecipient_wallet,- a wallet other than the
recipient_walletaccepts such a proposal, or - a wallet that is neither the maker nor the
recipient_walletcancels a proposal.
Read proposals
private/get_block_proposalsreturns the proposals that your wallet made or received asrecipient_wallet: the open ones and those that ended recently.public/get_block_proposalsreturns the public list: the listed proposals that have not ended, then those that ended recently. Passcurrencyto get the proposals of one currency.public/get_block_proposalreturns one proposal by itsproposal_id, listed or not. It does not return a proposal with arecipient_wallet: the maker and the recipient read that proposal withprivate/get_block_proposals.
status is one of these:
A proposal has the fields
proposal_id, status, direction, legs, currency, risk_universe_id, listed,
creation_timestamp, last_update_timestamp, expires_at_sec and block_trade_id. direction is the maker’s
direction. private/send_block_proposal, private/cancel_block_proposal, private/get_block_proposals and the
{wallet}.block_proposals channel also return maker_wallet and recipient_wallet. Only the maker and the
recipient of a proposal can get these two fields. Every other response and channel shows no wallet, and nothing
shows a subaccount or a signature.
Two channels send proposals as their status changes:
Each event carries the whole proposal. Both channels also send a proposal with status
executing if the outcome of
an accept is not known. A failed accept that leaves the proposal open sends no event. In {wallet}.block_proposals,
{wallet} must be your wallet address in EIP-55 checksummed form. A subscription with any other casing receives
nothing.
In rare cases, the exchange ends open proposals early, for example during maintenance. Such a proposal can never
execute, and a read of it fails with
block_proposal_not_found (11117). If you still need the proposal, sign a new
maker side and send it again.Example
Related methods
The full RFQ surface — includingprivate/get_rfqs, private/get_quotes,
private/cancel_rfq, and private/cancel_batch_rfqs — is documented in the
API Reference tab.