1.0.0 • Published 4 years ago
simple-alphavantage v1.0.0
alphavantage-api
KISS API wrapper for alphavanatage.co. Not sure why people make things so complicated. Also includes a .polish
method stolen from here.
Usage
// not on npm yet
const AlphaVantage = require("alphavantage-api"); // alphavantage.js
const av = new AlphaVantage("your api key here");
av.get({
function: "FX_INTRADAY",
from_symbol: "EUR",
to_symbol: "USD",
interval: "5min",
outputsize: "full",
}).then(data => {
console.log("response:", AlphaVantage.polish(data));
}).catch(console.error);
1.0.0
4 years ago