This function allows for import of Oanda Currency Exchange rates into Excel, Oanda has an At Rest API interface. This plug in will allow for import of Oanda data on demand.
This API allows for import of Oanda Data to excel, it will consist of two functions, a historical function and current price function:
FromTo: is the currecy pair, example "EURUSD"
StartTime: is the hour the data starts, example "00:00" for 00:00 local time
Periodicity: periodicity is the time the hours are generated from: 1 minute, 1 hour, 1 day
TimeBack: the time back to run the analysis from, example 1 year, 10 years, starting from latest data
Output will be a sequence of the Date, Open, Close, High, Low
Excel function 2: CurrentPrice(FromTo)
Gives the latest price, with inputs:
FromTo being the ticker: such as EURUSD
There will also be an AUTOMATED LOGIN, where I put in login information ONCE and then it will automatically log in as needed to update data whenever a data pull is requested.
Updating: the updates will be done once when the function is input, then will not refresh again (unless the function is input again).
Oanda Data source URL: [login to view URL]
Attached is an image showing the desired input, and what Excel would output (not real numbers). Final project code will be able to be edited by myself but will not be sold, uploaded, or distributed to any other parties.