Messages
{
"type": "auth",
"auth": {
"apiKey": "YOUR_API_KEY",
"secret": "YOUR_API_SECRET",
"passphrase": "YOUR_API_PASSPHRASE"
},
"identity": {
"signer_address": "0xYourSigner",
"maker_address": "0xYourQuoterWallet",
"signature_type": 0
}
}{
"type": "RFQ_QUOTE",
"rfq_id": "rfq_<id>",
"price_e6": "450000",
"size_e6": "1000000",
"signed_order": {
"salt": "<order_salt>",
"maker": "0xYourQuoterWallet",
"signer": "0xYourSigner",
"tokenId": "<yes_or_no_position_id>",
"makerAmount": "<amount_to_pay>",
"takerAmount": "<taker_amount>",
"side": 0,
"signatureType": 0,
"timestamp": "<unix_seconds>",
"metadata": "0x0000000000000000000000000000000000000000000000000000000000000000",
"builder": "0x0000000000000000000000000000000000000000000000000000000000000000",
"signature": "0x..."
}
}{
"type": "RFQ_QUOTE_CANCEL",
"rfq_id": "rfq_<id>",
"quote_id": "quote_<id>",
"signer_address": "0xYourSigner",
"maker_address": "0xYourQuoterWallet"
}{
"type": "RFQ_CONFIRMATION_RESPONSE",
"rfq_id": "rfq_<id>",
"quote_id": "quote_<id>",
"decision": "CONFIRM"
}{
"type": "auth",
"success": true,
"address": "0xAuthenticatedAddress"
}{
"type": "RFQ_REQUEST",
"rfq_id": "rfq_<id>",
"requestor_public_id": "req_<public_id>",
"leg_position_ids": [
"<leg_position_id_1>",
"<leg_position_id_2>"
],
"condition_id": "0x<condition_id>",
"yes_position_id": "<yes_position_id>",
"no_position_id": "<no_position_id>",
"direction": "BUY",
"side": "YES",
"requested_size": {
"unit": "notional",
"value_e6": "1000000"
},
"submission_deadline": 1780575184000
}{
"type": "ACK_RFQ_QUOTE",
"rfq_id": "rfq_<id>",
"quote_id": "quote_<id>"
}{
"type": "ACK_RFQ_QUOTE_CANCEL",
"rfq_id": "rfq_<id>",
"quote_id": "quote_<id>"
}{
"type": "RFQ_CONFIRMATION_REQUEST",
"rfq_id": "rfq_<id>",
"quote_id": "quote_<id>",
"signer_address": "0xYourSigner",
"maker_address": "0xYourQuoterWallet",
"signature_type": 0,
"leg_position_ids": [
"<leg_position_id_1>",
"<leg_position_id_2>"
],
"condition_id": "0x<condition_id>",
"yes_position_id": "<yes_position_id>",
"no_position_id": "<no_position_id>",
"direction": "BUY",
"side": "YES",
"fill_size_e6": "1000000",
"price_e6": "450000",
"confirm_by": 1780575184000
}{
"type": "ACK_RFQ_CONFIRMATION_RESPONSE",
"rfq_id": "rfq_<id>",
"quote_id": "quote_<id>",
"decision": "CONFIRM"
}{
"type": "RFQ_EXECUTION_UPDATE",
"rfq_id": "rfq_<id>",
"status": "MINED",
"tx_hash": "0x<transaction_hash>"
}{
"type": "RFQ_ERROR",
"request_type": "RFQ_QUOTE",
"rfq_id": "rfq_<id>",
"code": "COMPETITION_WINDOW_CLOSED",
"error": "competition window closed"
}Quoter Gateway
Authenticated WebSocket for combinatorial RFQ quoters — receive requests, submit quotes, confirm last look, and track execution.
WSS
/
ws
/
rfq
Messages
{
"type": "auth",
"auth": {
"apiKey": "YOUR_API_KEY",
"secret": "YOUR_API_SECRET",
"passphrase": "YOUR_API_PASSPHRASE"
},
"identity": {
"signer_address": "0xYourSigner",
"maker_address": "0xYourQuoterWallet",
"signature_type": 0
}
}{
"type": "RFQ_QUOTE",
"rfq_id": "rfq_<id>",
"price_e6": "450000",
"size_e6": "1000000",
"signed_order": {
"salt": "<order_salt>",
"maker": "0xYourQuoterWallet",
"signer": "0xYourSigner",
"tokenId": "<yes_or_no_position_id>",
"makerAmount": "<amount_to_pay>",
"takerAmount": "<taker_amount>",
"side": 0,
"signatureType": 0,
"timestamp": "<unix_seconds>",
"metadata": "0x0000000000000000000000000000000000000000000000000000000000000000",
"builder": "0x0000000000000000000000000000000000000000000000000000000000000000",
"signature": "0x..."
}
}{
"type": "RFQ_QUOTE_CANCEL",
"rfq_id": "rfq_<id>",
"quote_id": "quote_<id>",
"signer_address": "0xYourSigner",
"maker_address": "0xYourQuoterWallet"
}{
"type": "RFQ_CONFIRMATION_RESPONSE",
"rfq_id": "rfq_<id>",
"quote_id": "quote_<id>",
"decision": "CONFIRM"
}{
"type": "auth",
"success": true,
"address": "0xAuthenticatedAddress"
}{
"type": "RFQ_REQUEST",
"rfq_id": "rfq_<id>",
"requestor_public_id": "req_<public_id>",
"leg_position_ids": [
"<leg_position_id_1>",
"<leg_position_id_2>"
],
"condition_id": "0x<condition_id>",
"yes_position_id": "<yes_position_id>",
"no_position_id": "<no_position_id>",
"direction": "BUY",
"side": "YES",
"requested_size": {
"unit": "notional",
"value_e6": "1000000"
},
"submission_deadline": 1780575184000
}{
"type": "ACK_RFQ_QUOTE",
"rfq_id": "rfq_<id>",
"quote_id": "quote_<id>"
}{
"type": "ACK_RFQ_QUOTE_CANCEL",
"rfq_id": "rfq_<id>",
"quote_id": "quote_<id>"
}{
"type": "RFQ_CONFIRMATION_REQUEST",
"rfq_id": "rfq_<id>",
"quote_id": "quote_<id>",
"signer_address": "0xYourSigner",
"maker_address": "0xYourQuoterWallet",
"signature_type": 0,
"leg_position_ids": [
"<leg_position_id_1>",
"<leg_position_id_2>"
],
"condition_id": "0x<condition_id>",
"yes_position_id": "<yes_position_id>",
"no_position_id": "<no_position_id>",
"direction": "BUY",
"side": "YES",
"fill_size_e6": "1000000",
"price_e6": "450000",
"confirm_by": 1780575184000
}{
"type": "ACK_RFQ_CONFIRMATION_RESPONSE",
"rfq_id": "rfq_<id>",
"quote_id": "quote_<id>",
"decision": "CONFIRM"
}{
"type": "RFQ_EXECUTION_UPDATE",
"rfq_id": "rfq_<id>",
"status": "MINED",
"tx_hash": "0x<transaction_hash>"
}{
"type": "RFQ_ERROR",
"request_type": "RFQ_QUOTE",
"rfq_id": "rfq_<id>",
"code": "COMPETITION_WINDOW_CLOSED",
"error": "competition window closed"
}Auth
type:object
Authenticate the connection
RFQ_QUOTE
type:object
Submit a signed maker quote
RFQ_QUOTE_CANCEL
type:object
Cancel an active maker quote
RFQ_CONFIRMATION_RESPONSE
type:object
Confirm or decline a selected quote
Auth Response
type:object
Gateway response to the auth message
RFQ_REQUEST
type:object
Broadcast of an active RFQ request
ACK_RFQ_QUOTE
type:object
Returns the server-generated quote ID
ACK_RFQ_QUOTE_CANCEL
type:object
Confirms quote cancellation
RFQ_CONFIRMATION_REQUEST
type:object
Last-look confirmation request for a selected quote
ACK_RFQ_CONFIRMATION_RESPONSE
type:object
Confirms the maker's last-look response
RFQ_EXECUTION_UPDATE
type:object
Execution progress for selected makers
RFQ_ERROR
type:object
Sent when a command fails validation or cannot be applied
Was this page helpful?
⌘I