Forex Margin Required (Live)
workflow.run_forex_margin_required_liveNotional and margin required for a forex position, converted to a given account currency via a live FX rate (same TrueFX/frankfurter.app source as workflow.run_forex_pip_value_live). Use when user asks "how much margin do I need in my account currency?" and the account currency differs from the pair's own quote currency. Returns everything workflow.run_forex_margin_required does, plus accountCurrency, notionalAccount, marginAccount, fxRate, fxSource, available (false + error if no rate could be found).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pair | Yes | Currency pair in BASE/QUOTE format, e.g. "EUR/USD" | |
| price | Yes | Entry or current price | |
| units | Yes | Position size in base-currency units | |
| leverage | Yes | Leverage multiplier, e.g. 50 for 50:1 | |
| accountCurrency | Yes | 3-letter account currency code, e.g. "GBP" |