Skip to content

Latest commit

 

History

History
46 lines (40 loc) · 936 Bytes

readme.md

File metadata and controls

46 lines (40 loc) · 936 Bytes

Cryptocurrency rest api

Direct copy of this repo. I made it in Rust to learn it.

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

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

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

$ cargo run

License

WTFPL License