Skip to content

fritsvt/go-crypto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cryptocurrency rest api

Cryptocurrency Price REST API written in Golang. Data is scraped from CoinMarketCap.

Please note that this is an unofficial API and is not supported or controlled by CoinMarketCap itself.

Live api base url: https://go-crypto.herokuapp.com

Usage

GET /coins.json

Output: JSON Response:

  [
     {
      "success": true,
      "timestamp": 1515959618,
      "amount_of_coins": 1433,
      "coins": [
          {
          "name": "bitcoin",
          "ticker": "BTC",
          "btc": "1.0",
          "price": "13615.6",
          "currency": "usd"
          },
          {
          "name": "ethereum",
          "ticker": "ETH",
          "btc": "0.0978496",
          "price": "1332.52",
          "currency": "usd"
          }
      ]
    }
  ]
  ...

Run Locally

I use dep to manage my dependencies so this guide assumes you have that installed :)

$ dep ensure
$ go run server.go

License

WTFPL License

About

crypto prices api written in go

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages