Skip to content

1070rik/rust-crypto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

crypto prices api written in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages