Skip to content

An API using Flask + Scrapy to provide data about crytocoins

Notifications You must be signed in to change notification settings

jessescn/crypto-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crypto API

An API using Flask + Scrapy to provide data about cryto coins from coinmarketcap.

Endpoints

/crypto

Returns a JSON with all crytocoins listed inside a coinmarketcap site.

 [{
    name: "Bitcoin",
    symbol: "BTC",
    market_cap: "$180,060,754,801",
    price: "10031.5125448",
    circulation_supply: "17949512.0",
    volume: "13615452153.7"
  },
  {
    name: "Ethereum",
    symbol: "ETH",
    market_cap: "$23,355,904,569",
    price: "216.585492684",
    circulation_supply: "107836883.624",
    volume: "7734900542.1"
  },
  ...
 ]

/crypto/:symbol

Return a JSON with informations about a specific cryptocoin.

{
    name: "Bitcoin",
    symbol: "BTC",
    market_cap: "$180,060,754,801",
    price: "10031.5125448",
    circulation_supply: "17949512.0",
    volume: "13615452153.7"
}

Configurations

This project is using pipenv for dependencies management.

# Installing the dependencies management
$ pip install --user pipenv

# Installing all project dependencies
$ pipenv install

# Running the API
$ pipenv run start 

After that, you just need to access your localhost:3000 and check if a message "API is on and running" has appeared.

About

An API using Flask + Scrapy to provide data about crytocoins

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages