项目作者: qyvlik

项目描述 :
formula-data
高级语言: JavaScript
项目地址: git://github.com/qyvlik/formula-data.git
创建时间: 2019-09-19T03:24:51Z
项目社区:https://github.com/qyvlik/formula-data

开源协议:MIT License

下载


formula-data

Fetch crypto-currency ticker and foreign exchange rates,
and upload into qyvlik/formula.

startup

  1. Copy the .env.example as .env file
  2. set the variable such as follow
  1. # enable use http proxy
  2. ENABLE_HTTP_PROXY=true
  3. MY_HTTP_PROXY=http://127.0.0.1:1087
  4. # job cron experession, default interval is 3 seconds
  5. CRON_EXPRESSION=0/3 * * * * ?
  6. # formula host, see https://github.com/qyvlik/formula
  7. FORMULA_HOST=http://127.0.0.1:8120
  8. FORMULA_TOKEN=ad82c6ae-f7a3-486b-b933-aa19104d8142
  9. FORMULA_TIMEOUT=300000
  10. # foreign exchange rates, see https://github.com/qyvlik/fiat-exchange-rates
  11. FIAT_RATE_HOST=http://127.0.0.1:8080
  12. FIAT_TIMEOUT=14400000
  1. Copy the fetch-config.json.example as fetch-config.json
  2. Set the exchange name and market which you want fetch
  1. {
  2. "exchanges": [
  3. "binance",
  4. "huobipro",
  5. "okex",
  6. "upbit",
  7. "kraken"
  8. ]
  9. }

npm install

  1. npm install --registry=https://registry.npm.taobao.org

formula

See qyvlik/formula

ccxt

See ccxt/ccxt

foreign-exchange-rates

See qyvlik/fiat-exchange-rates