Skip to Content
HyperQuote is live on HyperEVM — Start trading →
Agents

HyperQuote for AI Trading Agents

HyperQuote is RFQ execution infrastructure for size-aware spot trading on HyperEVM. Agents can listen for RFQs, price them, respond with signed quotes, and settle atomically onchain via the HyperEvmRfq settlement contract.

Architecture

The RFQ lifecycle follows a simple request-response-settle pattern:

Taker ── creates RFQ ──▶ Relay ── broadcasts ──▶ Agent prices + signs Taker ◀── selects quote ◀── Relay ◀── submits quote ─┘ └── calls fillExactIn / fillExactOut onchain ──▶ HyperEvmRfq

Components

ComponentRole
RFQ Contract (HyperEvmRfq)Onchain settlement. Verifies the maker’s EIP-712 signature, enforces taker binding, transfers tokens atomically. Source: contracts/spot-rfq/src/HyperEvmRfq.sol
RelayWebSocket server that broadcasts RFQs to connected makers/agents and routes signed quotes back to takers.
WebSocket AlertsReal-time event stream for new RFQs, quote updates, and fill notifications.
Telegram AlertsOptional public feed at @hyperquote  for monitoring RFQ activity.

Integration Paths

RFQ Listener

Agents subscribe to new RFQs via WebSocket:

wss://alerts.hyperquote.xyz

Event type: rfq.created

Fields received:

FieldDescription
pairToken pair (e.g. HYPE/USDC)
sizeRequested trade size
expiryQuote expiry timestamp
takerAddress of the requesting taker

Quote Provider

Agents construct a Quote struct and sign it using EIP-712 typed data signing.

Quote fields:

FieldTypeDescription
kinduint80 = EXACT_IN, 1 = EXACT_OUT
makeraddressAgent’s signing address
takeraddressMust match the requesting taker (address(0) is rejected)
tokenInaddressToken the taker sends
tokenOutaddressToken the taker receives
amountInuint256Amount of tokenIn
amountOutuint256Amount of tokenOut
expiryuint256Unix timestamp when the quote expires
nonceuint256Maker’s current nonce from the contract

EIP-712 domain:

name: "HyperQuote" version: "1" chainId: <HyperEVM chain ID> verifyingContract: <HyperEvmRfq address>

Quotes must be taker-bound. The contract rejects quotes with taker = address(0). Always set taker to the address from the RFQ request.

RFQ Executor

Takers execute quotes onchain by calling the settlement contract directly. The agent does not need to take any action at settlement time — the maker’s pre-signed quote and token approval are sufficient.

fillExactIn(Quote calldata quote, bytes calldata makerSig, uint256 minOut) fillExactOut(Quote calldata quote, bytes calldata makerSig, uint256 maxIn)

The contract verifies the maker’s EIP-712 signature, checks that msg.sender matches quote.taker, and executes atomic token transfers via SafeERC20.

Agents must ensure they have granted token approval to the HyperEvmRfq contract for tokenOut before their quotes can be filled.

Example Agent Workflow

Subscribe to RFQ alerts

Connect to the WebSocket endpoint and listen for rfq.created events.

Evaluate trade opportunity

Filter by token pair, size, and any internal risk limits.

Calculate price

Run your pricing model to determine amountIn / amountOut.

Sign quote (EIP-712)

Build the Quote struct and sign it with your agent’s private key using EIP-712 typed data.

Submit quote via relay

Send the signed quote back through the relay WebSocket.

Wait for taker selection

The taker reviews competing quotes and selects one.

Settlement executes onchain

The taker calls fillExactIn or fillExactOut. Tokens transfer atomically. The agent receives tokenIn (minus protocol fee) and sends tokenOut.

Resources

ResourceLink
GitHubgithub.com/hyperquote-xyz/hyperquote 
RFQ Contract Sourcecontracts/spot-rfq/src/HyperEvmRfq.sol
WebSocket AlertsAPI Reference
Telegram RFQ Feedt.me/hyperquote 
Maker SDK QuickstartSDK Quickstart
EIP-712 Signing GuideEIP-712 Signing
Last updated on