Deribit-Option-Data
Deribit-Option-Data copied to clipboard
Download Cryptocurrency Option Data from Deribit via public API and stored data in a remote Ubuntu server in an SQLite database.
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
jsonqueries; - Setups Ubuntu remote server;
- Stores data in
.csvfiles; - Adds cron-jobs to run Python scripts;
- Stores data in a
SQLitedatabase; - Adds
.logfile for traceback.
- 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
.csvfiles in../csv_files/..; - connects to the
SQLitedatabseoption-data.dbon the Ubuntu remote server; - creates/updates
btc_option_dataandeth_option_datatables 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