Skip to main content
POST
private/rfq_get_best_quote

Body

application/json
subaccount_id
integer<uint64>
required
Required range: x >= 0
client
string
default:""
direction
enum<string>
default:buy
Available options:
buy,
sell
extra_fee
string<decimal>
default:0

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

legs
object[]
rfq_id
string<uuid> | null

RFQ ID to get best quote for.

If not provided, will return estimates based on mark prices.

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