Coder Social home page Coder Social logo

dwasse / vol-surface-visualizer Goto Github PK

View Code? Open in Web Editor NEW
48.0 2.0 19.0 4.64 MB

Volatility surface visualizer for cryptocurrency options.

Home Page: http://volsurface.io/visualize/BTCUSD

CSS 0.10% JavaScript 0.41% Python 55.69% Jupyter Notebook 42.92% HTML 0.29% C 0.59% Shell 0.01%
bitcoin options derivatives data-visualization deribit volatility-surface-visualizer

vol-surface-visualizer's Introduction

This repository holds the client and server for the volatility surface visualizer at http://0xhedge.io. Implied volatility is calculated from mid-market Deribit data with naive Black-Scholes and plotted against delta/strike and time to expiration.

What is a volatility surface?

A volatility surface is a 3d plot of option implied volatility as a function of delta (or strike) and time to expiration. This allows us to visualize the market's outlook on volatility. We calculate implied volatility using the Black-Scholes formula, using the mid-market option price from deribit.

Dependencies

You will need:

  • python3
  • python3-pip
  • npm
  • postgresql

On ubuntu, you can install dependencies with:

./setup.sh

Then, you will need to create the vol surface database:

sudo -u postgres psql
> CREATE DATABASE volsurface;
> CREATE USER "user" WITH ENCRYPTED PASSWORD 'password';
> \q

Getting Started

To run the server, do python3 server.py.

To run a websocket server for live data support, run python3 liveData.py once the server is running. You will need to add an apis.py file with your key and secret, since Deribit requires API authentication for accessing their websocket endpoints.

Screenshots

Alt text

vol-surface-visualizer's People

Contributors

0xhedge avatar dwasse 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

Watchers

 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.