Submit Quote
curl --request POST \
--url https://api.convallax.com/v1/mm/quotes \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"requestId": "req-789",
"quote": {
"maker": "0x1234000000000000000000000000000000abcd",
"side": "buy",
"price": 0.18,
"size": 100,
"expires_in_ms": 5000
}
}
'import requests
url = "https://api.convallax.com/v1/mm/quotes"
payload = {
"requestId": "req-789",
"quote": {
"maker": "0x1234000000000000000000000000000000abcd",
"side": "buy",
"price": 0.18,
"size": 100,
"expires_in_ms": 5000
}
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
requestId: 'req-789',
quote: {
maker: '0x1234000000000000000000000000000000abcd',
side: 'buy',
price: 0.18,
size: 100,
expires_in_ms: 5000
}
})
};
fetch('https://api.convallax.com/v1/mm/quotes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.convallax.com/v1/mm/quotes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'requestId' => 'req-789',
'quote' => [
'maker' => '0x1234000000000000000000000000000000abcd',
'side' => 'buy',
'price' => 0.18,
'size' => 100,
'expires_in_ms' => 5000
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.convallax.com/v1/mm/quotes"
payload := strings.NewReader("{\n \"requestId\": \"req-789\",\n \"quote\": {\n \"maker\": \"0x1234000000000000000000000000000000abcd\",\n \"side\": \"buy\",\n \"price\": 0.18,\n \"size\": 100,\n \"expires_in_ms\": 5000\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.convallax.com/v1/mm/quotes")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"requestId\": \"req-789\",\n \"quote\": {\n \"maker\": \"0x1234000000000000000000000000000000abcd\",\n \"side\": \"buy\",\n \"price\": 0.18,\n \"size\": 100,\n \"expires_in_ms\": 5000\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.convallax.com/v1/mm/quotes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"requestId\": \"req-789\",\n \"quote\": {\n \"maker\": \"0x1234000000000000000000000000000000abcd\",\n \"side\": \"buy\",\n \"price\": 0.18,\n \"size\": 100,\n \"expires_in_ms\": 5000\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"quoteId": "8f3c2b1a-1d2e-4c3b-9a8f-6e5d4c3b2a1f"
}{
"success": false,
"error": "Quote request not found or expired"
}{
"success": false,
"error": "Quote request not found or expired"
}{
"success": false,
"error": "Quote request not found or expired"
}{
"success": false,
"error": "Quote request not found or expired"
}Market Maker
Submit Quote
Submit or update a draft quote for an open quote request. Returns a server-generated quoteId. Authenticated via the X-API-Key header.
POST
/
v1
/
mm
/
quotes
Submit Quote
curl --request POST \
--url https://api.convallax.com/v1/mm/quotes \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"requestId": "req-789",
"quote": {
"maker": "0x1234000000000000000000000000000000abcd",
"side": "buy",
"price": 0.18,
"size": 100,
"expires_in_ms": 5000
}
}
'import requests
url = "https://api.convallax.com/v1/mm/quotes"
payload = {
"requestId": "req-789",
"quote": {
"maker": "0x1234000000000000000000000000000000abcd",
"side": "buy",
"price": 0.18,
"size": 100,
"expires_in_ms": 5000
}
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
requestId: 'req-789',
quote: {
maker: '0x1234000000000000000000000000000000abcd',
side: 'buy',
price: 0.18,
size: 100,
expires_in_ms: 5000
}
})
};
fetch('https://api.convallax.com/v1/mm/quotes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.convallax.com/v1/mm/quotes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'requestId' => 'req-789',
'quote' => [
'maker' => '0x1234000000000000000000000000000000abcd',
'side' => 'buy',
'price' => 0.18,
'size' => 100,
'expires_in_ms' => 5000
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.convallax.com/v1/mm/quotes"
payload := strings.NewReader("{\n \"requestId\": \"req-789\",\n \"quote\": {\n \"maker\": \"0x1234000000000000000000000000000000abcd\",\n \"side\": \"buy\",\n \"price\": 0.18,\n \"size\": 100,\n \"expires_in_ms\": 5000\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.convallax.com/v1/mm/quotes")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"requestId\": \"req-789\",\n \"quote\": {\n \"maker\": \"0x1234000000000000000000000000000000abcd\",\n \"side\": \"buy\",\n \"price\": 0.18,\n \"size\": 100,\n \"expires_in_ms\": 5000\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.convallax.com/v1/mm/quotes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"requestId\": \"req-789\",\n \"quote\": {\n \"maker\": \"0x1234000000000000000000000000000000abcd\",\n \"side\": \"buy\",\n \"price\": 0.18,\n \"size\": 100,\n \"expires_in_ms\": 5000\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"quoteId": "8f3c2b1a-1d2e-4c3b-9a8f-6e5d4c3b2a1f"
}{
"success": false,
"error": "Quote request not found or expired"
}{
"success": false,
"error": "Quote request not found or expired"
}{
"success": false,
"error": "Quote request not found or expired"
}{
"success": false,
"error": "Quote request not found or expired"
}Submit or update a draft quote for an open quote request. This is channel 2 of the three-channel maker transport — you receive requests over the SSE stream and reply here over REST.
Only the latest quote per maker per request is kept — re-POST for the same
requestId to update your quote at any time while the request is open. The response returns a server-generated quoteId that is stable across updates for the same maker + request; you use it to confirm if you win.
You do not include your
makerId — the relay derives it from your authenticated API key. The quote.maker wallet is required and is written into the on-chain order.Quote validation
A quote must pass these checks to be eligible for winner selection:| Check | Requirement |
|---|---|
requestId | Must match an active (open) quote request |
quote.side | Must match the taker’s requested side |
quote.size | ≥ 50% of requested size |
quote.price | Must be in (0, 1) |
| No-arbitrage | Price ≤ maximum payoff for the option type |
Maker solvency check
The relay verifies on-chain that yourquote.maker wallet can actually fund the prospective fill before the quote is accepted, and again at commit time:
- Selling options (taker buys): your wallet must hold — and have approved to ConvallaxCore — enough USDC for the max-loss collateral of the fill.
- Buying options (taker writes): your wallet must hold — and have approved to the Settlement contract — enough USDC for the premium.
maker_insufficient_balance or maker_insufficient_allowance; the detail field states the wallet, amounts, and (for allowance failures) the spender address to approve. Balance/allowance reads are cached for a few seconds, so a top-up may take a moment to be recognised.Authorizations
Maker API key (env-issued or self-serve from the dashboard). Maps to a stable makerId.
Body
application/json
Was this page helpful?
