Skip to content

The Solana Options Standard is an open source SDK that allows for the creation, execution, and assignment of option contracts on the Solana Blockchain.

License

Notifications You must be signed in to change notification settings

EpicentralLabs/solana-options-standard

Repository files navigation

Solana Options Standard

An open source software/program development kit (SDK). Inside of the SDK, there are a few things that will be built and optimized over a course of time. More detailed documentation and descriptions written in docs.epicentrallabs.com.

Black Scholes Model Formula:

Reference/Citation(s) - Wikipedia: Black Scholes Model

$C(S,t) = N(d_+)S_t - N(d_-)Ke^{-r(T-t)}$

Where:

$d_+ = \frac{1}{\sigma\sqrt{T-t}}\left[\ln\left(\frac{S_t}{K}\right) + \left(r + \frac{\sigma^2}{2}\right)(T-t)\right]$

$d_- = d_+ - \sigma\sqrt{T-t}$

Notation:

Market Related:

$t$ is a time in years; with $t = 0$ generally representing the present year.

$r$ is the annualized "risk-free" interest rate, continuously compounded (APY).

Option Related:

$V(S,t)$ is the current option price based on the asset price and time.

$C(S,t)$ is the call option price and $P(S,t)$ is the put option price.

$T$ is when the option expires.

$\tau$ is time left until expiry ($T - t$).

$K$ is the strike price (agreed price to buy/sell).

$N(x)$ denotes the standard normal cumulative distribution function (CDF):

$N(x) = \frac{1}{\sqrt{2\pi}} \int_{-\infty}^{x} e^{-z^2/2} dz.$

Greeks

Reference/Citation(s) - Wikipedia: Option Greeks

The Greeks serve as essential metrics for managing risk in options trading. They help traders understand how their portfolio value changes when specific market factors fluctuate. By analyzing each Greek independently, traders can assess individual risk components and adjust their positions to maintain their target risk profile.

Delta

Delta shows how much the option value changes when the underlying asset price changes. It represents the number of tokens needed to hedge the option.

$\Delta = \frac{\partial V}{\partial S}$

Theta

Theta shows how much value an option loses as time passes. It represents the daily decay in option value as it gets closer to expiration.

$\Theta = -\frac{\partial V}{\partial \tau}$

Vega

Vega shows how much the option value changes when volatility changes. It measures the impact of a 1% change in volatility.

$\nu = \frac{\partial V}{\partial \sigma}$

Gamma

Gamma shows how fast delta changes when the asset price moves. It helps measure how stable an option position is.

$\Gamma = \frac{\partial \Delta}{\partial S} = \frac{\partial^2 V}{\partial S^2}$\

Rho

Rho shows how much the option value changes when interest rates change. It measures the impact of a 1% change in rates.

$\rho = \frac{\partial V}{\partial r}$

About

The Solana Options Standard is an open source SDK that allows for the creation, execution, and assignment of option contracts on the Solana Blockchain.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •