Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

coindeskapi ethereum

const request = require("request");

request.get("https://min-api.cryptocompare.com/data/price?fsym=ETH&tsyms=USD,EUR,CNY,JPY,GBP", function(error, response, body) {
    if (error)
        throw error;
    else if (!response)
        throw new Error("no response");
    else if (response.statusCode != 200)
        throw new Error("bad response");
    else
        console.log(JSON.stringify(JSON.parse(body), null, 4));
});
Source by ethereum.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #coindeskapi #ethereum
ADD COMMENT
Topic
Name
7+8 =