Skip to content

Watchmarket is an aggregation and caching service for blockchain market information

Notifications You must be signed in to change notification settings

arein/watchmarket

 
 

Repository files navigation

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.

About

Watchmarket is an aggregation and caching service for blockchain market information

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 95.4%
  • Makefile 4.3%
  • Dockerfile 0.3%