Giter VIP home page Giter VIP logo

cryptocurrency_data_downloader's Introduction

Download cryptocurrency historical data from Binance

download_data_from_binance.py

  • Uses Binance APIs to get access to www.binance.com
  • Uses https://pypi.org/project/python-binance/ python lib
  • Refer: https://www.binance.com/en/support/articles/360002502072 to generate API keys
  • www.binance.us is made for use in USA. Change python lib is needed, otherwise script might fail while accessing binance.us. Edit the library code to change all occurrences of 'www.binance.com' to 'www.binance.us'
  • symbol_list variable contains list of all ticker symbols of interest
  • this script retains ['open', 'high', 'low', 'close', 'volume'] values of bitcoin and ['close', 'volume'] values of other currencies. But this can be changes easily on need basis.
  • This script downloads data for all tickers given in the symbol_list for a given date range. Binance is notorious to block access if very old data is requested or too much data is requested. So keep calm and run the script wisely.
  • All data are saves in individual files -binance-data.csv and then combined into filename given by variable concat_output_filename
  • Finally it cleans the file and save the final cleaned data into filename given by variable crypto_data_master_cleaned.csv. (cleaning is needed as the script might have to be executed many times, Thanks to Binance' policy!)
  • Sample data generate by this script looks like this alt text

This framework is used in https://github.com/pratikpv/predicting_bitcoin_market

cryptocurrency_data_downloader's People

Contributors

pratikpv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cryptocurrency_data_downloader's Issues

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.