Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 2.27 KB

README.md

File metadata and controls

36 lines (26 loc) · 2.27 KB

Watchmarket

Build Status codecov

Watchmarket is a Blockchain explorer API aggregator and caching layer. It's your one-stop-shop to get information for (almost) any coin in a common format

Watchmarket comes with three apps:

  • API: RESTful API to retrieve coin info, charts, and tickers
  • Observer: caches data from explorer APIs in Redis
  • Swagger: API explorer

Supported Explorer APIs

FYI! Watchmarket was recently spun out of Blockatlas which remains under branch version/blockatlas.

Getting started

  1. Spin up a Redis instance: docker run -it -p 6379:6379 redis
  2. Start the app: make start
    1. Explore the API: http://localhost:8423/swagger/index.html
    2. Use the API:
      • curl -v "http://localhost:8421/v1/market/info?coin=60" | jq .
      • curl -v -X POST 'http://localhost:8421/v1/market/ticker' -H 'Content-Type: application/json' -d '{"currency":"ETH","assets":[{"type":"coin","coin":60}]}'
      • curl -v "http://localhost:8421/v1/market/charts?coin=60&time_start=1574483028" | jq .
  3. When done: make stop

Run make to see a list of all available build directives.