# Definition of gearings, spreads and curve in RQuantLib's Floating Rate Bond function

Consider the RQuantLib package function FloatingRateBond().

This takes as inputs gearings and spreads, whose correct definition is unknown to me.

Let I have a floating rate bond, e.g. the BACRED Float 06/18/20 (whose ISIN code is IT0004921646): this bond pays annually EURIBOR 3M + $140$ bps.

What gearings and spreads of this bond are supposed to be?

Since this issuer has a 7Yr credit spread of about 230 bps (and I can interpolate its CDS curve to have every tenor), I would like to know if the curve argument should be replaced with the yield curve made up by EUR deposit/IRS curve + credit spread curve.

I guess the index argument, conversely, is the spot swap curve and the forward rates are computed from it.

P.S.: yes, I admit it, I'm reading the QuantLib documentation but I'm not understanding anything about this class.

gearings are optional multipliers of the LIBOR fixing (some bonds might pay, for instance, 0.8 times the LIBOR) and spreads are the added spreads. In your case, the gearing is 1 and the spread is 0.0140 (that is, 140 bps; rates and spread must be expressed in decimal form).
curve is the curve you want to use for discounting. Using the swap curve plus a spread is a possibility. However, note that the CDS spread might not be an exact proxy for the spread to be applied. At the very least, the CDS spread is a quarterly rate simply compounded, whereas (depending on what classes are exported) you might need a continuously compounded rate in order to spread the swap curve. You'll have to perform the conversion first.
In the library, the index argument would be an instance of an index class such as Euribor3M, whose constructor in turn would take the swap curve. I don't know how that's managed in RQuantLib.
• Before accepting your answer (ma sei Italiano? :)), let me ask you something more about the index argument: in the RQuantLib documentation examples it is shown the index argument is built like the curve one, that is, using something like a discount curve (pairs of rate ~ years). As of the curve, what if I used the issuer yield curve via some interpolation technique? – Lisa Ann Aug 23 '13 at 15:00