Fetch crypto-currency ticker and foreign exchange rates, and upload into qyvlik/formula.
- Copy the
.env.exampleas.envfile - set the variable such as follow
# enable use http proxy
ENABLE_HTTP_PROXY=true
MY_HTTP_PROXY=http://127.0.0.1:1087
# job cron experession, default interval is 3 seconds
CRON_EXPRESSION=0/3 * * * * ?
# formula host, see https://github.com/qyvlik/formula
FORMULA_HOST=http://127.0.0.1:8120
FORMULA_TOKEN=ad82c6ae-f7a3-486b-b933-aa19104d8142
FORMULA_TIMEOUT=300000
# foreign exchange rates, see https://github.com/qyvlik/fiat-exchange-rates
FIAT_RATE_HOST=http://127.0.0.1:8080
FIAT_TIMEOUT=14400000- Copy the
fetch-config.json.exampleasfetch-config.json - Set the exchange name and market which you want fetch
{
"exchanges": [
"binance",
"huobipro",
"okex",
"upbit",
"kraken"
]
}npm install --registry=https://registry.npm.taobao.orgSee qyvlik/formula
See ccxt/ccxt