Code Monkey home page Code Monkey logo

bitmex_historical_scraper's Introduction

BITMEX Historical Data Scraper

Bitmex no longer offers historical trade data on their REST API. They do have the data in a public AWS bucket, which this scrapes and converts to CSV files (by year).

Installation

  1. Clone/download repository
  2. Install requirements: pip install -r requirements.txt

Usage

  • python scrape.py - Scrape all available data
  • python scrape.py --start YYYYMMDD - Scrape data from start date through yesterday
  • python scrape.py --start YYYYMMDD --end YYYYMMDD - Scrape data from start date through end date (inclusive)
  • python scrape.py --end YYYYMMDD - Scrape data from start of data through end date

bitmex_historical_scraper's People

Contributors

bmoscon 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  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bitmex_historical_scraper's Issues

using pandas uses a lot of memory

some people have let me know that their computers do not have enough memory to process all of 2017. Fix would be to process the files without pandas

Suggestions

This is a great tool and saved me a lot of time. Two suggestions:

  • CSV files should be created for every month and not year. Much easier to handle the data size-wise.
  • There should be an option to filter symbols. I only needed it for XBTUSD but had to load large datasets again and filter the required symbol.

I know these are very small changes but python handicap like me struggles moving large datasets.

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.