Alpha Advantage
Alpha Advantage
Code
Data from the alpha advantage site can be retrieved using $url. See the Alpha Advantage documentation for constructing the appropriate URL for the data you need.
let data = await $url('https://www.alphavantage.co/query?function=TIME_SERIES_DAILY_ADJUSTED&symbol=IBM&apikey=demo');
Try it!
In order to retrieve production data, you need to obtain an API key from Alpha Advantage. Once you have an API key, you can just put the key in place of "demo" in the above. This is not necessarily optimal for users who wish to share and collaborate with other users.
An alternative route would be to add your api key to your profile tokens so that it will be appended to your URL each time you make a call, and will be user specific.
- type:get
- url:https://www.alphavantage.co/
- key = apikey
- value = your provided api key
ONce your key has been added to your tokens, the code then appears as the following (note that the apikey is not appended to the URL passed to $url)