Method Name
private/rfq_get_best_quote
private/rfq_get_best_quotePerforms a "dry run" on an RFQ, returning the estimated fee and whether the trade is expected to pass.
Should any exception be raised in the process of evaluating the trade, a standard RPC error will be returned
with the error details.
Required minimum session key permission level is read_only
Parameters
subaccount_id
integer required |
legs
array of objects required |
legs[].
amount
string required |
legs[].
direction
string required |
legs[].
instrument_name
string required |
counterparties
array of strings |
direction
string |
label
string |
max_total_cost
string |
min_total_cost
string |
partial_fill_step
string |
rfq_id
string |
Response
id string or integer required |
result object required |
result.
best_quote
object or null required |
result.best_quote.
cancel_reason
string required |
result.best_quote.
creation_timestamp
integer required |
result.best_quote.
direction
string required |
result.best_quote.
fill_pct
string required |
result.best_quote.
last_update_timestamp
integer required |
result.best_quote.
legs_hash
string required |
result.best_quote.
liquidity_role
string required |
result.best_quote.
quote_id
string required |
result.best_quote.
rfq_id
string required |
result.best_quote.
status
string required |
result.best_quote.
subaccount_id
integer required |
result.best_quote.
tx_hash
string or null required |
result.best_quote.
tx_status
string or null required |
result.best_quote.
wallet
string required |
result.best_quote.
legs
array of objects required |
result.best_quote.legs[].
amount
string required |
result.best_quote.legs[].
direction
string required |
result.best_quote.legs[].
instrument_name
string required |
result.best_quote.legs[].
price
string required |
result.
direction
string required |
result.
down_liquidation_price
string or null required |
result.
estimated_fee
string required |
result.
estimated_realized_pnl
string required |
result.
estimated_realized_pnl_excl_fees
string required |
result.
estimated_total_cost
string required |
result.
filled_pct
string required |
result.
invalid_reason
string or null required |
result.
is_valid
boolean required |
result.
orderbook_total_cost
string or null required |
result.
post_initial_margin
string required |
result.
post_liquidation_price
string or null required |
result.
pre_initial_margin
string required |
result.
suggested_max_fee
string required |
result.
up_liquidation_price
string or null required |
Example
{request_example_shell}{request_example_javascript}{request_example_python}The above command returns JSON structured like this:
{response_example_json}