Code Monkey home page Code Monkey logo

coin_market_cap's Introduction

Coin_market_cap

Here you can find a simple way to get crypto coins historical data and basic statistics out of ‘coinmarketcap.com’, by coins range, coin name, min. volume, traded on specific markets

Usage

Coins_history.py

Main method to run: get_crypto_coins_history

Parameters

Parameter Description Default Value
i_rank_start Pull data from current rank [includes] 1
i_rank_end Pull data to current rank [includes] 10
i_coin_file_path Csv file name crypto_coins
i_from_date Pull data from this date [YYYY-MM-DD] 30 days ago
i_to_date Pull data till this date [YYYY-MM-DD] Yesterday
i_min_volume Pull data when 24 Hrs. volume bigger than this 100,000 [usd]
i_coin_markets pull data when coins traded on those markets, if empty ignore empty list

Output

CSV file contains the following columns: Coin, Cur. rank, Close, Date, High, Low, Market cap, Open, Volume

Method: get_specific_coin_historical_data

Parameters:

Parameter Description Format
i_coin Coin name string
i_from_date Pull data from this date string 'YYYYmmdd'
i_to_date Pull data till this date string 'YYYYmmdd'

Output

Dataframe contains the following columns: Close, Date, High, Low, Market cap, Open, Volume

Coins_statistics.py

Main method to run: save_coins_statistics

Parameters:

Parameter Description Default Value
i_rank_start Pull data from current rank [includes] 1
i_rank_end Pull data to current rank [includes] 10
i_coin_file_path Csv file name crypto_coins

Output

CSV file contains the following columns:

Column Calculation description
Change [Close] ([Close] – [Yesterday Close])/ [Yesterday Close]
Change [High] ([High] – [Yesterday High])/ [Yesterday High]
Change [Market Cap] ([Market Cap] – [Market Cap High])/ [Market Cap High]
Change [Volume] ([Volume] – [Volume High])/ [Volume High]
Daily rank market cap Rank of each coin market cap per each date
Daily rank volume Rank of each coin volume per each date
Day Change [Open to high] ([High] – [Open]) / [Open]
Day change [Open to close] ([Close] – [Open]) / [Open]
High average High average of all dates appear in file
Market cap average Market cap average of all dates appear in file

Acknowledgements

Data is scrapped from coinmarketcap

coin_market_cap's People

Contributors

jacobbaruch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.