sudo npm i livescript -g
git clone https://github.com/blockstarter/rate_history_service
cd rate_history_service
npm i
sh run
Once server starts it loads calculates average rates and stores them into memory for faster access.
http://localhost:8080 # modify port in server.ls
Returns a basic information.
# Check rate for BTC/ETH and CHF/ETH
http://localhost:8080/rate/:unix_ts
# Response example:
{ "ETH": { "BTC": "0.0917820001808675764", "CHF": "202.00443299777144779363" }}
# Get status of service
http://localhost:8080/status
# Possible responses
{ serverStarting: true }
# Service loads historical trading data from Poloniex...
# `true` when service is calculating average rates.
# `false` when averages calculated.
{ btc_eth: true, usdt_eth: false }