Skip to main content

Module rfq

Module rfq 

Source

Re-exports§

pub use crate::rfq::handler_state::RfqHandlerState;

Structs§

RfqHistoryQuery

Functions§

accept_rfq_quote
POST /rfq/accept - Accept a firm quote
accept_rfq_quote_inner
Core RFQ accept logic shared by the REST handler and the WebSocket handler.
compute_legs_hash_from_legs 🔒
Compute the canonical legs hash from a slice of RfqLegRequest.
get_rfq
GET /rfq/:rfq_id - Get RFQ status and quotes
get_rfq_history
GET /rfq/history?wallet=0x… - List past RFQs for wallet
rfq_record_to_response 🔒
submit_auto_execute_rfq_inner
Core RFQ auto-execute submission logic shared by the REST handler and the WebSocket handler. Similar to submit_rfq_inner but verifies the SubmitAutoExecuteRfq EIP-712 signature (which includes limitPrice) and passes the auto-accept limit through to the RFQ manager.
submit_rfq
POST /rfq/request - Submit a new RFQ
submit_rfq_inner
Core RFQ submission logic shared by the REST handler and the WebSocket handler.