Showing
1 changed file
with
0 additions
and
9 deletions
index.js
deleted
100644 → 0
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 |
-
Please register or login to post a comment