/*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
using QuantConnect.Python;
namespace QuantConnect.Data.Market
{
///
/// Defines the greeks
///
public abstract class Greeks
{
///
/// Gets the delta.
///
/// Delta measures the rate of change of the option value with respect to changes in
/// the underlying asset'sprice. (∂V/∂S)
///
///
public abstract decimal Delta { get; }
///
/// Gets the gamma.
///
/// Gamma measures the rate of change of Delta with respect to changes in
/// the underlying asset'sprice. (∂²V/∂S²)
///
///
public abstract decimal Gamma { get; }
///
/// Gets the vega.
///
/// Vega measures the rate of change of the option value with respect to changes in
/// the underlying's volatility. (∂V/∂σ)
///
///
public abstract decimal Vega { get; }
///
/// Gets the theta.
///
/// Theta measures the rate of change of the option value with respect to changes in
/// time. This is commonly known as the 'time decay.' (∂V/∂τ)
///
///
public abstract decimal Theta { get; }
///
/// Gets the rho.
///
/// Rho measures the rate of change of the option value with respect to changes in
/// the risk free interest rate. (∂V/∂r)
///
///
public abstract decimal Rho { get; }
///
/// Gets the lambda.
///
/// Lambda is the percentage change in option value per percentage change in the
/// underlying's price, a measure of leverage. Sometimes referred to as gearing.
/// (∂V/∂S ✕ S/V)
///
///
[PandasIgnore]
public abstract decimal Lambda { get; }
///
/// Gets the lambda.
///
/// Lambda is the percentage change in option value per percentage change in the
/// underlying's price, a measure of leverage. Sometimes referred to as gearing.
/// (∂V/∂S ✕ S/V)
///
///
///
/// Alias for required for compatibility with Python when
/// PEP8 API is used (lambda is a reserved keyword in Python).
///
[PandasIgnore]
public virtual decimal Lambda_ => Lambda;
///
/// Gets the theta per day.
///
/// Theta measures the rate of change of the option value with respect to changes in
/// time. This is commonly known as the 'time decay.' (∂V/∂τ)
///
///
[PandasIgnore]
public virtual decimal ThetaPerDay => Theta / 365m;
}
}