Giter VIP home page Giter VIP logo

deribit_data_collector's Introduction

Deribit Options Downloader

A package which can download all current BTC and ETH option chain data on Deribit.

Example

>>> import deribit_data as dm
>>> btc_data = dm.Options("BTC")


# Get realised historical volatility
>>> df = btc_data.get_hist_vol(save_csv=False)
>>> df.tail()
date                    btc_hist_vol
2020-05-13 21:00:00     95.228999
2020-05-13 22:00:00     95.501434
2020-05-13 23:00:00     95.553333
2020-05-14 00:00:00     95.572422
2020-05-14 01:00:00     95.564853


# Get all option prices and relevant statistics - this should take less than 30 seconds.

>>> df = btc_data.collect_data(save_csv=False)
>>> df[['instrument_name', 'last_price', 'mark_iv', 'open_interest']].head()
      instrument_name	    last_price  mark_iv     open_interest
    0	BTC-22MAY20-9250-P	 0.0460	     77.72	     138.8
    1	BTC-22MAY20-12000-C	 0.0050	     112.28          110.6
    2	BTC-26JUN20-8000-C	 0.1825	     90.26	     771.0
    3	BTC-14MAY20-8875-C	 0.0410	     90.65	     24.7
    4	BTC-25SEP20-9000-P	 0.1770	     83.37	     266.9

External Dependencies

  • pandas==1.0.3
  • numpy==1.17.3

deribit_data_collector's People

Contributors

schepal 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.