Git Product home page Git Product logo

crypto-hft-data's Introduction

Crypto HFT Data Aggregator

Crypto High Frequency Data Aggregator

This project helps you to collect real-time orderbook, trade and other HFT data from several crypto exchanges using websocket endpoints.

Available Exchanges

  • Binance
  • Bitmex
  • Okex
  • Bitfinex
  • Coinbase
  • Bitstamp
  • Kraken

Usage

1. Clone, Set-up virtual environment and Install requirements

$ git clone [email protected]:SpiralDevelopment/crypto-hft-data.git
$ cd crypto-hft-data
$ pip3 install virtualenv
$ virtualenv env
$ source env/bin/activate
$ pip3 install -r requirements.txt

2. Prepare config file

Decide on what kind of data you want to receive from an exchange, and save that information in json format into configs.json file.

Example to collect orderbook and trade data from Coinbase for BTC-USD and ETH-USD pairs:

{
  "coinbase": {
    "BTC-USD": "matches,level2",
    "ETH-USD": "matches,level2"
  }
}

Example to collect orderbook, trade and liquidation data from Bitmex for XBT-USD and ETH-USD pairs:

{
  "bitmex": {
    "xbtusd": "orderBookL2,trade,liquidation",
    "ethusd": "orderBookL2,trade,liquidation"
  }
}

To find out the exact endpoints, you need to refer to the offical API documentations of the exchanges.

I've already made a sample configurations for all exchanges in the configs.json file. All those endpoints are active and working as of writing this.

3. Launch

Run main.py passing exchange name as an argument.

python3 main.py -e coinbase

All data is saved in .csv file format under files/"exchange-name"/"endpoint-name" folders.

Contributions

Contributions and feature requests are always welcome!

Support

If you like my work, feel free to support it!

  • BTC: 1PUGs6mxcW2W3SJi95aG8GvRQRJsoFHWWQ

  • ETH: 0x66615e09f7f46429e7620ffbf78479879bbab41d

  • LTC: LRxYMgEXMumwxYdimZo9EJ5CfBcipD5c3n

License

MIT License

crypto-hft-data's People

Contributors

spiraldevelopment 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  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

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.