Skip to content

NodeJs调用CoinAPI接口将Candles数据插入json文件或数据库中

Notifications You must be signed in to change notification settings

JamesDream87/CoinAPI_NodeJs_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

isntall

npm install mysql

write yourself config.js

new a file in root folder,named it config.js and wirte your config like this:

  var config =[{     
  host: 'localhost',       
  user: 'username',              
  password: 'password',       
  port: '3306',                   
  database: 'db',
  key: 'your CoinAPI's key'
}]

module.exports.config = config;

run function

write this in the shell

  node run.js

The End

the DataFeed folder have lots of BTC history data,its cleaned data. When did you using the CoinAPI's data,you must very careful the data had many errors. Because the returned data have lots of commas was redundance.

About

NodeJs调用CoinAPI接口将Candles数据插入json文件或数据库中

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published