Skip to main content
POST
Preview the best quote for an RFQ

Body

application/json
direction
any
required
legs
any
required
subaccount_id
integer<uint64>
required
Required range: x >= 0

Response

Success

direction
enum<string>
required
Available options:
buy,
sell
down_liquidation_price
string<decimal> | null
required

Optional decimal string of the human value (e.g. "1.5"), up to 12 fractional digits, or null; a string or JSON number is accepted

estimated_fee
string<decimal>
required

Decimal string of the human value (e.g. "1.5"), up to 12 fractional digits; a string or JSON number is accepted

estimated_realized_pnl
string<decimal>
required

Decimal string of the human value (e.g. "1.5"), up to 12 fractional digits; a string or JSON number is accepted

estimated_realized_pnl_excl_fees
string<decimal>
required

Decimal string of the human value (e.g. "1.5"), up to 12 fractional digits; a string or JSON number is accepted

estimated_total_cost
string<decimal>
required

Decimal string of the human value (e.g. "1.5"), up to 12 fractional digits; a string or JSON number is accepted

filled_pct
string<decimal>
required

Non-negative decimal string of the human value (e.g. "1.5"), up to 12 fractional digits; a string or JSON number is accepted

is_valid
boolean
required
orderbook_total_cost
string<decimal> | null
required

Optional decimal string of the human value (e.g. "1.5"), up to 12 fractional digits, or null; a string or JSON number is accepted

post_initial_margin
string<decimal>
required

Decimal string of the human value (e.g. "1.5"), up to 12 fractional digits; a string or JSON number is accepted

post_liquidation_price
string<decimal> | null
required

Optional decimal string of the human value (e.g. "1.5"), up to 12 fractional digits, or null; a string or JSON number is accepted

pre_initial_margin
string<decimal>
required

Decimal string of the human value (e.g. "1.5"), up to 12 fractional digits; a string or JSON number is accepted

suggested_max_fee
string<decimal>
required

Decimal string of the human value (e.g. "1.5"), up to 12 fractional digits; a string or JSON number is accepted

up_liquidation_price
string<decimal> | null
required

Optional decimal string of the human value (e.g. "1.5"), up to 12 fractional digits, or null; a string or JSON number is accepted

best_quote
object | null
invalid_reason
string | null