Toggle navigation
Toggle navigation
This project
Loading...
Sign in
정홍주
/
Coin-trade-assistant
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
전현진
2021-06-07 22:50:27 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6a144567c1014bc183ef00de9eca521c5b26d41e
6a144567
1 parent
aa061fcc
Delete index.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
index.js
index.js
deleted
100644 → 0
View file @
aa061fc
// const fetch = require('node-fetch');
// const url = 'https://api.upbit.com/v1/candles/weeks/?market=KRW-BTC&count=1';
// const options = {method: 'GET', headers: {Accept: 'application/json'}};
// fetch(url, options)
// .then(res => res.json())
// .then(json => console.log(json))
// .catch(err => console.error('error:' + err));
const
fetch
=
require
(
'node-fetch'
);
const
url
=
'https://api.upbit.com/v1/candles/minutes/1?market=KRW-BTC&count=1'
;
const
options
=
{
method
:
'GET'
,
headers
:
{
Accept
:
'application/json'
}};
fetch
(
url
,
options
)
.
then
(
res
=>
res
.
json
())
.
then
(
json
=>
console
.
log
(
json
))
.
catch
(
err
=>
console
.
error
(
'error:'
+
err
));
Please
register
or
login
to post a comment