rfq_create
Create RFQ. Makers have up to 1 minute to answer an RFQ, after which the user has up to 2 minutes to execute the trade. Quotes are not locked. Makers place orders directly into the order book and can dynamically adjust pricing.
post/api/v1/rfq/create
Header parameters
authorizationstringRequired
Auth token in the Authorization header.
Body
Provide exactly one of base_amount or quote_amount, as a decimal string.
anyOptional
anyOptional
Responses
200
A successful response.
application/json
codeinteger · int32RequiredExample:
200messagestringOptional
idinteger · int64Required
account_indexinteger · int64Required
market_indexinteger · int16Required
Market identifier; corresponds to market_id in market metadata.
directioninteger · int16Required
-1 = hidden; 0 = sell; 1 = buy.
base_amountstringRequired
quote_amountstringRequired
statusstring · enumRequiredPossible values:
created_atinteger · int64Required
updated_atinteger · int64Required
400
Bad request
application/json
post/api/v1/rfq/create
POST /api/v1/rfq/create HTTP/1.1
Host: mainnet.zklighter.elliot.ai
authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 91
"market_index=1&base_amount='text'"e_amount='text'&direction=0&metadata='{}'"{
"code": 200,
"message": "text",
"id": 1,
"account_index": 1,
"market_index": 1,
"direction": 1,
"base_amount": "text",
"quote_amount": "text",
"status": "opened",
"metadata": {
"requested_est_price": "text",
"requested_max_slippage": "text",
"requested_slippage": "text",
"worst_price": "text",
"mark_price": "text",
"requested_est_fill_fraction": "text"
},
"responses": [
{
"account_index": 1,
"status": "acknowledged",
"responded_at": 1,
"updated_at": 1
}
],
"created_at": 1,
"updated_at": 1
}Last updated
Was this helpful?