전현진

Delete index.js

Showing 1 changed file with 0 additions and 9 deletions
1 -const fetch = require('node-fetch');
2 -
3 -const url = 'https://api.upbit.com/v1/candles/minutes/1?market=KRW-XRP&count=1';
4 -const options = {method: 'GET', headers: {Accept: 'application/json'}};
5 -
6 -fetch(url, options)
7 - .then(res => res.json())
8 - .then(json => console.log(json[0].trade_price))
9 - .catch(err => console.error('error:' + err));
...\ No newline at end of file ...\ No newline at end of file