Git Product home page Git Product logo

black_scholes's Introduction

Vanilla Black and Scholes Formulas

This repository implements in python the vanilla black and scholes formula for calls and puts as well as some of the greeks.

A basic introduction can be found at wikipedia: black scholes

Structure

The main executable is main.py. It should output a heatmap of deltas and gammas obtained from data/plan_base.xlsx. It also saves both heatmaps as png images in the data folder.

.
├── black_scholes.py
├── data
│   ├── plan_base.xlsx
│   ├── plan_resultados.xlsm
├── LICENSE
├── main.py
├── Makefile
├── README.md
├── test.py
└── utils
    ├── data_handling.py
    ├── dates.py
    ├── __init__.py
    ├── option.py
    └── tables.py

4 directories, 14 files

If you are in Linux you can type

$ make

to generate these heatmaps.

ALL DATA CONTAINED IN THE XLSX FILE IS FAKE

Tests on Linux

Type in terminal

$ make test

Test parameters were copied from Zsolt-Forray/options-calculator

TODOs

  • American options
  • Implied Volatility

black_scholes's People

Contributors

padulla avatar henriquesflores 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.