我不确定是否缺少导入,但是没有找到在pyql
中获取选项的任何方法的方法:
from quantlib.instruments.api import AmericanExercise, VanillaOption, Put, Call
from quantlib.instruments.payoffs import PlainVanillaPayoff
from quantlib.pricingengines.api import BaroneAdesiWhaleyApproximationEngine
from quantlib.pricingengines.api import FDAmericanEngine
from quantlib.processes.black_scholes_process import BlackScholesMertonProcess
from quantlib.quotes import SimpleQuote
from quantlib.settings import Settings
from quantlib.time.api import Actual365Fixed, Date, May, Mar, TARGET
from quantlib.termstructures.volatility.equityfx.black_vol_term_structure \
import BlackConstantVol
from quantlib.termstructures.yields.api import FlatForward
option = VanillaOption(payoff, exercise)
如何获得此选项的差额?
最佳答案
看起来仅在某些情况下才提供希腊语。我不确定为什么内置引擎不仅仅提供视频中所述的希腊语:
https://www.youtube.com/watch?v=MgUlBB59Ll0
关于python - pyql中的 Vanilla 期权希腊人,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/41418595/