Hi community,
I'm reaching out regarding currency data retrievable through the European Central Bank's (ECB) API. I would like to be able to fetch exchange rate data for each currency within specific date ranges (from the MaxDate in the example data up to the current day) using a workflow and a macro. I have been trying to create a macro using a sample currency (USD) so that an API command, or URL, can be generated based on the information in each row.
For the macro, I would like it to create a unique ID for each currency (using the RecordID tool) and then use a Formula to generate the API command, resulting in a URL.
In the workflow, I want the macro to be able to update the ID number for each currency, incrementing it by one based on the previous row's currency ID. Then, the macro would update the URL for the API command to fetch the currency data. Finally, I would like all this information to be provided as output, so that the exchange rate data for each currency can be written to a database one currency at a time. In other words, the workflow and macro would run in a loop, starting with the smallest ID number. At the moment, there will come API headers such as "TIME_PERIOD", "CURRENCY_DENOM" etc. to the output data, after each currency is looped.
Both the workflow and macro are currently a bit confusing as I have been attempting to modify them. At the moment, the macro changes each currency to USD for some reason, which I am not able to understand. I apologize for this, as I am new to using Alteryx and my skills are still limited.
Any advice or explanation what should be done would be highly appreciated! Thanks! Happy to provide more detail if needed!
Please see the attached workflows to better understand what I am trying to do.
See the link to ECB's web page to read about the APIs: https://data.ecb.europa.eu/help/api/data