get_forex_quote
Returns the real-time exchange rate quote for a forex pair.
Common pairs: EURUSD, GBPUSD, USDJPY, USDCHF, AUDUSD, USDCAD.
yearHigh / yearLow are the feed's trailing-year range, roughly the past
12-13 months: call them trailing-year figures. For a year-to-date or
calendar-year change, a dated extreme or an exact 52-week figure use
get_forex_historical, since the quote does not date its extremes.
A pair quotes the BASE currency (first three letters) in units of the
QUOTE currency (last three): USDHUF 320 means 1 USD = 320 HUF. A rising
rate, or a rate above its priceAvg50 / priceAvg200, is the base
strengthening against the quote. changePercentage is measured against
previousClose as of the quote's timestamp. Spot FX is closed from Friday
17:00 to Sunday 17:00 New York time; a quote stamped in that window
shows the change as of the last close, not a move made that day.
Args:
symbol: Forex pair symbol (e.g. 'EURUSD')
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Forex pair, uppercase with no slash, e.g. 'EURUSD', 'GBPUSD', 'USDJPY'. |