Trading
Submit RFQ
Submit a signed EIP-712 request for quote. The relay broadcasts to market makers and returns the best competing quote.
POST
Submit a signed request for quote to the relay. The relay verifies the taker’s EIP-712 signature, broadcasts the RFQ to all connected market makers via WebSocket, collects competing quotes within the timeout window (default 800ms), and returns the best one.
The frontend constructs a nested payload, converts it to a flat
ConvallaxRFQV1 EIP-712 typed data message, and signs it with the taker’s wallet.
Request Body
The RFQ payload containing nested
market, option, and trade objects.EIP-712 signature from the taker wallet over the flattened
ConvallaxRFQV1 typed data message.Must be
"eip712".EIP-712 Typed Data
The relay flattens the nested payload into aConvallaxRFQV1 EIP-712 message for signature verification. Integer fields use basis points and micro-units to avoid floating point:
The flattening converts:
expiryMs → expiryUnix (÷ 1000), tauDays → tauDaysBps (× 10000), sigmaL → sigmaLBps (× 10000), currentYesPrice → currentYesBps (× 10000), trade.size → tradeSizeMicro (× 1000000), trade.side → tradeSide (0 = buy, 1 = sell).Response
Whether a valid quote was received.
The winning quote from the best market maker.
