Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

Cayman Brothers StockShare SDK (v1.0)

Latest Stable Version

PHP SDK developed by Cayman Brothers Corporation for the analysis and valuation of equity derivative options.

Installation

The Cayman Brothers StockShare SDK can be installed with Composer. Run this command:

composer require caymanbrothers/stockshare-sdk

A short installation guide can also be found here as a video.

Usage

Note: This version of the Cayman Brothers StockShare SDK for PHP requires PHP 5.3 or greater.

Simple calculation of a call option using the Black-Scholes model.

require_once __DIR__ . '/vendor/autoload.php'; // change path as needed

$BlackScholes = new \CaymanBrothers\CaymanBrothers();

try {
    print_r($BlackScholes->calculate([
        'model' => 'BlackScholes',
        'options' => ['Call', 'Put'],
        'greeks' => true,
        'values' => [
            'underlying_price' => 1000,
            'strike' => 970,
            'expiration' => 92,
            'interest_rate' => 0.06,
            'volatility' => 0.2,
            'dividend_yield' => 0
        ]
    ]));
} catch (\Exception $e) {
    echo $e->getMessage();
}

License

Please see the license file for more information.

Security Vulnerabilities

If you have found a security issue, please contact the maintainers directly at stefankuehnel.com/contact.

About

PHP SDK developed by @caymanbrothers, @GloomBerry and @stefankuehnel for the analysis and valuation of equity derivative options.

Topics

Resources

License

Packages

No packages published

Languages