Skip to main content

QpOutboundMessage

Type Alias QpOutboundMessage 

Source
pub type QpOutboundMessage = QpServerMessage;

Aliased Type§

pub enum QpOutboundMessage {
    Authenticated {
        wallet: String,
        capabilities: Vec<String>,
    },
    AuthFailed {
        reason: String,
    },
    RfqRequest {
        rfq_id: String,
        legs: Vec<QpRfqLeg>,
        taker_wallet: String,
        request_timestamp: u64,
        response_deadline_ms: u64,
        auto_accept_limit: Option<String>,
        auto_execute: bool,
        taker_limit_price: Option<String>,
        reference_price: Option<String>,
        min_improvement_tick: Option<String>,
        auction_deadline_ms: Option<u64>,
        requires_price_improvement: bool,
    },
    QpMarginRejection {
        rfq_id: String,
        quote_id: String,
        reason: String,
    },
    RfqAlreadyFilled {
        rfq_id: String,
        filled_by_quote_id: String,
    },
}

Variants§

§

Authenticated

Fields

§wallet: String
§capabilities: Vec<String>

Optional protocol capabilities this server supports (e.g. CAP_SCOPED_INDICATIVE). Absent/empty on older servers, and omitted from the wire when empty so a server advertising nothing is byte-identical to a pre-capability server. Clients must treat unknown strings as inert.

§

AuthFailed

Fields

§reason: String
§

RfqRequest

Fields

§rfq_id: String
§taker_wallet: String
§request_timestamp: u64
§response_deadline_ms: u64
§auto_accept_limit: Option<String>
§auto_execute: bool
§taker_limit_price: Option<String>
§reference_price: Option<String>
§min_improvement_tick: Option<String>
§auction_deadline_ms: Option<u64>
§requires_price_improvement: bool
§

QpMarginRejection

Fields

§rfq_id: String
§quote_id: String
§reason: String
§

RfqAlreadyFilled

Fields

§rfq_id: String
§filled_by_quote_id: String