전현진

Delete index.js

Showing 1 changed file with 0 additions and 19 deletions
1 -// const fetch = require('node-fetch');
2 -
3 -// const url = 'https://api.upbit.com/v1/candles/weeks/?market=KRW-BTC&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))
9 -// .catch(err => console.error('error:' + err));
10 -
11 -const fetch = require('node-fetch');
12 -
13 -const url = 'https://api.upbit.com/v1/candles/minutes/1?market=KRW-BTC&count=1';
14 -const options = {method: 'GET', headers: {Accept: 'application/json'}};
15 -
16 -fetch(url, options)
17 - .then(res => res.json())
18 - .then(json => console.log(json))
19 - .catch(err => console.error('error:' + err));