Gold sale, FX and cash availability scenario
gold_cash_realisationCalculate gold sale proceeds and cash gates from caller inputs. Decimal strings: kg, fineness (0,1], USD/troy-oz bid, USD fees, currency/USD FX (USD=1). Use aware ISO clocks. Returns arithmetic and withheld-cash reasons; no fetch, storage, execution or verified balance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cutoff | Yes | ||
| cleared | Yes | ||
| fx_asof | Yes | ||
| pledged | Yes | ||
| fees_usd | Yes | ||
| fineness | Yes | ||
| fx_fee_bps | Yes | ||
| quote_asof | Yes | ||
| quantity_kg | Yes | ||
| settlement_at | Yes | ||
| bid_usd_per_oz | Yes | ||
| fx_valid_until | Yes | ||
| quote_currency | Yes | ||
| fx_quote_per_usd | Yes | ||
| access_restricted | Yes | ||
| quote_valid_until | Yes | ||
| max_quote_age_seconds | No |