Skip to main content

spot_trade_quote_ccy_wire_value

Function spot_trade_quote_ccy_wire_value 

Source
pub fn spot_trade_quote_ccy_wire_value(
    instrument_type: OKXInstrumentType,
    configured: Option<&str>,
    available: &[Ustr],
) -> Result<Option<Ustr>, String>
Expand description

Resolves the optional tradeQuoteCcy wire value for a SPOT order.

Non-spot orders omit the field. When configured is unset or blank, the venue default (the quote currency in instId) is used. When set, available must be non-empty and contain the value.

ยงErrors

Returns an error when configured is set and available is empty, or when configured is not present in available.