Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Repository files navigation

data-feeds

#Installation requirements: node.js, postgresql

  • run RESET_DB=true node feeds.js for recreating db structure (warning: all data will be lost)
  • run CREATE_VIEWS=true node feeds.js for creating aggregating views for data
  • run CREATE_SERICA_FEEDS=true node feeds.js for creating the serica feeds tables (warning: all serica feed data will be lost)

##API

GET /feed/<exchange>/<token>?

Example url: /feed/goldfeed/GOLDtoBTC?interval=day

valid intervals

  • day
  • hour
  • month

response:

[{exchange: "lakebtc",token: "CNYtoBTC",bid: 3601.9,ask: 3615.26,low: 3576.11,high: 3649.09,date_trunc: "2014-07-29T23:19:39.000Z"},{exchange: "lakebtc",token: "USDtoBTC",bid: 583.77,ask: 585.95,low: 579.6,high: 591.43,date_trunc: "2014-07-29T23:19:39.000Z"}]
GET /latest?token=:token

Gets latest prices on token

GET /tokens

response:

[{token: "GOLDtoUSD"},{token: "CNYtoBTC"},{token: "SILVERtoUSD"},{token: "PALLADIUMtoUSD"},{token: "USDtoBTC"},{token: "PLATINUMtoUSD"}]
GET /exchanges

response:

[{exchange: "btce"},{exchange: "goldfeed"},{exchange: "lakebtc"},{exchange: "bitfinex"},{exchange: "bitstamp"}]

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages