%% Use fininstrument to Create OptionEmbeddedFixedBond Instrument
% Use fininstrument to create an OptionEmbeddedFixedBond instrument object.

CallDates = datetime(2025,9,15) + calyears([0 1 2]');
CallStrikes = [101 103 105]';
CallSchedule = timetable(CallDates,CallStrikes);
OptionEmbedFixedBOption = fininstrument("OptionEmbeddedFixedBond",'Maturity',"15-Sep-2031",'CouponRate',.03,'CallSchedule',CallSchedule,'Period',1,'Name',"option_embedded_fixedbond")

% Copyright 2020 The MathWorks, Inc.