Create Quote Request
curl --request POST \
--url https://api.convallax.com/quote-requests \
--header 'Content-Type: application/json' \
--data '
{
"market": {
"conditionId": "0xa4ddc18895cc7b14810283ef8f113939abffd3969c6a0e37f1897110c67e6f73",
"yesTokenId": "51508280778202349361616850684455231843716212176724253736363122559269229712002",
"question": "Will there be a Hantavirus outbreak in 2026?"
},
"option": {
"strikeBps": 50,
"expiryMs": 1735689600000,
"optionType": "call"
},
"trade": {
"side": "buy",
"budgetUsd": 100,
"size": 10
},
"wallet": "0xTrader0000000000000000000000000000000000"
}
'import requests
url = "https://api.convallax.com/quote-requests"
payload = {
"market": {
"conditionId": "0xa4ddc18895cc7b14810283ef8f113939abffd3969c6a0e37f1897110c67e6f73",
"yesTokenId": "51508280778202349361616850684455231843716212176724253736363122559269229712002",
"question": "Will there be a Hantavirus outbreak in 2026?"
},
"option": {
"strikeBps": 50,
"expiryMs": 1735689600000,
"optionType": "call"
},
"trade": {
"side": "buy",
"budgetUsd": 100,
"size": 10
},
"wallet": "0xTrader0000000000000000000000000000000000"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
market: {
conditionId: '0xa4ddc18895cc7b14810283ef8f113939abffd3969c6a0e37f1897110c67e6f73',
yesTokenId: '51508280778202349361616850684455231843716212176724253736363122559269229712002',
question: 'Will there be a Hantavirus outbreak in 2026?'
},
option: {strikeBps: 50, expiryMs: 1735689600000, optionType: 'call'},
trade: {side: 'buy', budgetUsd: 100, size: 10},
wallet: '0xTrader0000000000000000000000000000000000'
})
};
fetch('https://api.convallax.com/quote-requests', 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/quote-requests",
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([
'market' => [
'conditionId' => '0xa4ddc18895cc7b14810283ef8f113939abffd3969c6a0e37f1897110c67e6f73',
'yesTokenId' => '51508280778202349361616850684455231843716212176724253736363122559269229712002',
'question' => 'Will there be a Hantavirus outbreak in 2026?'
],
'option' => [
'strikeBps' => 50,
'expiryMs' => 1735689600000,
'optionType' => 'call'
],
'trade' => [
'side' => 'buy',
'budgetUsd' => 100,
'size' => 10
],
'wallet' => '0xTrader0000000000000000000000000000000000'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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/quote-requests"
payload := strings.NewReader("{\n \"market\": {\n \"conditionId\": \"0xa4ddc18895cc7b14810283ef8f113939abffd3969c6a0e37f1897110c67e6f73\",\n \"yesTokenId\": \"51508280778202349361616850684455231843716212176724253736363122559269229712002\",\n \"question\": \"Will there be a Hantavirus outbreak in 2026?\"\n },\n \"option\": {\n \"strikeBps\": 50,\n \"expiryMs\": 1735689600000,\n \"optionType\": \"call\"\n },\n \"trade\": {\n \"side\": \"buy\",\n \"budgetUsd\": 100,\n \"size\": 10\n },\n \"wallet\": \"0xTrader0000000000000000000000000000000000\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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/quote-requests")
.header("Content-Type", "application/json")
.body("{\n \"market\": {\n \"conditionId\": \"0xa4ddc18895cc7b14810283ef8f113939abffd3969c6a0e37f1897110c67e6f73\",\n \"yesTokenId\": \"51508280778202349361616850684455231843716212176724253736363122559269229712002\",\n \"question\": \"Will there be a Hantavirus outbreak in 2026?\"\n },\n \"option\": {\n \"strikeBps\": 50,\n \"expiryMs\": 1735689600000,\n \"optionType\": \"call\"\n },\n \"trade\": {\n \"side\": \"buy\",\n \"budgetUsd\": 100,\n \"size\": 10\n },\n \"wallet\": \"0xTrader0000000000000000000000000000000000\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.convallax.com/quote-requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"market\": {\n \"conditionId\": \"0xa4ddc18895cc7b14810283ef8f113939abffd3969c6a0e37f1897110c67e6f73\",\n \"yesTokenId\": \"51508280778202349361616850684455231843716212176724253736363122559269229712002\",\n \"question\": \"Will there be a Hantavirus outbreak in 2026?\"\n },\n \"option\": {\n \"strikeBps\": 50,\n \"expiryMs\": 1735689600000,\n \"optionType\": \"call\"\n },\n \"trade\": {\n \"side\": \"buy\",\n \"budgetUsd\": 100,\n \"size\": 10\n },\n \"wallet\": \"0xTrader0000000000000000000000000000000000\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"requestId": "req-789",
"expiresAt": "2026-06-15T12:05:00.000Z",
"makersConnected": 3
}{
"success": true,
"error": "Quote request not found or expired"
}Trading
Create Quote Request
Open a live quote request. The relay broadcasts trade parameters to market makers and returns a request ID for streaming, polling, and committing.
POST
/
quote-requests
Create Quote Request
curl --request POST \
--url https://api.convallax.com/quote-requests \
--header 'Content-Type: application/json' \
--data '
{
"market": {
"conditionId": "0xa4ddc18895cc7b14810283ef8f113939abffd3969c6a0e37f1897110c67e6f73",
"yesTokenId": "51508280778202349361616850684455231843716212176724253736363122559269229712002",
"question": "Will there be a Hantavirus outbreak in 2026?"
},
"option": {
"strikeBps": 50,
"expiryMs": 1735689600000,
"optionType": "call"
},
"trade": {
"side": "buy",
"budgetUsd": 100,
"size": 10
},
"wallet": "0xTrader0000000000000000000000000000000000"
}
'import requests
url = "https://api.convallax.com/quote-requests"
payload = {
"market": {
"conditionId": "0xa4ddc18895cc7b14810283ef8f113939abffd3969c6a0e37f1897110c67e6f73",
"yesTokenId": "51508280778202349361616850684455231843716212176724253736363122559269229712002",
"question": "Will there be a Hantavirus outbreak in 2026?"
},
"option": {
"strikeBps": 50,
"expiryMs": 1735689600000,
"optionType": "call"
},
"trade": {
"side": "buy",
"budgetUsd": 100,
"size": 10
},
"wallet": "0xTrader0000000000000000000000000000000000"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
market: {
conditionId: '0xa4ddc18895cc7b14810283ef8f113939abffd3969c6a0e37f1897110c67e6f73',
yesTokenId: '51508280778202349361616850684455231843716212176724253736363122559269229712002',
question: 'Will there be a Hantavirus outbreak in 2026?'
},
option: {strikeBps: 50, expiryMs: 1735689600000, optionType: 'call'},
trade: {side: 'buy', budgetUsd: 100, size: 10},
wallet: '0xTrader0000000000000000000000000000000000'
})
};
fetch('https://api.convallax.com/quote-requests', 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/quote-requests",
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([
'market' => [
'conditionId' => '0xa4ddc18895cc7b14810283ef8f113939abffd3969c6a0e37f1897110c67e6f73',
'yesTokenId' => '51508280778202349361616850684455231843716212176724253736363122559269229712002',
'question' => 'Will there be a Hantavirus outbreak in 2026?'
],
'option' => [
'strikeBps' => 50,
'expiryMs' => 1735689600000,
'optionType' => 'call'
],
'trade' => [
'side' => 'buy',
'budgetUsd' => 100,
'size' => 10
],
'wallet' => '0xTrader0000000000000000000000000000000000'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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/quote-requests"
payload := strings.NewReader("{\n \"market\": {\n \"conditionId\": \"0xa4ddc18895cc7b14810283ef8f113939abffd3969c6a0e37f1897110c67e6f73\",\n \"yesTokenId\": \"51508280778202349361616850684455231843716212176724253736363122559269229712002\",\n \"question\": \"Will there be a Hantavirus outbreak in 2026?\"\n },\n \"option\": {\n \"strikeBps\": 50,\n \"expiryMs\": 1735689600000,\n \"optionType\": \"call\"\n },\n \"trade\": {\n \"side\": \"buy\",\n \"budgetUsd\": 100,\n \"size\": 10\n },\n \"wallet\": \"0xTrader0000000000000000000000000000000000\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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/quote-requests")
.header("Content-Type", "application/json")
.body("{\n \"market\": {\n \"conditionId\": \"0xa4ddc18895cc7b14810283ef8f113939abffd3969c6a0e37f1897110c67e6f73\",\n \"yesTokenId\": \"51508280778202349361616850684455231843716212176724253736363122559269229712002\",\n \"question\": \"Will there be a Hantavirus outbreak in 2026?\"\n },\n \"option\": {\n \"strikeBps\": 50,\n \"expiryMs\": 1735689600000,\n \"optionType\": \"call\"\n },\n \"trade\": {\n \"side\": \"buy\",\n \"budgetUsd\": 100,\n \"size\": 10\n },\n \"wallet\": \"0xTrader0000000000000000000000000000000000\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.convallax.com/quote-requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"market\": {\n \"conditionId\": \"0xa4ddc18895cc7b14810283ef8f113939abffd3969c6a0e37f1897110c67e6f73\",\n \"yesTokenId\": \"51508280778202349361616850684455231843716212176724253736363122559269229712002\",\n \"question\": \"Will there be a Hantavirus outbreak in 2026?\"\n },\n \"option\": {\n \"strikeBps\": 50,\n \"expiryMs\": 1735689600000,\n \"optionType\": \"call\"\n },\n \"trade\": {\n \"side\": \"buy\",\n \"budgetUsd\": 100,\n \"size\": 10\n },\n \"wallet\": \"0xTrader0000000000000000000000000000000000\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"requestId": "req-789",
"expiresAt": "2026-06-15T12:05:00.000Z",
"makersConnected": 3
}{
"success": true,
"error": "Quote request not found or expired"
}Open a live quote request to start receiving competitive quotes from market makers. The relay broadcasts the trade parameters to all connected makers over the quote-request SSE stream and returns a
requestId that you use to stream or poll for quotes and eventually commit.
Quote requests are long-lived (default 5-minute TTL, configurable via QUOTE_REQUEST_TTL_MS) and require no wallet signature — the trader’s authorization happens at the on-chain fill() step.Body
application/json
Show child attributes
Show child attributes
Show child attributes
Show child attributes
On a buy, the taker submits a USDC budget (budgetUsd) and the fill is floor(budgetUsd / price) whole options, capped by the maker's quoted size. On a sell, the taker submits a contract count (size).
Show child attributes
Show child attributes
Taker wallet (checksummed). Optional at creation; can be provided at commit.
Example:
"0xTrader0000000000000000000000000000000000"
Was this page helpful?
⌘I
