Skip to main content

Forex

The Forex menu includes features for historical prices, forward rates, and real-time exchange rates. It also provides entry points to the /ta/, /qa, and /forecast menus.

Usage

The Forex menu is entered by typing forex, from the Main menu, or with the absolute path:

/forex

Screenshot 2023-11-03 at 12 26 41 PM

Load

The first step will be to load a pair of currencies. The pairs are entered as a six-letter symbol, with the former of the pair being "from".

load JPYUSD

Inversely:

load USDJPY

Quote

A quote from YahooFinance displays the last price and a timestamp when it was refreshed.

/forex/load JPYUSD/quote
Quote for JPY/USD

Last refreshed : 2023-11-03 19:30:00
Last value : 0.006694381590932608

From AlphaVantage, a table is returned that includes a bid and ask.

quote --source AlphaVantage
Realtime Currency Exchange Rate
From_Currency CodeJPY
From_Currency NameJapanese Yen
To_Currency CodeUSD
To_Currency NameUnited States Dollar
Exchange Rate0.00669000
Last Refreshed2023-11-03 19:34:01
Time ZoneUTC
Bid Price0.00668900
Ask Price0.00669000

FWD

The fwd command gets a table with the term structure of a currency pair.

/forex/load USDJPY/fwd
ExpirationAskBidMidPoints
Overnight149.397149.368149.3830
Tomorrow Next149.397149.368149.382-2.33
Spot Next149.397149.368149.382-2.325
One Week149.395149.366149.381-16.315
Two Weeks149.394149.365149.379-32.59
Three Weeks149.392149.363149.378-48.89
One Month149.39149.361149.375-70.1505
Two Months149.381149.352149.367-155.31
Three Months149.375149.346149.36-222.871
Four Months149.368149.339149.353-290.68
Five Months149.36149.331149.346-365.94
Six Months149.354149.325149.339-431.97
Seven Months149.347149.318149.332-500.22
Eight Months149.34149.311149.326-567.58
Nine Months149.334149.305149.319-630.18
Ten Months149.327149.298149.313-697.4
Eleven Months149.322149.293149.307-753.2
One Year149.316149.287149.301-812.9
Two Years149.256149.227149.242-1408.19
Three Years149.204149.173149.188-1943.13
Four Years149.158149.127149.142-2401.05
Five Years149.108149.077149.092-2904.72
Six Years149.08149.048149.064-3185.9
Seven Years149.047149.014149.03-3522.5
Ten Years148.948148.912148.93-4527.5

On this page