项目作者: bottama

项目描述 :
Download Cryptocurrency Option Data from Deribit via public API and stored data in a remote Ubuntu server in an SQLite database.
高级语言: Python
项目地址: git://github.com/bottama/Deribit-Option-Data.git
创建时间: 2021-02-09T13:35:44Z
项目社区:https://github.com/bottama/Deribit-Option-Data

开源协议:

下载


Downloading real time Cryptocurrency Option Data from Deribit

Last Update February 21, 2021

Matteo Bottacini, matteo.bottacini@usi.ch

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:

  1. Deribit-Option-Data/
  2. csv_files/
  3. btc_option_data.csv
  4. eth_option_data.csv
  5. deliverable/
  6. option-data-download.py
  7. server-setup.sh
  8. README.md
  9. SQLite-database-management.md
  10. 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