Skip to main content

funds_currency_mismatch_warning

Function funds_currency_mismatch_warning 

Source
pub fn funds_currency_mismatch_warning(
    requested_currency: Option<i32>,
    returned_currency: Option<i32>,
) -> Option<String>
Expand description

User-visible warning when a single-currency backend ignores explicit funds currency and returns the account native currency instead.

REST / MCP / CLI all expose this as presentation metadata, but the decision belongs to the shared trade-read domain: only warn when the user explicitly requested a currency and the response carries a different non-unknown currency tag.