Git Product home page Git Product logo

deribit-option-data's Introduction

Downloading real time Cryptocurrency Option Data from Deribit

Last Update February 21, 2021

Matteo Bottacini, [email protected]

Project description

This project is to download cryptocurrency option data available on Deribit via a public API. The project is run on an Ubuntu remote server with the implementation of Python 3, Shell and SQLite.

The scripts do the following:

  • Connects with Deribit via a public API and json queries;
  • Setups Ubuntu remote server;
  • Stores data in .csv files;
  • Adds cron-jobs to run Python scripts;
  • Stores data in a SQLite database;
  • Adds .log file for traceback.
  1. test

test

Folder structure:

Deribit-Option-Data/
    csv_files/
        btc_option_data.csv
        eth_option_data.csv
    deliverable/
        option-data-download.py
        server-setup.sh
    README.md
    SQLite-database-management.md
    ubuntu-server-setup.md

Deliverable

The script option-data-download.py:

  • downloads available data of Bitcoin and Ethereum Options;
  • appends new data to existing .csv files in ../csv_files/..;
  • connects to the SQLite databse option-data.db on the Ubuntu remote server;
  • creates/updates btc_option_data and eth_option_data tables in the database.

The script server-setup.sh:

  • Bash setup script for Ubuntu servers;
  • speicific documentation at ../ubuntu-server-setup.md.

csv_files

Data stroed in this directory are for local purposes. These files are not in the Ubuntu server.

The .csv files are:

  • Bitcoin Option data are stored in btc_option_data.csv;
  • Ethereum Option data are stored in eth_option_data.csv.

References

Deribit API: https://docs.deribit.com/?python#deribit-api-v2-0-1

deribit-option-data's People

Contributors

bottama 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

Watchers

 avatar  avatar

deribit-option-data's Issues

How to pass query params in the request?

I want to change my query params to this one below

{
"tick_size": 0.0001,
"taker_commission": 0.0005,
"strike": 31500,
"settlement_period": "week",
"quote_currency": "USD",
"option_type": "put",
"min_trade_amount": 0.01,
"maker_commission": 0.0001,
"kind": "option",
"is_active": true,
"instrument_name": "BTC-12FEB21-31500-P",
"expiration_timestamp": 1613116800000,
"creation_timestamp": 1611658131000,
"contract_size": 1,
"block_trade_commission": 0.00015,
"base_currency": "BTC"
}

from the default, how can I achieve this?

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.