alphavantage-api

How to loop though Alpha Vantage timestamps

杀马特。学长 韩版系。学妹 提交于 2019-12-24 10:49:50
问题 I am trying to loop through the JSON from my API call and plot each high trade price in my react app (the end goal will be to create a chart). The issue is, I would need to know the exact timestamp string beforehand, because the API isn't structured numerically. Here is my code (see the console log). I am currently testing the proper endpoint BEFORE creating a loop, which is why you don't see one. If you are curious, the this.state.stock is AMD, which I am using to test it. Eventually it will