Skip to main content

Exchange

Type Alias Exchange 

Source
pub type Exchange = Rfq;
Expand description

Backward-compatible alias for the renamed Rfq message.

Aliased Type§

pub struct Exchange {
    pub from_assets: Vec<String>,
    pub to_assets: Vec<String>,
    pub from_amount: Option<String>,
    pub to_amount: Option<String>,
    pub requester: Party,
    pub provider: Option<Party>,
    pub agents: Vec<Agent>,
    pub policies: Option<Vec<Value>>,
    pub transaction_id: Option<String>,
    pub metadata: HashMap<String, Value>,
}

Fields§

§from_assets: Vec<String>

Available source assets (CAIP-19, DTI, or ISO 4217 currency codes).

§to_assets: Vec<String>

Desired target assets (CAIP-19, DTI, or ISO 4217 currency codes).

§from_amount: Option<String>

Amount of source asset to exchange (conditional: either this or to_amount required).

§to_amount: Option<String>

Amount of target asset desired (conditional: either this or from_amount required).

§requester: Party

The party requesting the exchange.

§provider: Option<Party>

The preferred liquidity provider (optional, omit to broadcast).

§agents: Vec<Agent>

Agents involved in the RFQ.

§policies: Option<Vec<Value>>

Compliance or presentation requirements (TAIP-7).

§transaction_id: Option<String>

Transaction identifier (only available after creation).

§metadata: HashMap<String, Value>

Additional metadata.