Forex Margin Level
workflow.run_forex_margin_levelFree margin and margin level % from account equity and used margin: equity/usedMargin*100, the same stop-out proximity metric every forex platform shows. Returns null (not Infinity) when usedMargin is 0, meaning no open position. Use when user asks "how close am I to a margin call?" or "what's my free margin?". Returns: freeMargin, marginLevelPct.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| equity | Yes | Account equity (balance + floating P&L) | |
| usedMargin | Yes | Margin currently locked by open positions. 0 if none. |