pub type QpInboundMessage = QpClientMessage;Expand description
Backwards-compatible names for API-side code.
Aliased Type§
pub enum QpInboundMessage {
ConnectQuoteProvider {
wallet: String,
timestamp: String,
nonce: u64,
signature: String,
},
GatewayResumeQuoteProvider {
wallet: String,
timestamp: String,
nonce: u64,
signature: String,
},
IndicativeQuoteUpdate {
quotes: Vec<IndicativeQuote>,
},
ScopedIndicativeQuoteUpdate {
scope: ScopeId,
quotes: Vec<IndicativeQuote>,
},
RfqResponse {
rfq_id: String,
action: String,
legs: Option<Vec<QpResponseLeg>>,
net_premium: Option<String>,
valid_for_ms: Option<u64>,
signature: Option<String>,
nonce: Option<u64>,
},
}Variants§
ConnectQuoteProvider
First frame for direct QP connections.
GatewayResumeQuoteProvider
First frame for gateway-managed reconnects.
Public QP clients must not send it directly.
IndicativeQuoteUpdate
Periodic indicative quote update: a full snapshot for the wallet. Instruments this wallet previously quoted but omits here are evicted server-side.
Fields
quotes: Vec<IndicativeQuote>ScopedIndicativeQuoteUpdate
Scoped indicative quote update: a full snapshot of one
client-defined scope (see ScopeId). Eviction-by-omission is
limited to instruments this wallet previously published under the
same scope; other scopes are untouched. Empty quotes explicitly
clears the scope.
Clients must only send this after the server advertised
CAP_SCOPED_INDICATIVE in QpServerMessage::Authenticated;
older servers reject the unknown message type.
RfqResponse
Firm quote response to an RFQ.