Giter Club home page Giter Club logo

black-scholes-solidity's Introduction

Black Scholes Solidity

Highly accurate estimation of the Black-Scholes model prices for ATM options calculated on-chain

Black-Scholes Model Estimation

The price for an option contract is a factor of the volatility of the underlying asset. One common model for determining the price is the Black-Scholes model, also known as the Black-Scholes-Merton model. Although it has some inaccuracies and drawbacks when used in real world scenarios it remains one of the most commonly used methods for pricing option contracts.

Potential Uses

  • On-chain price quotations for derivative contracts.
  • Self-hedging synthetic positions.
  • Volatility-adjusted transaction volume.

Planned Improvements

  • Precision handled by the contract rather than passed to the contract
  • The goal here is to ultimately be able to calculate the price for options other than those ATM.
  • Implementation of self-pricing mechanism based on logged historical prices
  • SafeMath integration
  • Gas Optimizations

Getting Started

npm install

truffle develop

# once console loads:
> test

Issues & Contributing

There are likely better ways to accomplish the goals of this project. Feel free to open an issue for any bugs that you may encounter or any suggestions you might desire to share.

Final Thoughts

We as an industry have only begun to scratch the surface of blockchain implementations of financial derivatives. The problem which has hindered most assets up to this point is the ability to have on-chain pricing data that is also decentralized/trusted. Derivatives offer the possibility of removing the this necessity due to their inherent nature and relationship to an underlying asset.

black-scholes-solidity's People

Contributors

dependabot[bot] avatar ryanhendricks 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.