Forex PnL
workflow.run_forex_pnlProfit or loss for a closed or hypothetical forex trade, in pips and in the pair's own quote currency, long or short. Use when user asks "what did I make/lose on this trade?" or "what would X pips be worth on Y lots?". Returns: pips (signed, positive favors the position taken), pnlQuote.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pair | Yes | Currency pair in BASE/QUOTE format, e.g. "EUR/USD" | |
| side | Yes | Trade direction: "long" or "short" | |
| units | Yes | Position size in base-currency units | |
| exitPrice | Yes | Exit price, same quote convention as the entry price | |
| entryPrice | Yes | Entry price in the pair's own quote terms, e.g. 1.0850 for EUR/USD |